mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
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.
This commit is contained in:
@@ -107,7 +107,8 @@ static const char *handler_error_messages[]=
|
||||
"Foreign key cascade delete/update exceeds max depth",
|
||||
"Tablespace is missing for a table",
|
||||
"Sequence has been run out",
|
||||
"Sequence values are conflicting"
|
||||
"Sequence values are conflicting",
|
||||
"Cannot select partitions"
|
||||
};
|
||||
|
||||
#endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */
|
||||
|
Reference in New Issue
Block a user