[MDEV-10028] Syntax error on ((SELECT ...) UNION (SELECT ...)) Created: 2016-05-05 Updated: 2018-07-09 Resolved: 2018-07-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Oleksandr Byelkin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
I create and populate a table:
Now I run this SQL Standard compliant query:
it returns a syntax error:
PostgreSQL and Oracle work fine on the same query. This Standard-compliant query also returns a syntax_error:
PostgreSQL and Oracle work fine on this query. This query returns a syntax error:
It should return a result. It works fine in PostreSQL. Also, it is a direct equivalent query to this Standard-compliant version:
Another example:
The same query works in PostgreSQL.
|
| Comments |
| Comment by Alexander Barkov [ 2016-05-05 ] |
|
MySQL-5.7.12 is also affected. |
| Comment by Elena Stepanova [ 2016-05-05 ] |
|
See also |
| Comment by Oleksandr Byelkin [ 2018-04-11 ] |
|
test put in https://jira.mariadb.org/browse/MDEV-11953 |
| Comment by Oleksandr Byelkin [ 2018-07-09 ] |
|
Fixed in |