[MDEV-24875] Nested GROUP_CONCAT in stored function gives "ERROR 1111 (HY000) : Invalid use of group function" Created: 2021-02-15 Updated: 2023-12-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 10.5.8, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2, 11.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thomas G. Jensen | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | GROUP_CONCAT, function, regression | ||
| Environment: |
Ubuntu 20.04 LTS |
||
| Issue Links: |
|
||||||||
| Description |
|
|
| Comments |
| Comment by Alice Sherepa [ 2021-02-16 ] | |||||||||||||||||||||||||||
|
Also with other aggregated functions. MariaDB 10.4,10.5 returns error "Invalid use of group function"
| |||||||||||||||||||||||||||
| Comment by Jan Schmidt [ 2023-05-05 ] | |||||||||||||||||||||||||||
|
I can confirm this error even with MariaDB 10.6 and 10.11.2. Tested with the simple example from the comment of Alice Sherepa. This prevents me from upgrading to a newer version than 10.3. | |||||||||||||||||||||||||||
| Comment by Jan Schmidt [ 2023-06-26 ] | |||||||||||||||||||||||||||
|
This is a problematic issue for me because 10.3 is EOL and I have multiple functions using something like
Is there a better solution for this? | |||||||||||||||||||||||||||
| Comment by Geisel [ 2023-12-28 ] | |||||||||||||||||||||||||||
|
11.2.2 is problematic too.
| |||||||||||||||||||||||||||
| Comment by Geisel [ 2023-12-28 ] | |||||||||||||||||||||||||||
|
Hi @Alice Sherepa. | |||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-12-28 ] | |||||||||||||||||||||||||||
|
Caused by
|