1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fixed error handling bug

This commit is contained in:
bell@sanja.is.com.ua
2002-11-04 00:56:25 +02:00
parent e65fd5d574
commit c94b39134f
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)