[MDEV-14771] Syntax error upon "FOR system_time" query from derived table Created: 2017-12-25 Updated: 2017-12-27 Resolved: 2017-12-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser, Versioned Tables |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This does not work:
The right syntax apparently is
I want to ensure it's intentional, since the working syntax looks confusing.
|
| Comments |
| Comment by Sergei Golubchik [ 2017-12-27 ] | |||||||||||||
|
It is intentional. That's from SQL:2016, part II, <table reference>:
As you see, FOR SYSTEM_TIME goes before AS identifier |