Bug #13535 | Incorrect result from SELECT statement | ||
---|---|---|---|
Submitted: | 27 Sep 2005 19:35 | Modified: | 20 Oct 2005 6:25 |
Reporter: | Olav Vitters | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 4.1.14/BK source. | OS: | Linux (Linux) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[27 Sep 2005 19:35]
Olav Vitters
[27 Sep 2005 19:37]
Olav Vitters
How to reproduce as a file
Attachment: dump.sql (text/x-sql), 2.56 KiB.
[27 Sep 2005 19:48]
MySQL Verification Team
Thank you for the bug report. This bug not affects 5.0. mysql> -- Should NOT return 1234!!! mysql> SELECT 1234 FROM logincookies WHERE cookie IS NULL; +------+ | 1234 | +------+ | 1234 | +------+ 1 row in set (0.04 sec) mysql> SELECT 1234 FROM logincookies WHERE cookie IS NULL; Empty set (0.00 sec) mysql> SELECT 1234 FROM logincookies WHERE cookie IS NULL; Empty set (0.00 sec) mysql> select version(); +------------------+ | version() | +------------------+ | 4.1.15-debug-log | +------------------+ 1 row in set (0.01 sec) mysql> mysql> mysql> -- Should NOT return 1234!!! mysql> SELECT 1234 FROM logincookies WHERE cookie IS NULL; Empty set (0.01 sec) mysql> select version(); +-----------------+ | version() | +-----------------+ | 5.0.14-rc-debug | +-----------------+ 1 row in set (0.00 sec)
[3 Oct 2005 19:22]
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/30652
[13 Oct 2005 13:55]
Evgeny Potemkin
Fixed in 4.1.16, cset 1.2458.5.1
[13 Oct 2005 13:56]
Evgeny Potemkin
After SHOW TABLE STATUS last_insert_id wasn't cleaned, and next select erroneously rewrites WHERE condition and returs a row; 5.0 isn't affected because of different SHOW TABLE STATUS handling.
[20 Oct 2005 6:25]
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 in 4.1.16 changelog. Closed.