1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#6877 MySQL should give an error if the requested table type is not available

Implement new SQL mode - NO_ENGINE_SUBSTITUTION
This commit is contained in:
acurtis@xiphis.org
2005-06-17 22:14:44 +01:00
parent c78b19768d
commit 51dd521dfc
12 changed files with 95 additions and 38 deletions

View File

@ -790,7 +790,7 @@ bool mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
if (!dont_send_ok)
{
db_type table_type;
if ((table_type=get_table_type(path)) == DB_TYPE_UNKNOWN)
if ((table_type=get_table_type(thd, path)) == DB_TYPE_UNKNOWN)
{
my_error(ER_NO_SUCH_TABLE, MYF(0),
table_list->db, table_list->table_name);