diff options
author | unknown <serg@serg.mysql.com> | 2001-12-22 18:40:26 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-12-22 18:40:26 +0000 |
commit | 4588c007c516c00a5834e36b0d737534a0a65857 (patch) | |
tree | 385fd2dec47698f0e11295acc21dcf4259a53cde /sql/sql_handler.cc | |
parent | 3a5f66292d8db9733bce5797c60e1dceb8542c15 (diff) | |
download | mariadb-git-4588c007c516c00a5834e36b0d737534a0a65857.tar.gz |
HANDLER CLOSE unknown table should produce an error
Docs/manual.texi:
FreeBSD and News entries updated
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; |