| Bug #4057 | LEFT() function in HAVING clause truncates query result. | ||
|---|---|---|---|
| Submitted: | 8 Jun 2004 13:59 | Modified: | 16 Jun 2004 9:54 |
| Reporter: | Ramil Kalimullin | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.1 | OS: | Any (all) |
| Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[8 Jun 2004 15:13]
Ramil Kalimullin
ChangeSet 1.1903 04/06/08 18:01:15 ram@gw.mysql.r18.ru +6 -0
[16 Jun 2004 9:54]
Ramil Kalimullin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html

Description: See 'How to repeat'. How to repeat: DROP TABLE IF EXISTS t1; CREATE TABLE t1 ( a char(4) ) ENGINE=MyISAM; INSERT INTO t1 VALUES ('John'),('Anna'),('Bill'); SELECT GROUP_CONCAT(a SEPARATOR ',') AS names FROM t1 HAVING LEFT(names,1) = 'J'; SELECT GROUP_CONCAT(a SEPARATOR ',') AS names FROM t1 HAVING LEFT(names,2) = 'Jo'; SELECT GROUP_CONCAT(a SEPARATOR ',') AS names FROM t1 HAVING LEFT(names,3) = 'Joh'; DROP TABLE t1; Suggested fix: n/a