[MDEV-8258] GROUP_CONCAT shows 1 result having all null values when no result can be found Created: 2015-06-02 Updated: 2015-06-02 Resolved: 2015-06-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5.43-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Randy Geraads | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian |
||
| Description |
|
Also issued at mysql bugs: http://bugs.mysql.com/bug.php?id=77222 GROUP_CONCAT shows 1 result having all null values when no result can be found, instead of showing 0 results. Example: http://sqlfiddle.com/#!9/2b29e/1 How to repeat: SELECT *, GROUP_CONCAT(name) FROM test Expected result: Actual result: |
| Comments |
| Comment by Elena Stepanova [ 2015-06-02 ] | |||||||||||||||||
|
It's common behavior for aggregate functions.
It is also explicitly documented, both in MySQL manual and MariaDB KB:
|