[MDEV-13420] views not compiling after installing 10.1.25 error on order clause Created: 2017-08-01 Updated: 2017-09-14 Resolved: 2017-09-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Views |
| Affects Version/s: | 10.1, 10.1.25, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Marc | Assignee: | Oleksandr Byelkin |
| Resolution: | Not a Bug | Votes: | 1 |
| Labels: | regression | ||
| Environment: |
linux red hat 6 |
||
| Issue Links: |
|
||||||||
| Description |
|
Views that were changed to workaround bug having those 2 tables:
2 different cases:
gives error
case #2
gives error :
Those cases were working on 10.1.22 before upgrade to 10.1.25 |
| Comments |
| Comment by Elena Stepanova [ 2017-08-01 ] | |||||
|
Thanks for the report and test case. | |||||
| Comment by Oleksandr Byelkin [ 2017-09-14 ] | |||||
|
Correct view is:
Because the union just has no columns col1 and col2 and the select if it executed alone also return error. If it was working somehow before it was a bug. The same is in the second case, column in ORDER BY should be from result set of the select or union to which the ORDER BY belongs to. |