1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -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}.
@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

View File

@ -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;