mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.6' into 10.11
This commit is contained in:
@@ -44,7 +44,8 @@ class THD;
|
||||
class Item;
|
||||
#define MYSQL_THD THD*
|
||||
#else
|
||||
#define MYSQL_THD void*
|
||||
struct THD;
|
||||
typedef struct THD* MYSQL_THD;
|
||||
#endif
|
||||
|
||||
typedef char my_bool;
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -487,9 +487,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
MYSQL *mysql_real_connect_local(MYSQL *mysql);
|
||||
}
|
||||
|
@@ -1018,7 +1018,7 @@ inline_mysql_file_create(
|
||||
#ifdef HAVE_PSI_FILE_INTERFACE
|
||||
PSI_file_key key, const char *src_file, uint src_line,
|
||||
#endif
|
||||
const char *filename, int create_flags, int access_flags, myf myFlags)
|
||||
const char *filename, mode_t create_flags, int access_flags, myf myFlags)
|
||||
{
|
||||
File file;
|
||||
#ifdef HAVE_PSI_FILE_INTERFACE
|
||||
@@ -1344,7 +1344,7 @@ inline_mysql_file_create_with_symlink(
|
||||
#ifdef HAVE_PSI_FILE_INTERFACE
|
||||
PSI_file_key key, const char *src_file, uint src_line,
|
||||
#endif
|
||||
const char *linkname, const char *filename, int create_flags,
|
||||
const char *linkname, const char *filename, mode_t create_flags,
|
||||
int access_flags, myf flags)
|
||||
{
|
||||
File file;
|
||||
|
@@ -351,7 +351,11 @@ extern void (*debug_sync_C_callback_ptr)(MYSQL_THD, const char *, size_t);
|
||||
#endif /* defined(ENABLED_DEBUG_SYNC) */
|
||||
|
||||
/* compatibility macro */
|
||||
#ifdef __cplusplus
|
||||
#define DEBUG_SYNC_C(name) DEBUG_SYNC(nullptr, name)
|
||||
#else
|
||||
#define DEBUG_SYNC_C(name) DEBUG_SYNC(NULL, name)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@@ -68,9 +68,12 @@ extern struct sql_service_st {
|
||||
int (STDCALL *mysql_set_character_set_func)(MYSQL *mysql, const char *cs_name);
|
||||
unsigned int (STDCALL *mysql_num_fields_func)(MYSQL_RES *res);
|
||||
int (STDCALL *mysql_select_db_func)(MYSQL *mysql, const char *db);
|
||||
MYSQL_RES *(STDCALL *mysql_use_result_func)(MYSQL *mysql);
|
||||
MYSQL_FIELD *(STDCALL *mysql_fetch_fields_func)(MYSQL_RES *res);
|
||||
unsigned long (STDCALL *mysql_real_escape_string_func)(MYSQL *mysql, char *to,
|
||||
const char *from, unsigned long length);
|
||||
my_bool (STDCALL *mysql_ssl_set_func)(MYSQL *mysql, const char *key,
|
||||
const char *cert, const char *ca,
|
||||
const char *capath, const char *cipher);
|
||||
const char *cert, const char *ca, const char *capath, const char *cipher);
|
||||
} *sql_service;
|
||||
|
||||
#ifdef MYSQL_DYNAMIC_PLUGIN
|
||||
@@ -92,7 +95,10 @@ extern struct sql_service_st {
|
||||
#define mysql_set_character_set(M,C) sql_service->mysql_set_character_set_func(M,C)
|
||||
#define mysql_num_fields(R) sql_service->mysql_num_fields_func(R)
|
||||
#define mysql_select_db(M,D) sql_service->mysql_select_db_func(M,D)
|
||||
#define mysql_ssl_set(M,K,C,A,P,H) sql_service->mysql_ssl_set_func(M,K,C,A,P,H)
|
||||
#define mysql_use_result(M) sql_service->mysql_use_result_func(M)
|
||||
#define mysql_fetch_fields(R) sql_service->mysql_fetch_fields_func(R)
|
||||
#define mysql_real_escape_string(M,T,F,L) sql_service->mysql_real_escape_string_func(M,T,F,L)
|
||||
#define mysql_ssl_set(M,K,C1,C2,C3,C4) sql_service->mysql_ssl_set_func(M,K,C1,C2,C3,C4)
|
||||
|
||||
#else
|
||||
|
||||
|
Reference in New Issue
Block a user