[MDEV-5542] GROUP_CONCAT truncate output to 65.536 chars when using DISTINCT or ORDER BY Created: 2014-01-20 Updated: 2016-03-02 Resolved: 2016-03-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.13 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Risato Stefano | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Description |
|
As in the summary, I try to GROUP_CONCAT a LONGTEXT field; result is fine if I don'use DISTINCT or ORDER BY as options for the GROUP BY function, otherwise the result is truncated to 65.536 chars (maybe the result is VARCHAR?). |
| Comments |
| Comment by Elena Stepanova [ 2015-06-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I don't see it happen, if it's still reproducible for you, can you paste or attach the output that demonstrates it?
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Risato Stefano [ 2015-06-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem is still present. Here my steps, with MariaDB 10.0.19: Only 1 record: drop table if exists t1;create table t1 (f longtext) engine=Aria; With 2 records: drop table if exists t1;create table t1 (f longtext) engine=Aria; drop table if exists t1;create table t1 (f longtext) engine=Aria; drop table if exists t1;create table t1 (f longtext) engine=Aria; The problem occur when using DISTINCT and/or ORDER BY. Thank you. ---- Elena Stepanova updated I don't see it happen, if it's still reproducible for you, can you paste or attach the output that demonstrates it?
– | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-06-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for clarification. Sorry I misunderstood your description before.
The problem exists in MySQL 5.5, but not in 5.6/5.7. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2016-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-6.html
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2016-02-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Seems like this one: https://github.com/mysql/mysql-server/commit/0d11edacff0c725ac945d28b8e46d78270f53b02 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2016-03-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
revision-id: 6c414fcf89510215d6d3466eb9992d444eadae89 (mariadb-10.1.12-3-g6c414fc)
port of mysql fix WL#6098 — |