Bug #31928 | Search fails on '1000-00-00' date after sql_mode change | ||
---|---|---|---|
Submitted: | 29 Oct 2007 20:09 | Modified: | 18 Dec 2007 4:44 |
Reporter: | Peter Gulutzan | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 6.0.4-alpha-debug, 5.0, 5.1 BK | OS: | Linux (SUSE 10 64-bit) |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[29 Oct 2007 20:09]
Peter Gulutzan
[29 Oct 2007 20:53]
Sveta Smirnova
Thank you for the report. Verified as described.
[7 Nov 2007 16:03]
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/commits/37271 ChangeSet@1.2562, 2007-11-07 18:02:12+02:00, gkodinov@magare.gmz +3 -0 Bug #31928: Search fails on '1000-00-00' date after sql_mode change When constructing a key image stricter date checking (from sql_mode) should not be enabled, because it will reject invalid dates that the server would otherwise accept for searching when there's no index. Fixed by disabling strict date checking when constructing a key image.
[14 Dec 2007 8:15]
Bugs System
Pushed into 5.0.54
[14 Dec 2007 8:18]
Bugs System
Pushed into 5.1.23-rc
[14 Dec 2007 8:21]
Bugs System
Pushed into 6.0.5-alpha
[18 Dec 2007 4:44]
Paul DuBois
Noted in 5.0.54, 5.1.23, 6.0.5 changelogs. Changing the SQL mode to cause dates with zero parts to be considered invalid (such as '1000-00-00') could result in indexed and non-indexed searches returning different results for a column that contained such dates.