1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

SQL: Truncate history of partitioned table [fixes #399, closes #403]

also, don't rotate versioning partitions for DELETE HISTORY

originally by: Aleksey Midenkov
This commit is contained in:
Sergei Golubchik
2018-02-15 17:13:48 +01:00
parent 187a163c78
commit 9f6a7ed2d7
5 changed files with 33 additions and 20 deletions

View File

@ -317,14 +317,6 @@ 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 || thd->stmt_arena->is_stmt_execute());
if (select_lex->vers_setup_conds(thd, table_list, &conds))
DBUG_RETURN(TRUE);