diff options
author | serg@serg.mysql.com <> | 2001-12-22 18:40:26 +0000 |
---|---|---|
committer | serg@serg.mysql.com <> | 2001-12-22 18:40:26 +0000 |
commit | a72bc0079f913094b8f15bde6248648d9f457d77 (patch) | |
tree | 385fd2dec47698f0e11295acc21dcf4259a53cde /sql/sql_handler.cc | |
parent | f13741c8d3f59023315d4c30b22e5cc99e4cbd03 (diff) | |
download | mariadb-git-a72bc0079f913094b8f15bde6248648d9f457d77.tar.gz |
HANDLER CLOSE unknown table should produce an error
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r-- | sql/sql_handler.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index 24108330dc9..f7effdc67e6 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -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; |