mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Added charset number to result header
Docs/internals.texi: Updated protocol information sql/mysql_priv.h: Removed clear_error_message() sql/mysqld.cc: Removed not used function clear_error_message sql/protocol.cc: Simple code cleanup sql/sql_parse.cc: Changed clear_error_message() to thd->clear_error() Simple optimization.
This commit is contained in:
@ -1069,7 +1069,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
case COM_CHANGE_USER:
|
||||
{
|
||||
thd->change_user();
|
||||
clear_error_message(thd); // If errors from rollback
|
||||
thd->clear_error(); // If errors from rollback
|
||||
|
||||
statistic_increment(com_other,&LOCK_status);
|
||||
char *user= (char*) packet;
|
||||
@ -1210,7 +1210,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
DBUG_PRINT("query",("%-.4096s",thd->query));
|
||||
mysql_parse(thd,thd->query, thd->query_length);
|
||||
|
||||
while (!thd->fatal_error && thd->lex.found_colon)
|
||||
while (!thd->killed && !thd->fatal_error && thd->lex.found_colon)
|
||||
{
|
||||
char *packet= thd->lex.found_colon;
|
||||
/*
|
||||
@ -1229,7 +1229,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
}
|
||||
thd->query_length= length;
|
||||
thd->query= packet;
|
||||
thd->net.last_error[0]= '\0';
|
||||
VOID(pthread_mutex_lock(&LOCK_thread_count));
|
||||
thd->query_id= query_id++;
|
||||
VOID(pthread_mutex_unlock(&LOCK_thread_count));
|
||||
@ -3259,8 +3258,7 @@ mysql_parse(THD *thd, char *inBuf, uint length)
|
||||
DBUG_ENTER("mysql_parse");
|
||||
|
||||
mysql_init_query(thd);
|
||||
thd->query_length = length;
|
||||
thd->net.report_error= 0;
|
||||
thd->clear_error();
|
||||
|
||||
if (query_cache_send_result_to_client(thd, inBuf, length) <= 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user