Browse Source
MDEV-27217 DELETE partition selection doesn't work for history partitions
MDEV-27217 DELETE partition selection doesn't work for history partitions
LIMIT history switching requires the number of history partitions to be marked for read: from first to last non-empty plus one empty. The least we can do is to fail with error message if the needed partition was not marked for read. As this is handler interface we require new handler error code to display user-friendly error message. Switching by INTERVAL works out-of-the-box with ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET error.bb-10.3-hf-2
10 changed files with 94 additions and 13 deletions
-
3include/my_base.h
-
3include/my_handler_errors.h
-
32mysql-test/suite/versioning/r/partition.result
-
34mysql-test/suite/versioning/t/partition.test
-
8sql/ha_partition.cc
-
2sql/handler.cc
-
1sql/log_event.cc
-
18sql/partition_info.cc
-
2sql/partition_info.h
-
4sql/share/errmsg-utf8.txt
Write
Preview
Loading…
Cancel
Save
Reference in new issue