summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2022-01-13 23:35:16 +0300
committerAleksey Midenkov <midenok@gmail.com>2022-01-13 23:35:16 +0300
commit4d5ae2b3258d0d4eb3addd61fdabf49d9a6314e7 (patch)
tree5c211278de35118604bb0650b6e775fed2e37724 /sql/log_event.cc
parentf9f6b190ccea9c266a541ebbc05b1e2352c84d25 (diff)
downloadmariadb-git-4d5ae2b3258d0d4eb3addd61fdabf49d9a6314e7.tar.gz
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.
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index 947ee3f7707..fed2b14652f 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -174,6 +174,7 @@ static const char *HA_ERR(int i)
case HA_ERR_LOGGING_IMPOSSIBLE: return "HA_ERR_LOGGING_IMPOSSIBLE";
case HA_ERR_CORRUPT_EVENT: return "HA_ERR_CORRUPT_EVENT";
case HA_ERR_ROWS_EVENT_APPLY : return "HA_ERR_ROWS_EVENT_APPLY";
+ case HA_ERR_PARTITION_LIST : return "HA_ERR_PARTITION_LIST";
}
return "No Error!";
}