[MDEV-10101] Wrong error message of SELECT 1 UNION (SELECT 1 FROM t1 GROUP BY 1 WITH ROLLUP) Created: 2016-05-23 Updated: 2016-06-01 Resolved: 2016-06-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.2.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.2.1-5 | ||||||||
| Description |
|
This script:
returns a wrong error message:
If I remove parentheses:
it returns a result:
If I rewrite the query the other way around:
it returns a result:
|