1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Fixed error handling bug

sql/sql_class.h:
  new function for clean out error message
This commit is contained in:
unknown
2002-11-04 00:56:25 +02:00
parent 4358ac0c9f
commit a4e64e252d
6 changed files with 16 additions and 13 deletions

View File

@@ -857,8 +857,7 @@ bool do_command(THD *thd)
old_timeout=net->read_timeout;
// Wait max for 8 hours
net->read_timeout=(uint) thd->variables.net_wait_timeout;
net->last_error[0]=0; // Clear error message
net->last_errno=0;
thd->clear_error(); // Clear error message
net_new_transaction(net);
if ((packet_length=my_net_read(net)) == packet_error)