[MDEV-13454] Improper error in ONLY_FULL_GROUP_BY sql_mode with condition_pushdown_for_derived=on Created: 2017-08-04 Updated: 2018-01-05 Resolved: 2018-01-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Parser |
| Affects Version/s: | 10.2.2, 10.2 |
| Fix Version/s: | 10.2.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alice Sherepa | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 6 |
| Labels: | None | ||
| Environment: |
Ubuntu 16.04 |
||
| Sprint: | 10.2.11 |
| Description |
|
Based on StackOverflow question posted by Joyce Babu With condition_pushdown_for_derived=on (which is default in 10.2) and sql_mode=ONLY_FULL_GROUP_BY, the query from the test case below returns an error:
The query appears to be valid, and without ONLY_FULL_GROUP_BY and/or with condition_pushdown_for_derived=off it works. The error message is also incorrect, as there was no HAVING clause in query.
|
| Comments |
| Comment by Alice Sherepa [ 2017-11-11 ] | ||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2017-11-14 ] | ||||||||||||||||||||||||||||||||||
|
The patch for bug mdev-14368 that was pushed into 5.5 fixes the problem. | ||||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2018-01-05 ] | ||||||||||||||||||||||||||||||||||
|
This bug is a consequence of the bug mdev-14368 fixed in 5.5.59. | ||||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2018-01-05 ] | ||||||||||||||||||||||||||||||||||
|
Fixed after a upstream merge from 5.5 where the cause of the bug was removed. |