mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +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:
@@ -74,7 +74,7 @@ const char *command_name[]={
|
||||
"Drop DB", "Refresh", "Shutdown", "Statistics", "Processlist",
|
||||
"Connect","Kill","Debug","Ping","Time","Delayed_insert","Change user",
|
||||
"Binlog Dump","Table Dump", "Connect Out", "Register Slave",
|
||||
"Prepare", "Prepare Execute", "Long Data"
|
||||
"Prepare", "Prepare Execute", "Long Data", "Close stmt"
|
||||
};
|
||||
|
||||
static char empty_c_string[1]= {0}; // Used for not defined 'db'
|
||||
@@ -1004,6 +1004,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
mysql_stmt_prepare(thd, packet, packet_length);
|
||||
break;
|
||||
}
|
||||
case COM_CLOSE_STMT:
|
||||
{
|
||||
mysql_stmt_free(thd, packet);
|
||||
break;
|
||||
}
|
||||
case COM_QUERY:
|
||||
{
|
||||
if (alloc_query(thd, packet, packet_length))
|
||||
|
Reference in New Issue
Block a user