Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
36d3c604
Commit
36d3c604
authored
Nov 26, 2007
by
davi@endora.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/Users/davi/mysql/bugs/29592-5.0
into mysql.com:/Users/davi/mysql/bugs/29592-5.1
parents
a0be47a7
cdad8669
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
180 deletions
+94
-180
include/mysql.h
include/mysql.h
+0
-10
include/mysql_h.ic
include/mysql_h.ic
+94
-96
libmysql/libmysql.c
libmysql/libmysql.c
+0
-72
libmysql/libmysql.def
libmysql/libmysql.def
+0
-1
libmysqld/libmysqld.def
libmysqld/libmysqld.def
+0
-1
No files found.
include/mysql.h
View file @
36d3c604
...
@@ -557,16 +557,6 @@ unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql,
...
@@ -557,16 +557,6 @@ unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql,
char
*
to
,
const
char
*
from
,
char
*
to
,
const
char
*
from
,
unsigned
long
length
);
unsigned
long
length
);
void
STDCALL
mysql_debug
(
const
char
*
debug
);
void
STDCALL
mysql_debug
(
const
char
*
debug
);
char
*
STDCALL
mysql_odbc_escape_string
(
MYSQL
*
mysql
,
char
*
to
,
unsigned
long
to_length
,
const
char
*
from
,
unsigned
long
from_length
,
void
*
param
,
char
*
(
*
extend_buffer
)
(
void
*
,
char
*
to
,
unsigned
long
*
length
));
void
STDCALL
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
);
void
STDCALL
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
);
unsigned
int
STDCALL
mysql_thread_safe
(
void
);
unsigned
int
STDCALL
mysql_thread_safe
(
void
);
my_bool
STDCALL
mysql_embedded
(
void
);
my_bool
STDCALL
mysql_embedded
(
void
);
...
...
include/mysql_h.ic
View file @
36d3c604
...
@@ -54,7 +54,7 @@ typedef struct st_list LIST;
...
@@ -54,7 +54,7 @@ typedef struct st_list LIST;
typedef struct st_mem_root MEM_ROOT;
typedef struct st_mem_root MEM_ROOT;
# 258 "mysql.h"
# 258 "mysql.h"
typedef struct st_mysql MYSQL;
typedef struct st_mysql MYSQL;
# 6
6
4 "mysql.h"
# 6
5
4 "mysql.h"
typedef struct st_mysql_bind MYSQL_BIND;
typedef struct st_mysql_bind MYSQL_BIND;
# 95 "mysql.h"
# 95 "mysql.h"
typedef struct st_mysql_field MYSQL_FIELD;
typedef struct st_mysql_field MYSQL_FIELD;
...
@@ -72,17 +72,17 @@ typedef struct st_mysql_res MYSQL_RES;
...
@@ -72,17 +72,17 @@ typedef struct st_mysql_res MYSQL_RES;
typedef char * * MYSQL_ROW;
typedef char * * MYSQL_ROW;
# 145 "mysql.h"
# 145 "mysql.h"
typedef MYSQL_ROWS * MYSQL_ROW_OFFSET;
typedef MYSQL_ROWS * MYSQL_ROW_OFFSET;
# 6
9
3 "mysql.h"
# 6
8
3 "mysql.h"
typedef struct st_mysql_stmt MYSQL_STMT;
typedef struct st_mysql_stmt MYSQL_STMT;
# 52 "mysql/plugin.h"
# 52 "mysql/plugin.h"
typedef struct st_mysql_xid MYSQL_XID;
typedef struct st_mysql_xid MYSQL_XID;
# 243 "mysql.h"
# 243 "mysql.h"
typedef struct character_set MY_CHARSET_INFO;
typedef struct character_set MY_CHARSET_INFO;
# 18
7
"mysql_com.h"
# 18
8
"mysql_com.h"
typedef struct st_net NET;
typedef struct st_net NET;
# 22 "typelib.h"
# 22 "typelib.h"
typedef struct st_typelib TYPELIB;
typedef struct st_typelib TYPELIB;
# 17
7
"mysql_com.h"
# 17
8
"mysql_com.h"
typedef struct st_vio Vio;
typedef struct st_vio Vio;
# 28 "my_list.h"
# 28 "my_list.h"
typedef int (* list_walk_action)(void *, void *);
typedef int (* list_walk_action)(void *, void *);
...
@@ -92,7 +92,7 @@ typedef char my_bool;
...
@@ -92,7 +92,7 @@ typedef char my_bool;
typedef int my_socket;
typedef int my_socket;
# 128 "mysql.h"
# 128 "mysql.h"
typedef unsigned long long int my_ulonglong;
typedef unsigned long long int my_ulonglong;
# 214 "/usr/lib/gcc/i486-linux-gnu/4.1.
2
/include/stddef.h"
# 214 "/usr/lib/gcc/i486-linux-gnu/4.1.
3
/include/stddef.h"
typedef unsigned int size_t;
typedef unsigned int size_t;
# 149 "mysql.h"
# 149 "mysql.h"
typedef struct embedded_query_result EMBEDDED_QUERY_RESULT;
typedef struct embedded_query_result EMBEDDED_QUERY_RESULT;
...
@@ -102,13 +102,13 @@ typedef struct st_mysql_data MYSQL_DATA;
...
@@ -102,13 +102,13 @@ typedef struct st_mysql_data MYSQL_DATA;
typedef struct st_mysql_ftparser_boolean_info MYSQL_FTPARSER_BOOLEAN_INFO;
typedef struct st_mysql_ftparser_boolean_info MYSQL_FTPARSER_BOOLEAN_INFO;
# 557 "mysql/plugin.h"
# 557 "mysql/plugin.h"
typedef struct st_mysql_ftparser_param MYSQL_FTPARSER_PARAM;
typedef struct st_mysql_ftparser_param MYSQL_FTPARSER_PARAM;
# 7
6
3 "mysql.h"
# 7
5
3 "mysql.h"
typedef struct st_mysql_methods MYSQL_METHODS;
typedef struct st_mysql_methods MYSQL_METHODS;
# 47 "mysql_time.h"
# 47 "mysql_time.h"
typedef struct st_mysql_time MYSQL_TIME;
typedef struct st_mysql_time MYSQL_TIME;
# 38
3
"mysql_com.h"
# 38
4
"mysql_com.h"
typedef struct st_udf_args UDF_ARGS;
typedef struct st_udf_args UDF_ARGS;
# 39
7
"mysql_com.h"
# 39
8
"mysql_com.h"
typedef struct st_udf_init UDF_INIT;
typedef struct st_udf_init UDF_INIT;
# 26 "my_alloc.h"
# 26 "my_alloc.h"
typedef struct st_used_mem USED_MEM;
typedef struct st_used_mem USED_MEM;
...
@@ -130,7 +130,7 @@ struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(vo
...
@@ -130,7 +130,7 @@ struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(vo
unsigned int mbminlen;
unsigned int mbminlen;
unsigned int mbmaxlen;
unsigned int mbmaxlen;
};
};
# 3
69
"mysql_com.h"
# 3
70
"mysql_com.h"
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(double)))) rand_struct
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(double)))) rand_struct
{
{
unsigned long int seed1;
unsigned long int seed1;
...
@@ -203,7 +203,7 @@ struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned
...
@@ -203,7 +203,7 @@ struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned
char * info_buffer;
char * info_buffer;
void * extension;
void * extension;
};
};
# 6
6
4 "mysql.h"
# 6
5
4 "mysql.h"
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_mysql_bind
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_mysql_bind
{
{
unsigned long int * length;
unsigned long int * length;
...
@@ -328,7 +328,7 @@ struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned
...
@@ -328,7 +328,7 @@ struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned
char last_error[256];
char last_error[256];
void * extension;
void * extension;
};
};
# 7
6
3 "mysql.h"
# 7
5
3 "mysql.h"
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_methods
struct __attribute__((aligned(__alignof__(void *)))) st_mysql_methods
{
{
my_bool (* read_query_result)(MYSQL * mysql);
my_bool (* read_query_result)(MYSQL * mysql);
...
@@ -448,7 +448,7 @@ struct __attribute__((aligned(__alignof__(void *)))) st_mysql_show_var
...
@@ -448,7 +448,7 @@ struct __attribute__((aligned(__alignof__(void *)))) st_mysql_show_var
char * value;
char * value;
enum enum_mysql_show_type type;
enum enum_mysql_show_type type;
};
};
# 6
9
3 "mysql.h"
# 6
8
3 "mysql.h"
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long long int)))) st_mysql_stmt
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long long int)))) st_mysql_stmt
{
{
MEM_ROOT mem_root;
MEM_ROOT mem_root;
...
@@ -513,7 +513,7 @@ struct __attribute__((aligned(__alignof__(long int)))) st_mysql_xid
...
@@ -513,7 +513,7 @@ struct __attribute__((aligned(__alignof__(long int)))) st_mysql_xid
long int bqual_length;
long int bqual_length;
char data[128];
char data[128];
};
};
# 18
7
"mysql_com.h"
# 18
8
"mysql_com.h"
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_net
struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned long int)))) st_net
{
{
Vio * vio;
Vio * vio;
...
@@ -558,7 +558,7 @@ struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(vo
...
@@ -558,7 +558,7 @@ struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(vo
char const * * type_names;
char const * * type_names;
unsigned int * type_lengths;
unsigned int * type_lengths;
};
};
# 38
3
"mysql_com.h"
# 38
4
"mysql_com.h"
struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) st_udf_args
struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(void *)))) st_udf_args
{
{
unsigned int arg_count;
unsigned int arg_count;
...
@@ -570,7 +570,7 @@ struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(vo
...
@@ -570,7 +570,7 @@ struct __attribute__((aligned(__alignof__(unsigned int)), aligned(__alignof__(vo
unsigned long int * attribute_lengths;
unsigned long int * attribute_lengths;
void * extension;
void * extension;
};
};
# 39
7
"mysql_com.h"
# 39
8
"mysql_com.h"
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_udf_init
struct __attribute__((aligned(__alignof__(unsigned long int)), aligned(__alignof__(void *)))) st_udf_init
{
{
my_bool maybe_null;
my_bool maybe_null;
...
@@ -587,7 +587,7 @@ struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned
...
@@ -587,7 +587,7 @@ struct __attribute__((aligned(__alignof__(void *)), aligned(__alignof__(unsigned
unsigned int left;
unsigned int left;
unsigned int size;
unsigned int size;
};
};
# 38
0
"mysql_com.h"
# 38
1
"mysql_com.h"
enum Item_result
enum Item_result
{
{
STRING_RESULT = 0,
STRING_RESULT = 0,
...
@@ -596,7 +596,7 @@ enum Item_result
...
@@ -596,7 +596,7 @@ enum Item_result
ROW_RESULT = 3,
ROW_RESULT = 3,
DECIMAL_RESULT = 4,
DECIMAL_RESULT = 4,
};
};
# 32
1
"mysql_com.h"
# 32
2
"mysql_com.h"
enum enum_cursor_type
enum enum_cursor_type
{
{
CURSOR_TYPE_NO_CURSOR = 0,
CURSOR_TYPE_NO_CURSOR = 0,
...
@@ -604,7 +604,7 @@ enum enum_cursor_type
...
@@ -604,7 +604,7 @@ enum enum_cursor_type
CURSOR_TYPE_FOR_UPDATE = 2,
CURSOR_TYPE_FOR_UPDATE = 2,
CURSOR_TYPE_SCROLLABLE = 4,
CURSOR_TYPE_SCROLLABLE = 4,
};
};
# 23
4
"mysql_com.h"
# 23
5
"mysql_com.h"
enum enum_field_types
enum enum_field_types
{
{
MYSQL_TYPE_DECIMAL = 0,
MYSQL_TYPE_DECIMAL = 0,
...
@@ -651,7 +651,7 @@ enum enum_ftparser_mode
...
@@ -651,7 +651,7 @@ enum enum_ftparser_mode
MYSQL_FTPARSER_WITH_STOPWORDS = 1,
MYSQL_FTPARSER_WITH_STOPWORDS = 1,
MYSQL_FTPARSER_FULL_BOOLEAN_INFO = 2,
MYSQL_FTPARSER_FULL_BOOLEAN_INFO = 2,
};
};
# 33
1
"mysql_com.h"
# 33
2
"mysql_com.h"
enum enum_mysql_set_option
enum enum_mysql_set_option
{
{
MYSQL_OPTION_MULTI_STATEMENTS_ON = 0,
MYSQL_OPTION_MULTI_STATEMENTS_ON = 0,
...
@@ -671,7 +671,7 @@ enum enum_mysql_show_type
...
@@ -671,7 +671,7 @@ enum enum_mysql_show_type
SHOW_FUNC = 8,
SHOW_FUNC = 8,
SHOW_DOUBLE = 9,
SHOW_DOUBLE = 9,
};
};
# 5
9
4 "mysql.h"
# 5
8
4 "mysql.h"
enum enum_mysql_stmt_state
enum enum_mysql_stmt_state
{
{
MYSQL_STMT_INIT_DONE = 1,
MYSQL_STMT_INIT_DONE = 1,
...
@@ -723,14 +723,14 @@ enum enum_server_command
...
@@ -723,14 +723,14 @@ enum enum_server_command
COM_DAEMON = 29,
COM_DAEMON = 29,
COM_END = 30,
COM_END = 30,
};
};
# 7
4
0 "mysql.h"
# 7
3
0 "mysql.h"
enum enum_stmt_attr_type
enum enum_stmt_attr_type
{
{
STMT_ATTR_UPDATE_MAX_LENGTH = 0,
STMT_ATTR_UPDATE_MAX_LENGTH = 0,
STMT_ATTR_CURSOR_TYPE = 1,
STMT_ATTR_CURSOR_TYPE = 1,
STMT_ATTR_PREFETCH_ROWS = 2,
STMT_ATTR_PREFETCH_ROWS = 2,
};
};
# 29
6
"mysql_com.h"
# 29
7
"mysql_com.h"
enum mysql_enum_shutdown_level
enum mysql_enum_shutdown_level
{
{
SHUTDOWN_DEFAULT = 0,
SHUTDOWN_DEFAULT = 0,
...
@@ -790,13 +790,13 @@ enum mysql_status
...
@@ -790,13 +790,13 @@ enum mysql_status
MYSQL_STATUS_GET_RESULT = 1,
MYSQL_STATUS_GET_RESULT = 1,
MYSQL_STATUS_USE_RESULT = 2,
MYSQL_STATUS_USE_RESULT = 2,
};
};
# 43
8
"mysql_com.h"
# 43
9
"mysql_com.h"
extern my_bool check_scramble(char const * reply, char const * message, unsigned char const * hash_stage2);
extern my_bool check_scramble(char const * reply, char const * message, unsigned char const * hash_stage2);
# 43
1
"mysql_com.h"
# 43
2
"mysql_com.h"
extern my_bool check_scramble_323(char const *, char const * message, unsigned long int * salt);
extern my_bool check_scramble_323(char const *, char const * message, unsigned long int * salt);
# 35 "typelib.h"
# 35 "typelib.h"
extern TYPELIB * copy_typelib(MEM_ROOT * root, TYPELIB * from);
extern TYPELIB * copy_typelib(MEM_ROOT * root, TYPELIB * from);
# 42
6
"mysql_com.h"
# 42
7
"mysql_com.h"
extern void create_random_string(char * to, unsigned int, struct rand_struct * rand_st);
extern void create_random_string(char * to, unsigned int, struct rand_struct * rand_st);
# 32 "typelib.h"
# 32 "typelib.h"
extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
...
@@ -804,15 +804,15 @@ extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
...
@@ -804,15 +804,15 @@ extern int find_type(char * x, TYPELIB const * typelib, unsigned int);
extern int find_type_or_exit(char const * x, TYPELIB * typelib, char const * option);
extern int find_type_or_exit(char const * x, TYPELIB * typelib, char const * option);
# 29 "typelib.h"
# 29 "typelib.h"
extern my_ulonglong find_typeset(char * x, TYPELIB * typelib, int * error_position);
extern my_ulonglong find_typeset(char * x, TYPELIB * typelib, int * error_position);
# 44
0
"mysql_com.h"
# 44
1
"mysql_com.h"
extern void get_salt_from_password(unsigned char * res, char const * password);
extern void get_salt_from_password(unsigned char * res, char const * password);
# 43
3
"mysql_com.h"
# 43
4
"mysql_com.h"
extern void get_salt_from_password_323(unsigned long int * res, char const * password);
extern void get_salt_from_password_323(unsigned long int * res, char const * password);
# 44
6
"mysql_com.h"
# 44
7
"mysql_com.h"
extern char * get_tty_password(char const * opt_message);
extern char * get_tty_password(char const * opt_message);
# 34 "typelib.h"
# 34 "typelib.h"
extern char const * get_type(TYPELIB * typelib, unsigned int);
extern char const * get_type(TYPELIB * typelib, unsigned int);
# 42
8
"mysql_com.h"
# 42
9
"mysql_com.h"
extern void hash_password(unsigned long int * to, char const * password, unsigned int);
extern void hash_password(unsigned long int * to, char const * password, unsigned int);
# 30 "my_list.h"
# 30 "my_list.h"
extern LIST * list_add(LIST * root, LIST * element);
extern LIST * list_add(LIST * root, LIST * element);
...
@@ -828,47 +828,47 @@ extern unsigned int list_length(LIST *);
...
@@ -828,47 +828,47 @@ extern unsigned int list_length(LIST *);
extern LIST * list_reverse(LIST * root);
extern LIST * list_reverse(LIST * root);
# 36 "my_list.h"
# 36 "my_list.h"
extern int list_walk(LIST *, list_walk_action, unsigned char * argument);
extern int list_walk(LIST *, list_walk_action, unsigned char * argument);
# 44
1
"mysql_com.h"
# 44
2
"mysql_com.h"
extern void make_password_from_salt(char * to, unsigned char const * hash_stage2);
extern void make_password_from_salt(char * to, unsigned char const * hash_stage2);
# 43
4
"mysql_com.h"
# 43
5
"mysql_com.h"
extern void make_password_from_salt_323(char * to, unsigned long int const * salt);
extern void make_password_from_salt_323(char * to, unsigned long int const * salt);
# 43
6
"mysql_com.h"
# 43
7
"mysql_com.h"
extern void make_scrambled_password(char * to, char const * password);
extern void make_scrambled_password(char * to, char const * password);
# 4
29
"mysql_com.h"
# 4
30
"mysql_com.h"
extern void make_scrambled_password_323(char * to, char const * password);
extern void make_scrambled_password_323(char * to, char const * password);
# 33 "typelib.h"
# 33 "typelib.h"
extern void make_type(char * to, unsigned int, TYPELIB * typelib);
extern void make_type(char * to, unsigned int, TYPELIB * typelib);
# 36
6
"mysql_com.h"
# 36
7
"mysql_com.h"
extern int my_connect(my_socket, struct sockaddr const * name, unsigned int, unsigned int);
extern int my_connect(my_socket, struct sockaddr const * name, unsigned int, unsigned int);
# 343 "mysql_com.h"
extern my_bool my_net_init(NET * net, Vio * vio);
# 344 "mysql_com.h"
# 344 "mysql_com.h"
extern my_bool my_net_init(NET * net, Vio * vio);
# 345 "mysql_com.h"
extern void my_net_local_init(NET * net);
extern void my_net_local_init(NET * net);
# 35
4
"mysql_com.h"
# 35
5
"mysql_com.h"
extern unsigned long int my_net_read(NET * net);
extern unsigned long int my_net_read(NET * net);
# 3
49
"mysql_com.h"
# 3
50
"mysql_com.h"
extern my_bool my_net_write(NET * net, unsigned char const * packet, size_t);
extern my_bool my_net_write(NET * net, unsigned char const * packet, size_t);
# 42
5
"mysql_com.h"
# 42
6
"mysql_com.h"
extern double my_rnd(struct rand_struct *);
extern double my_rnd(struct rand_struct *);
# 45
2
"mysql_com.h"
# 45
3
"mysql_com.h"
extern void my_thread_end(void);
extern void my_thread_end(void);
# 45
1
"mysql_com.h"
# 45
2
"mysql_com.h"
extern my_bool my_thread_init(void);
extern my_bool my_thread_init(void);
# 5
7
0 "mysql.h"
# 5
6
0 "mysql.h"
extern void myodbc_remove_escape(MYSQL * mysql, char * name);
extern void myodbc_remove_escape(MYSQL * mysql, char * name);
# 512 "mysql.h"
# 512 "mysql.h"
extern int mysql_add_slave(MYSQL * mysql, char const * host, unsigned int, char const * user, char const * passwd);
extern int mysql_add_slave(MYSQL * mysql, char const * host, unsigned int, char const * user, char const * passwd);
# 421 "mysql.h"
# 421 "mysql.h"
extern my_ulonglong mysql_affected_rows(MYSQL * mysql);
extern my_ulonglong mysql_affected_rows(MYSQL * mysql);
# 8
3
6 "mysql.h"
# 8
2
6 "mysql.h"
extern my_bool mysql_autocommit(MYSQL * mysql, my_bool);
extern my_bool mysql_autocommit(MYSQL * mysql, my_bool);
# 437 "mysql.h"
# 437 "mysql.h"
extern my_bool mysql_change_user(MYSQL * mysql, char const * user, char const * passwd, char const * db);
extern my_bool mysql_change_user(MYSQL * mysql, char const * user, char const * passwd, char const * db);
# 429 "mysql.h"
# 429 "mysql.h"
extern char const * mysql_character_set_name(MYSQL * mysql);
extern char const * mysql_character_set_name(MYSQL * mysql);
# 8
3
9 "mysql.h"
# 8
2
9 "mysql.h"
extern void mysql_close(MYSQL * sock);
extern void mysql_close(MYSQL * sock);
# 8
3
4 "mysql.h"
# 8
2
4 "mysql.h"
extern my_bool mysql_commit(MYSQL * mysql);
extern my_bool mysql_commit(MYSQL * mysql);
# 541 "mysql.h"
# 541 "mysql.h"
extern void mysql_data_seek(MYSQL_RES * result, my_ulonglong);
extern void mysql_data_seek(MYSQL_RES * result, my_ulonglong);
...
@@ -880,7 +880,7 @@ extern void mysql_disable_reads_from_master(MYSQL * mysql);
...
@@ -880,7 +880,7 @@ extern void mysql_disable_reads_from_master(MYSQL * mysql);
extern void mysql_disable_rpl_parse(MYSQL * mysql);
extern void mysql_disable_rpl_parse(MYSQL * mysql);
# 520 "mysql.h"
# 520 "mysql.h"
extern int mysql_dump_debug_info(MYSQL * mysql);
extern int mysql_dump_debug_info(MYSQL * mysql);
# 5
7
2 "mysql.h"
# 5
6
2 "mysql.h"
extern my_bool mysql_embedded(void);
extern my_bool mysql_embedded(void);
# 497 "mysql.h"
# 497 "mysql.h"
extern void mysql_enable_reads_from_master(MYSQL * mysql);
extern void mysql_enable_reads_from_master(MYSQL * mysql);
...
@@ -890,7 +890,7 @@ extern void mysql_enable_rpl_parse(MYSQL * mysql);
...
@@ -890,7 +890,7 @@ extern void mysql_enable_rpl_parse(MYSQL * mysql);
extern my_bool mysql_eof(MYSQL_RES * res);
extern my_bool mysql_eof(MYSQL_RES * res);
# 423 "mysql.h"
# 423 "mysql.h"
extern unsigned int mysql_errno(MYSQL * mysql);
extern unsigned int mysql_errno(MYSQL * mysql);
# 44
7
"mysql_com.h"
# 44
8
"mysql_com.h"
extern char const * mysql_errno_to_sqlstate(unsigned int);
extern char const * mysql_errno_to_sqlstate(unsigned int);
# 424 "mysql.h"
# 424 "mysql.h"
extern char const * mysql_error(MYSQL * mysql);
extern char const * mysql_error(MYSQL * mysql);
...
@@ -950,30 +950,28 @@ extern MYSQL_RES * mysql_list_fields(MYSQL * mysql, char const * table, char con
...
@@ -950,30 +950,28 @@ extern MYSQL_RES * mysql_list_fields(MYSQL * mysql, char const * table, char con
extern MYSQL_RES * mysql_list_processes(MYSQL * mysql);
extern MYSQL_RES * mysql_list_processes(MYSQL * mysql);
# 536 "mysql.h"
# 536 "mysql.h"
extern MYSQL_RES * mysql_list_tables(MYSQL * mysql, char const * wild);
extern MYSQL_RES * mysql_list_tables(MYSQL * mysql, char const * wild);
# 5
7
9 "mysql.h"
# 5
6
9 "mysql.h"
extern void mysql_manager_close(MYSQL_MANAGER * con);
extern void mysql_manager_close(MYSQL_MANAGER * con);
# 5
8
0 "mysql.h"
# 5
7
0 "mysql.h"
extern int mysql_manager_command(MYSQL_MANAGER * con, char const * cmd, int);
extern int mysql_manager_command(MYSQL_MANAGER * con, char const * cmd, int);
# 5
7
4 "mysql.h"
# 5
6
4 "mysql.h"
extern MYSQL_MANAGER * mysql_manager_connect(MYSQL_MANAGER * con, char const * host, char const * user, char const * passwd, unsigned int);
extern MYSQL_MANAGER * mysql_manager_connect(MYSQL_MANAGER * con, char const * host, char const * user, char const * passwd, unsigned int);
# 5
8
2 "mysql.h"
# 5
7
2 "mysql.h"
extern int mysql_manager_fetch_line(MYSQL_MANAGER * con, char * res_buf, int);
extern int mysql_manager_fetch_line(MYSQL_MANAGER * con, char * res_buf, int);
# 5
7
3 "mysql.h"
# 5
6
3 "mysql.h"
extern MYSQL_MANAGER * mysql_manager_init(MYSQL_MANAGER * con);
extern MYSQL_MANAGER * mysql_manager_init(MYSQL_MANAGER * con);
# 456 "mysql.h"
# 456 "mysql.h"
extern my_bool mysql_master_query(MYSQL * mysql, char const * q, unsigned long int);
extern my_bool mysql_master_query(MYSQL * mysql, char const * q, unsigned long int);
# 458 "mysql.h"
# 458 "mysql.h"
extern my_bool mysql_master_send_query(MYSQL * mysql, char const * q, unsigned long int);
extern my_bool mysql_master_send_query(MYSQL * mysql, char const * q, unsigned long int);
# 8
3
7 "mysql.h"
# 8
2
7 "mysql.h"
extern my_bool mysql_more_results(MYSQL * mysql);
extern my_bool mysql_more_results(MYSQL * mysql);
# 8
3
8 "mysql.h"
# 8
2
8 "mysql.h"
extern int mysql_next_result(MYSQL * mysql);
extern int mysql_next_result(MYSQL * mysql);
# 412 "mysql.h"
# 412 "mysql.h"
extern unsigned int mysql_num_fields(MYSQL_RES * res);
extern unsigned int mysql_num_fields(MYSQL_RES * res);
# 411 "mysql.h"
# 411 "mysql.h"
extern my_ulonglong mysql_num_rows(MYSQL_RES * res);
extern my_ulonglong mysql_num_rows(MYSQL_RES * res);
# 560 "mysql.h"
extern char * mysql_odbc_escape_string(MYSQL * mysql, char * to, unsigned long int, char const * from, unsigned long int, void * param, char * (* extend_buffer)(void *, char * to, unsigned long int * length));
# 538 "mysql.h"
# 538 "mysql.h"
extern int mysql_options(MYSQL * mysql, enum mysql_option, void const * arg);
extern int mysql_options(MYSQL * mysql, enum mysql_option, void const * arg);
# 527 "mysql.h"
# 527 "mysql.h"
...
@@ -984,7 +982,7 @@ extern unsigned int mysql_port;
...
@@ -984,7 +982,7 @@ extern unsigned int mysql_port;
extern int mysql_query(MYSQL * mysql, char const * q);
extern int mysql_query(MYSQL * mysql, char const * q);
# 780 "mysql/plugin.h"
# 780 "mysql/plugin.h"
extern void mysql_query_cache_invalidate4(void * thd, char const * key, unsigned int, int);
extern void mysql_query_cache_invalidate4(void * thd, char const * key, unsigned int, int);
# 5
8
5 "mysql.h"
# 5
7
5 "mysql.h"
extern my_bool mysql_read_query_result(MYSQL * mysql);
extern my_bool mysql_read_query_result(MYSQL * mysql);
# 500 "mysql.h"
# 500 "mysql.h"
extern my_bool mysql_reads_from_master_enabled(MYSQL * mysql);
extern my_bool mysql_reads_from_master_enabled(MYSQL * mysql);
...
@@ -996,7 +994,7 @@ extern unsigned long int mysql_real_escape_string(MYSQL * mysql, char * to, char
...
@@ -996,7 +994,7 @@ extern unsigned long int mysql_real_escape_string(MYSQL * mysql, char * to, char
extern int mysql_real_query(MYSQL * mysql, char const * q, unsigned long int);
extern int mysql_real_query(MYSQL * mysql, char const * q, unsigned long int);
# 521 "mysql.h"
# 521 "mysql.h"
extern int mysql_refresh(MYSQL * mysql, unsigned int);
extern int mysql_refresh(MYSQL * mysql, unsigned int);
# 8
3
5 "mysql.h"
# 8
2
5 "mysql.h"
extern my_bool mysql_rollback(MYSQL * mysql);
extern my_bool mysql_rollback(MYSQL * mysql);
# 543 "mysql.h"
# 543 "mysql.h"
extern MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES * result, MYSQL_ROW_OFFSET);
extern MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES * result, MYSQL_ROW_OFFSET);
...
@@ -1038,59 +1036,59 @@ extern char const * mysql_sqlstate(MYSQL * mysql);
...
@@ -1038,59 +1036,59 @@ extern char const * mysql_sqlstate(MYSQL * mysql);
extern my_bool mysql_ssl_set(MYSQL * mysql, char const * key, char const * cert, char const * ca, char const * capath, char const * cipher);
extern my_bool mysql_ssl_set(MYSQL * mysql, char const * key, char const * cert, char const * ca, char const * capath, char const * cipher);
# 528 "mysql.h"
# 528 "mysql.h"
extern char const * mysql_stat(MYSQL * mysql);
extern char const * mysql_stat(MYSQL * mysql);
# 8
3
0 "mysql.h"
# 8
2
0 "mysql.h"
extern my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
extern my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
#
80
8 "mysql.h"
#
79
8 "mysql.h"
extern my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void * attr);
extern my_bool mysql_stmt_attr_get(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void * attr);
#
80
5 "mysql.h"
#
79
5 "mysql.h"
extern my_bool mysql_stmt_attr_set(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void const * attr);
extern my_bool mysql_stmt_attr_set(MYSQL_STMT * stmt, enum enum_stmt_attr_type, void const * attr);
# 8
1
1 "mysql.h"
# 8
0
1 "mysql.h"
extern my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
extern my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
# 8
1
2 "mysql.h"
# 8
0
2 "mysql.h"
extern my_bool mysql_stmt_bind_result(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
extern my_bool mysql_stmt_bind_result(MYSQL_STMT * stmt, MYSQL_BIND * bnd);
# 8
1
3 "mysql.h"
# 8
0
3 "mysql.h"
extern my_bool mysql_stmt_close(MYSQL_STMT * stmt);
extern my_bool mysql_stmt_close(MYSQL_STMT * stmt);
# 8
2
8 "mysql.h"
# 8
1
8 "mysql.h"
extern void mysql_stmt_data_seek(MYSQL_STMT * stmt, my_ulonglong);
extern void mysql_stmt_data_seek(MYSQL_STMT * stmt, my_ulonglong);
# 8
2
2 "mysql.h"
# 8
1
2 "mysql.h"
extern unsigned int mysql_stmt_errno(MYSQL_STMT * stmt);
extern unsigned int mysql_stmt_errno(MYSQL_STMT * stmt);
# 8
2
3 "mysql.h"
# 8
1
3 "mysql.h"
extern char const * mysql_stmt_error(MYSQL_STMT * stmt);
extern char const * mysql_stmt_error(MYSQL_STMT * stmt);
# 7
9
8 "mysql.h"
# 7
8
8 "mysql.h"
extern int mysql_stmt_execute(MYSQL_STMT * stmt);
extern int mysql_stmt_execute(MYSQL_STMT * stmt);
# 7
9
9 "mysql.h"
# 7
8
9 "mysql.h"
extern int mysql_stmt_fetch(MYSQL_STMT * stmt);
extern int mysql_stmt_fetch(MYSQL_STMT * stmt);
#
80
0 "mysql.h"
#
79
0 "mysql.h"
extern int mysql_stmt_fetch_column(MYSQL_STMT * stmt, MYSQL_BIND * bind_arg, unsigned int, unsigned long int);
extern int mysql_stmt_fetch_column(MYSQL_STMT * stmt, MYSQL_BIND * bind_arg, unsigned int, unsigned long int);
# 8
3
2 "mysql.h"
# 8
2
2 "mysql.h"
extern unsigned int mysql_stmt_field_count(MYSQL_STMT * stmt);
extern unsigned int mysql_stmt_field_count(MYSQL_STMT * stmt);
# 8
1
5 "mysql.h"
# 8
0
5 "mysql.h"
extern my_bool mysql_stmt_free_result(MYSQL_STMT * stmt);
extern my_bool mysql_stmt_free_result(MYSQL_STMT * stmt);
# 7
9
5 "mysql.h"
# 7
8
5 "mysql.h"
extern MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);
extern MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);
# 8
3
1 "mysql.h"
# 8
2
1 "mysql.h"
extern my_ulonglong mysql_stmt_insert_id(MYSQL_STMT * stmt);
extern my_ulonglong mysql_stmt_insert_id(MYSQL_STMT * stmt);
# 8
2
9 "mysql.h"
# 8
1
9 "mysql.h"
extern my_ulonglong mysql_stmt_num_rows(MYSQL_STMT * stmt);
extern my_ulonglong mysql_stmt_num_rows(MYSQL_STMT * stmt);
#
80
4 "mysql.h"
#
79
4 "mysql.h"
extern unsigned long int mysql_stmt_param_count(MYSQL_STMT * stmt);
extern unsigned long int mysql_stmt_param_count(MYSQL_STMT * stmt);
# 8
2
1 "mysql.h"
# 8
1
1 "mysql.h"
extern MYSQL_RES * mysql_stmt_param_metadata(MYSQL_STMT * stmt);
extern MYSQL_RES * mysql_stmt_param_metadata(MYSQL_STMT * stmt);
# 7
9
6 "mysql.h"
# 7
8
6 "mysql.h"
extern int mysql_stmt_prepare(MYSQL_STMT * stmt, char const * query, unsigned long int);
extern int mysql_stmt_prepare(MYSQL_STMT * stmt, char const * query, unsigned long int);
# 8
1
4 "mysql.h"
# 8
0
4 "mysql.h"
extern my_bool mysql_stmt_reset(MYSQL_STMT * stmt);
extern my_bool mysql_stmt_reset(MYSQL_STMT * stmt);
# 8
2
0 "mysql.h"
# 8
1
0 "mysql.h"
extern MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);
extern MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);
# 8
2
5 "mysql.h"
# 8
1
5 "mysql.h"
extern MYSQL_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt, MYSQL_ROW_OFFSET);
extern MYSQL_ROW_OFFSET mysql_stmt_row_seek(MYSQL_STMT * stmt, MYSQL_ROW_OFFSET);
# 8
2
7 "mysql.h"
# 8
1
7 "mysql.h"
extern MYSQL_ROW_OFFSET mysql_stmt_row_tell(MYSQL_STMT * stmt);
extern MYSQL_ROW_OFFSET mysql_stmt_row_tell(MYSQL_STMT * stmt);
# 8
1
6 "mysql.h"
# 8
0
6 "mysql.h"
extern my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt, unsigned int, char const * data, unsigned long int);
extern my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt, unsigned int, char const * data, unsigned long int);
# 8
2
4 "mysql.h"
# 8
1
4 "mysql.h"
extern char const * mysql_stmt_sqlstate(MYSQL_STMT * stmt);
extern char const * mysql_stmt_sqlstate(MYSQL_STMT * stmt);
#
80
3 "mysql.h"
#
79
3 "mysql.h"
extern int mysql_stmt_store_result(MYSQL_STMT * stmt);
extern int mysql_stmt_store_result(MYSQL_STMT * stmt);
# 452 "mysql.h"
# 452 "mysql.h"
extern MYSQL_RES * mysql_store_result(MYSQL * mysql);
extern MYSQL_RES * mysql_store_result(MYSQL * mysql);
...
@@ -1100,7 +1098,7 @@ extern void mysql_thread_end(void);
...
@@ -1100,7 +1098,7 @@ extern void mysql_thread_end(void);
extern unsigned long int mysql_thread_id(MYSQL * mysql);
extern unsigned long int mysql_thread_id(MYSQL * mysql);
# 403 "mysql.h"
# 403 "mysql.h"
extern my_bool mysql_thread_init(void);
extern my_bool mysql_thread_init(void);
# 5
7
1 "mysql.h"
# 5
6
1 "mysql.h"
extern unsigned int mysql_thread_safe(void);
extern unsigned int mysql_thread_safe(void);
# 699 "mysql/plugin.h"
# 699 "mysql/plugin.h"
extern int mysql_tmpfile(char const * prefix);
extern int mysql_tmpfile(char const * prefix);
...
@@ -1110,25 +1108,25 @@ extern char * mysql_unix_port;
...
@@ -1110,25 +1108,25 @@ extern char * mysql_unix_port;
extern MYSQL_RES * mysql_use_result(MYSQL * mysql);
extern MYSQL_RES * mysql_use_result(MYSQL * mysql);
# 426 "mysql.h"
# 426 "mysql.h"
extern unsigned int mysql_warning_count(MYSQL * mysql);
extern unsigned int mysql_warning_count(MYSQL * mysql);
# 34
6
"mysql_com.h"
# 34
7
"mysql_com.h"
extern void net_clear(NET * net, my_bool);
extern void net_clear(NET * net, my_bool);
# 34
5
"mysql_com.h"
# 34
6
"mysql_com.h"
extern void net_end(NET * net);
extern void net_end(NET * net);
# 34
8
"mysql_com.h"
# 34
9
"mysql_com.h"
extern my_bool net_flush(NET * net);
extern my_bool net_flush(NET * net);
# 35
3
"mysql_com.h"
# 35
4
"mysql_com.h"
extern int net_real_write(NET * net, unsigned char const * packet, size_t);
extern int net_real_write(NET * net, unsigned char const * packet, size_t);
# 34
7
"mysql_com.h"
# 34
8
"mysql_com.h"
extern my_bool net_realloc(NET * net, size_t);
extern my_bool net_realloc(NET * net, size_t);
# 35
0
"mysql_com.h"
# 35
1
"mysql_com.h"
extern my_bool net_write_command(NET * net, unsigned char, unsigned char const * header, size_t, unsigned char const * packet, size_t);
extern my_bool net_write_command(NET * net, unsigned char, unsigned char const * header, size_t, unsigned char const * packet, size_t);
# 44
2
"mysql_com.h"
# 44
3
"mysql_com.h"
extern char * octet2hex(char * to, char const * str, unsigned int);
extern char * octet2hex(char * to, char const * str, unsigned int);
# 42
3
"mysql_com.h"
# 42
4
"mysql_com.h"
extern void randominit(struct rand_struct *, unsigned long int, unsigned long int);
extern void randominit(struct rand_struct *, unsigned long int, unsigned long int);
# 43
7
"mysql_com.h"
# 43
8
"mysql_com.h"
extern void scramble(char * to, char const * message, char const * password);
extern void scramble(char * to, char const * message, char const * password);
# 43
0
"mysql_com.h"
# 43
1
"mysql_com.h"
extern void scramble_323(char * to, char const * message, char const * password);
extern void scramble_323(char * to, char const * message, char const * password);
# 37 "typelib.h"
# 37 "typelib.h"
extern TYPELIB sql_protocol_typelib;
extern TYPELIB sql_protocol_typelib;
...
...
libmysql/libmysql.c
View file @
36d3c604
...
@@ -1629,78 +1629,6 @@ mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
...
@@ -1629,78 +1629,6 @@ mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
return
escape_string_for_mysql
(
mysql
->
charset
,
to
,
0
,
from
,
length
);
return
escape_string_for_mysql
(
mysql
->
charset
,
to
,
0
,
from
,
length
);
}
}
char
*
STDCALL
mysql_odbc_escape_string
(
MYSQL
*
mysql
,
char
*
to
,
ulong
to_length
,
const
char
*
from
,
ulong
from_length
,
void
*
param
,
char
*
(
*
extend_buffer
)
(
void
*
,
char
*
,
ulong
*
))
{
char
*
to_end
=
to
+
to_length
-
5
;
const
char
*
end
;
#ifdef USE_MB
my_bool
use_mb_flag
=
use_mb
(
mysql
->
charset
);
#endif
for
(
end
=
from
+
from_length
;
from
!=
end
;
from
++
)
{
if
(
to
>=
to_end
)
{
to_length
=
(
ulong
)
(
end
-
from
)
+
512
;
/* We want this much more */
if
(
!
(
to
=
(
*
extend_buffer
)(
param
,
to
,
&
to_length
)))
return
to
;
to_end
=
to
+
to_length
-
5
;
}
#ifdef USE_MB
{
int
l
;
if
(
use_mb_flag
&&
(
l
=
my_ismbchar
(
mysql
->
charset
,
from
,
end
)))
{
while
(
l
--
)
*
to
++
=
*
from
++
;
from
--
;
continue
;
}
}
#endif
switch
(
*
from
)
{
case
0
:
/* Must be escaped for 'mysql' */
*
to
++=
'\\'
;
*
to
++=
'0'
;
break
;
case
'\n'
:
/* Must be escaped for logs */
*
to
++=
'\\'
;
*
to
++=
'n'
;
break
;
case
'\r'
:
*
to
++=
'\\'
;
*
to
++=
'r'
;
break
;
case
'\\'
:
*
to
++=
'\\'
;
*
to
++=
'\\'
;
break
;
case
'\''
:
*
to
++=
'\\'
;
*
to
++=
'\''
;
break
;
case
'"'
:
/* Better safe than sorry */
*
to
++=
'\\'
;
*
to
++=
'"'
;
break
;
case
'\032'
:
/* This gives problems on Win32 */
*
to
++=
'\\'
;
*
to
++=
'Z'
;
break
;
default:
*
to
++=
*
from
;
}
}
return
to
;
}
void
STDCALL
void
STDCALL
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
)
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
)
{
{
...
...
libmysql/libmysql.def
View file @
36d3c604
...
@@ -78,7 +78,6 @@ EXPORTS
...
@@ -78,7 +78,6 @@ EXPORTS
mysql_next_result
mysql_next_result
mysql_num_fields
mysql_num_fields
mysql_num_rows
mysql_num_rows
mysql_odbc_escape_string
mysql_options
mysql_options
mysql_stmt_param_count
mysql_stmt_param_count
mysql_stmt_param_metadata
mysql_stmt_param_metadata
...
...
libmysqld/libmysqld.def
View file @
36d3c604
...
@@ -78,7 +78,6 @@ EXPORTS
...
@@ -78,7 +78,6 @@ EXPORTS
mysql_next_result
mysql_next_result
mysql_num_fields
mysql_num_fields
mysql_num_rows
mysql_num_rows
mysql_odbc_escape_string
mysql_options
mysql_options
mysql_ping
mysql_ping
mysql_query
mysql_query
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment