[MDEV-737] LP:882981 - Query that violates ONLY_FULL_GROUP by is accepted under derived_merge=on Created: 2011-10-28 Updated: 2020-05-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.3.9, 10.0.22 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query is rejected under derived_merge=OFF with error: ERROR 1140 (42000): Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause but is accepted under derived_merge=ON with the following explain:
test case:
|
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-11-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Launchpad bug id: 882981 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-11-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Query that violates ONLY_FULL_GROUP by is accepted under derived_merge=on create table t1 (f1 integer, f2 integer); does not return an error. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-11-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Still affected 10.0, fixed in 10.1 something < 10.1.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-02-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
danblack, |