[MDEV-14670] Cannot create a virtual column with/out system versioning Created: 2017-12-16 Updated: 2018-01-25 Resolved: 2018-01-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation, Parser, Versioned Tables, Virtual Columns |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
It seems impossible to add WITH SYSTEM VERSIONING or WITHOUT SYSTEM VERSIONING clause for a virtual column.
|
| Comments |
| Comment by Aleksey Midenkov [ 2017-12-16 ] | |
|
Is this syntax needed? Expected behavior:
I.e. there can't be non-temporal i and temporal j. OTOH there can't be temporal i and non-temporal j. So j always inherits temporal property from i. | |
| Comment by Sergei Golubchik [ 2017-12-16 ] | |
|
I'd say the behavior is correct. Versioning clauses should not apply to generated columns. | |
| Comment by Sergei Golubchik [ 2017-12-16 ] | |
|
This just needs to be documented. | |
| Comment by Elena Stepanova [ 2017-12-16 ] | |
|
I don't disagree that it's not needed for virtual columns. I thought it would be better if an attempt to do it ended with a specific message rather than a syntax error, but it's not important. I don't know yet who will be documenting versioning when it's ready, so I'm re-opening it for documentation purposes and keeping it on myself until I know who to assign it to. | |
| Comment by Elena Stepanova [ 2018-01-23 ] | |
|
I think https://mariadb.com/kb/en/library/system-versioned-tables/ is missing the "limitations" section, and this could be one of those limitations. | |
| Comment by Ian Gilfillan [ 2018-01-25 ] | |
|
Added this limitation to https://mariadb.com/kb/en/library/generated-columns/#limitations and https://mariadb.com/kb/en/library/system-versioned-tables/#limitations . |