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

@ -3112,6 +3112,8 @@ int vers_get_partition_id(partition_info *part_info,
switch (thd->lex->sql_command)
{
case SQLCOM_DELETE:
if (thd->lex->vers_conditions)
break; // DELETE HISTORY
case SQLCOM_DELETE_MULTI:
case SQLCOM_UPDATE:
case SQLCOM_UPDATE_MULTI: