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:
@ -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;
|
||||
|
Reference in New Issue
Block a user