Commit a72bc007 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

HANDLER CLOSE unknown table should produce an error

parent f13741c8
...@@ -9929,11 +9929,16 @@ appropriate class for this user in the password file if you are not ...@@ -9929,11 +9929,16 @@ appropriate class for this user in the password file if you are not
using the default (use: chpass mysqld-user-name). @xref{safe_mysqld, , using the default (use: chpass mysqld-user-name). @xref{safe_mysqld, ,
@code{safe_mysqld}}. @code{safe_mysqld}}.
If you have a lot of memory you should consider rebuilding
the kernel to allow MySQL to take more than 512M of RAM.
Take a look at @code{option MAXDSIZ} in the LINT config
file for more info.
If you get problems with the current date in MySQL, setting the If you get problems with the current date in MySQL, setting the
@code{TZ} variable will probably help. @xref{Environment variables}. @code{TZ} variable will probably help. @xref{Environment variables}.
To get a secure and stable system you should only use FreeBSD kernels To get a secure and stable system you should only use FreeBSD kernels
that are marked @code{-STABLE}. that are marked @code{-RELEASE}.
@node NetBSD, OpenBSD, FreeBSD, BSD Notes @node NetBSD, OpenBSD, FreeBSD, BSD Notes
...@@ -47849,6 +47854,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}. ...@@ -47849,6 +47854,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet @itemize @bullet
@item @item
Fixed bug when @code{HANDLER} was used with some unsupported table type.
@item
@code{mysqldump} now puts @code{ALTER TABLE table_name DISABLE KEYS} and @code{mysqldump} now puts @code{ALTER TABLE table_name DISABLE KEYS} and
@code{ALTER TABLE table_name DISABLE KEYS} in the sql dump. @code{ALTER TABLE table_name DISABLE KEYS} in the sql dump.
@item @item
...@@ -76,6 +76,12 @@ int mysql_ha_close(THD *thd, TABLE_LIST *tables, bool dont_send_ok) ...@@ -76,6 +76,12 @@ int mysql_ha_close(THD *thd, TABLE_LIST *tables, bool dont_send_ok)
close_thread_table(thd, ptr); close_thread_table(thd, ptr);
VOID(pthread_mutex_unlock(&LOCK_open)); 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) if (!dont_send_ok)
send_ok(&thd->net); send_ok(&thd->net);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment