diff options
author | monty@hundin.mysql.fi <> | 2001-06-24 22:11:00 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-06-24 22:11:00 +0300 |
commit | 334a4815eace2e591b6f9285b9ba93ddc0e6d3b9 (patch) | |
tree | 2c5662a19583d6ae066e383d5de337ae60cf618f /libmysqld/lib_sql.cc | |
parent | 7f681996486de1085b41221ed5248b12d5e7355c (diff) | |
download | mariadb-git-334a4815eace2e591b6f9285b9ba93ddc0e6d3b9.tar.gz |
Fixed bug in multi-table-delete code
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r-- | libmysqld/lib_sql.cc | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 323bf42cf92..a633d6f583b 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -74,6 +74,9 @@ bool lib_dispatch_command(enum enum_server_command command, NET *net, { THD *thd=(THD *) net->vio->dest_thd; thd->store_globals(); // Fix if more than one connect + thd->net.last_error[0]=0; // Clear error message + thd->net.last_errno=0; + net_new_transaction(&thd->net); return dispatch_command(command, thd, (char *) arg, length + 1); } @@ -83,17 +86,17 @@ bool lib_dispatch_command(enum enum_server_command command, NET *net, void lib_connection_phase(NET * net, int phase) { - THD * thd; - thd = (THD *)(net->vio->dest_thd); - if (thd) - { - switch (phase) - { - case 2: - check_connections2(thd); - break; - } - } + THD * thd; + thd = (THD *)(net->vio->dest_thd); + if (thd) + { + switch (phase) + { + case 2: + check_connections2(thd); + break; + } + } } } void start_embedded_conn1(NET * net) |