1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

SQL: disable truncate history on partitioned [fixes #399]

This commit is contained in:
Aleksey Midenkov
2017-12-14 19:11:02 +03:00
parent f96815fe97
commit ab5ec0f346
4 changed files with 30 additions and 0 deletions

View File

@ -315,6 +315,14 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
TABLE *table= table_list->table;
DBUG_ASSERT(table);
#ifdef WITH_PARTITION_STORAGE_ENGINE
if (table->part_info)
{
my_error(ER_NOT_ALLOWED_COMMAND, MYF(0));
DBUG_RETURN(true);
}
#endif
DBUG_ASSERT(!conds);
if (select_lex->vers_setup_conds(thd, table_list, &conds))
DBUG_RETURN(TRUE);