[MDEV-14766] DELETE HISTORY from partitioned table deserves a specific error message Created: 2017-12-25 Updated: 2018-02-22 Resolved: 2018-02-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Partitioning, Versioned Tables |
| Affects Version/s: | 10.3.4 |
| Fix Version/s: | 10.3.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Eugene Kosov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
bb-10.3-temporal ea49441c41 |
||
| Description |
|
DELETE HISTORY from a system-version-partitioned table is not currently allowed, and it fails with the most generic ER_NOT_ALLOWED_COMMAND:
I think it's user-unfriendly, table creation and the attempt to truncate the history can be long time apart, and it's not easy to understand the relation. Besides, it's not accurate, because the command itself is allowed with the MariaDB version, it's the circumstances that prohibit it from being executed. All in all, I think a more specific error would be better here. |
| Comments |
| Comment by Sergei Golubchik [ 2017-12-27 ] | |||||||||||||
|
I don't see why it is not allowed in the first place. | |||||||||||||
| Comment by Aleksey Midenkov [ 2017-12-28 ] | |||||||||||||
|
Feature scheduled in #403. | |||||||||||||
| Comment by Aleksey Midenkov [ 2018-01-18 ] | |||||||||||||
| Comment by Elena Stepanova [ 2018-02-01 ] | |||||||||||||
|
(Re-opening since it didn't show up in git commit history). It is said to have been fixed in 10.3.4, but I don't see it:
So, either the fix never made it to the main tree, or it got broken again. |