mirror of
https://github.com/MariaDB/server.git
synced 2025-07-24 19:42:23 +03:00
select_test.c, insert_test.c:
Added my_global.h to compile after my_list.h is added to mysql.h sql_prepare.cc: Handle close stmt from client Minor fixups to make SET variable=? to work sql_parse.cc: Added missed COM_CLOSE_STMT mysql_priv.h: Change mysql_stmt_close to mysql_stmt_free to not to conflict with client type libmysql.c: Clean all open stmts during mysql_close() implicitly
This commit is contained in:
@ -61,6 +61,8 @@ typedef int my_socket;
|
||||
#define CHECK_EXTRA_ARGUMENTS
|
||||
#endif
|
||||
|
||||
#include "my_list.h" /* for LISTs used in 'MYSQL' and 'MYSQL_STMT' */
|
||||
|
||||
extern unsigned int mysql_port;
|
||||
extern char *mysql_unix_port;
|
||||
|
||||
@ -213,6 +215,8 @@ typedef struct st_mysql
|
||||
struct st_mysql* last_used_slave; /* needed for round-robin slave pick */
|
||||
/* needed for send/read/store/use result to work correctly with replication */
|
||||
struct st_mysql* last_used_con;
|
||||
|
||||
LIST *stmts; /* list of all statements */
|
||||
} MYSQL;
|
||||
|
||||
|
||||
@ -457,6 +461,7 @@ typedef struct st_mysql_stmt
|
||||
MYSQL_RES *result; /* resultset */
|
||||
MYSQL_BIND *bind; /* row binding */
|
||||
MYSQL_FIELD *fields; /* prepare meta info */
|
||||
LIST list; /* list to keep track of all stmts */
|
||||
char *query; /* query buffer */
|
||||
MEM_ROOT mem_root; /* root allocations */
|
||||
MYSQL_RES tmp_result; /* Used by mysql_prepare_result */
|
||||
@ -469,8 +474,8 @@ typedef struct st_mysql_stmt
|
||||
char last_error[MYSQL_ERRMSG_SIZE]; /* error message */
|
||||
my_bool long_alloced; /* flag to indicate long alloced */
|
||||
my_bool send_types_to_server; /* to indicate types supply to server */
|
||||
my_bool param_buffers; /* to indicate the param bound buffers */
|
||||
my_bool res_buffers; /* to indicate the result bound buffers */
|
||||
my_bool param_buffers; /* to indicate the param bound buffers */
|
||||
my_bool res_buffers; /* to indicate the output bound buffers */
|
||||
} MYSQL_STMT;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user