mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
remove MYSQL_SERVER requirement
This commit is contained in:
committed by
Oleksandr Byelkin
parent
0a0dfd63d9
commit
a786c0208e
@@ -464,6 +464,30 @@ int json_escape_string(const char *str,const char *str_end,
|
||||
int json_unescape_json(const char *json_str, const char *json_end,
|
||||
char *res, char *res_end);
|
||||
}
|
||||
extern "C" {
|
||||
extern struct sql_service_st {
|
||||
MYSQL *(STDCALL *mysql_init_func)(MYSQL *mysql);
|
||||
MYSQL *(*mysql_real_connect_local_func)(MYSQL *mysql,
|
||||
const char *host, const char *user, const char *db,
|
||||
unsigned long clientflag);
|
||||
MYSQL *(STDCALL *mysql_real_connect_func)(MYSQL *mysql, const char *host,
|
||||
const char *user, const char *passwd, const char *db, unsigned int port,
|
||||
const char *unix_socket, unsigned long clientflag);
|
||||
unsigned int(STDCALL *mysql_errno_func)(MYSQL *mysql);
|
||||
const char *(STDCALL *mysql_error_func)(MYSQL *mysql);
|
||||
int (STDCALL *mysql_real_query_func)(MYSQL *mysql, const char *q,
|
||||
unsigned long length);
|
||||
my_ulonglong (STDCALL *mysql_affected_rows_func)(MYSQL *mysql);
|
||||
my_ulonglong (STDCALL *mysql_num_rows_func)(MYSQL_RES *res);
|
||||
MYSQL_RES *(STDCALL *mysql_store_result_func)(MYSQL *mysql);
|
||||
void (STDCALL *mysql_free_result_func)(MYSQL_RES *result);
|
||||
MYSQL_ROW (STDCALL *mysql_fetch_row_func)(MYSQL_RES *result);
|
||||
void (STDCALL *mysql_close_func)(MYSQL *mysql);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql,
|
||||
const char *host, const char *user, const char *db,
|
||||
unsigned long clientflag);
|
||||
}
|
||||
}
|
||||
struct st_mysql_xid {
|
||||
long formatID;
|
||||
|
Reference in New Issue
Block a user