mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bug in truncating nonexisting table, found by Carsten
mysql-test/r/truncate.result: test suit for truncate bug mysql-test/t/truncate.test: test suit for truncate bug
This commit is contained in:
@ -546,7 +546,8 @@ int mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
|
||||
db_type table_type;
|
||||
if ((table_type=get_table_type(path)) == DB_TYPE_UNKNOWN)
|
||||
{
|
||||
my_error(ER_NO_SUCH_TABLE, MYF(0), table_list->real_name);
|
||||
my_error(ER_NO_SUCH_TABLE, MYF(0), table_list->db,
|
||||
table_list->real_name);
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
if (!ha_supports_generate(table_type))
|
||||
|
Reference in New Issue
Block a user