1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Merge april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.0

into  april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.1-new
This commit is contained in:
svoj@april.(none)
2006-04-06 16:44:26 +05:00
4 changed files with 28 additions and 3 deletions

View File

@ -916,8 +916,7 @@ bool mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
DBUG_RETURN(TRUE);
}
if (!ha_check_storage_engine_flag(ha_resolve_by_legacy_type(thd, table_type),
HTON_CAN_RECREATE)
|| thd->lex->sphead)
HTON_CAN_RECREATE))
goto trunc_by_del;
if (lock_and_wait_for_table_name(thd, table_list))