Bug #39454 | COALESCE with Longtext field only returns the first line | ||
---|---|---|---|
Submitted: | 15 Sep 2008 13:07 | Modified: | 30 Sep 2010 1:46 |
Reporter: | David Poor | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.51a-commmunity-nt | OS: | Windows (XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | COALESCE, longtext |
[15 Sep 2008 13:07]
David Poor
[15 Sep 2008 13:09]
David Poor
In the replication, the table name should be "longtexttable" throughout. (Sloppy documentation on my part!)
[15 Sep 2008 13:42]
Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.57, and inform about the results.
[15 Oct 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[30 Sep 2010 1:46]
Roel Van de Paar
Not repeatable in 5.1.49 nor 5.5.6rc mysql> Select contents from longtexttable where ContentsID = 1; +----------------------------------------------------------------------------------------------------------------------------+ | contents | +----------------------------------------------------------------------------------------------------------------------------+ | This is the first entry,line 1 of three This is the first entry, line 2 of three This is the first entry,line 3 of three | +----------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.03 sec) mysql> Select COALESCE((Select contents from longtexttable where ContentsID = 4),(Select contents from longtexttable where ContentsID = 1)); +-------------------------------------------------------------------------------------------------------------------------------+ | COALESCE((Select contents from longtexttable where ContentsID = 4),(Select contents from longtexttable where ContentsID = 1)) | +-------------------------------------------------------------------------------------------------------------------------------+ | This is the first entry,line 1 of three This is the first entry, line 2 of three This is the first entry,line 3 of three | +-------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> Select COALESCE((Select contents from longtexttable where ContentsID = 1)); +----------------------------------------------------------------------------------------------------------------------------+ | COALESCE((Select contents from longtexttable where ContentsID = 1)) | +----------------------------------------------------------------------------------------------------------------------------+ | This is the first entry,line 1 of three This is the first entry, line 2 of three This is the first entry,line 3 of three | +----------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec)