1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix for subsequent error calls in multi-query

sql/sql_parse.cc:
  Fix for subsequent errors calls in multi-query
tests/client_test.c:
  Misc cleanups
This commit is contained in:
unknown
2003-01-31 00:35:06 -08:00
parent fccbabe089
commit ae4a9ea8cc
2 changed files with 33 additions and 20 deletions

View File

@@ -1225,6 +1225,7 @@ 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));