[MDEV-14769] Temporary table can be altered into system versioning + system_versioning_alter_history has no effect Created: 2017-12-25 Updated: 2018-07-17 Resolved: 2018-01-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary, Versioned Tables |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.3.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Eugene Kosov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
bb-10.3-temporal ea49441c41 |
||
| Issue Links: |
|
||||||||
| Description |
|
Creation of a temporary table with system versioning is prohibited:
However, such a table can be created in two steps:
Please also note that system_versioning_alter_history has no effect here:
|
| Comments |
| Comment by Eugene Kosov (Inactive) [ 2017-12-27 ] | |
|
It's always ok (and standard) to `ADD SYSTEM VERSIONING` and `DROP SYSTEM VERSIONING`. `system_versioning_alter_history` prohibits all other `ALTER` types. | |
| Comment by Elena Stepanova [ 2017-12-27 ] | |
You are right, sorry for the confusion, please ignore the part that refers to system_versioning_alter_history behavior. It initially came from a non-simplified test case, which was executing more complex statements, like
which I expected to fail, but I can now see that this is allowed for non-temporary tables as well, so I guess it's not a problem. | |
| Comment by Eugene Kosov (Inactive) [ 2018-01-04 ] | |
|
Fixed in https://github.com/MariaDB/server/commit/157150cfcf5b95b19d332cb1373aeb5eb22d4f70 |