Bug #8692 | Cursor, fetch of empty string, wrong result | ||
---|---|---|---|
Submitted: | 22 Feb 2005 16:07 | Modified: | 3 Aug 2005 16:00 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0 | OS: | |
Assigned to: | Georg Richter | CPU Architecture: | Any |
[22 Feb 2005 16:07]
Matthias Leich
[22 Feb 2005 16:15]
Matthias Leich
test case
Attachment: ml29.test (application/test, text), 2.84 KiB.
[30 May 2005 22:23]
Peter Gulutzan
I get the same thing with the ENUM data type. For example: create table fk6 (s1 enum('one','two'))// insert into fk6 values ('')// create function fk6 () returns enum('one','two') begin declare v enum('one','two'); declare c cursor for select s1 from fk6; open c; fetch c into v; return v; end// select fk6()// ... result is NULL
[22 Jul 2005 6:12]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/27461
[27 Jul 2005 16:53]
Georg Richter
fixed in 5.0.11
[3 Aug 2005 16:00]
Jon Stephens
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 Additional info: Documented bugfix in 5.0.11 changelog.