Bug #80765 | GROUP_CONCAT() function with IN() statement. Wrong result | ||
---|---|---|---|
Submitted: | 16 Mar 2016 12:41 | Modified: | 20 Mar 2016 14:09 |
Reporter: | Elshad Agayev | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.5.47 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any | |
Tags: | group_concat |
[16 Mar 2016 12:41]
Elshad Agayev
[20 Mar 2016 14:09]
MySQL Verification Team
Thank you for the bug report. C:\dbs>5.5\bin\mysql -uroot --port=3550 -e "SELECT * FROM test.t1 WHERE id IN (SELECT GROUP_CONCAT(id SEPARATOR ',') FROM test.t1)" +----+---------+ | id | title | +----+---------+ | 1 | title 1 | +----+---------+ C:\dbs>5.5\bin\mysql -uroot --port=3550 -e "SELECT * FROM test.t1 WHERE id IN (SELECT GROUP_CONCAT(id SEPARATOR ',') FROM test.t1 GROUP BY id)" +----+----------+ | id | title | +----+----------+ | 1 | title 1 | | 2 | title 2 | | 3 | title 3 | | 4 | title 4 | | 5 | title 5 | | 6 | title 6 | | 7 | title 7 | | 8 | title 8 | | 9 | title 9 | | 10 | title 10 | +----+----------+