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

HANDLER CLOSE unknown table should produce an error

This commit is contained in:
serg@serg.mysql.com
2001-12-22 18:40:26 +00:00
parent f13741c8d3
commit a72bc0079f
2 changed files with 14 additions and 1 deletions

View File

@ -76,6 +76,12 @@ int mysql_ha_close(THD *thd, TABLE_LIST *tables, bool dont_send_ok)
close_thread_table(thd, ptr);
VOID(pthread_mutex_unlock(&LOCK_open));
}
else
{
my_printf_error(ER_UNKNOWN_TABLE,ER(ER_UNKNOWN_TABLE),MYF(0),
tables->name,"HANDLER");
return -1;
}
if (!dont_send_ok)
send_ok(&thd->net);
return 0;