Bug #26207 | inserts don't work with shortened index | ||
---|---|---|---|
Submitted: | 9 Feb 2007 6:18 | Modified: | 13 Apr 2007 18:03 |
Reporter: | mike sherwood | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.0.22, 5.1 BK, 4.1 BK | OS: | Windows (windows) |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
Tags: | INDEX, inserts |
[9 Feb 2007 6:18]
mike sherwood
[9 Feb 2007 10:52]
Sveta Smirnova
Thank you for the report. Please provide output of SELECT @@sql_mode;;
[10 Feb 2007 1:35]
mike sherwood
here is the result of SELECT @@sql_mode; STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
[12 Feb 2007 7:57]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Please read carefully about STRICT_TRANS_TABLES at http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html
[12 Feb 2007 9:39]
Sveta Smirnova
Sorry: was wrong in previous comment. Verified as described. All versions are affected. If omit STRICT_TRANS_TABLES, we get warning "Data truncated for column 'org' at row 1"
[1 Mar 2007 12:56]
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/20896 ChangeSet@1.2425, 2007-03-01 14:56:24+02:00, gkodinov@magare.gmz +3 -0 Bug #26207: When making the key image to use in index search MySQL was not explicitly suppressing warnings. And if the context happens to enable warnings (e.g. INSERT .. SELECT) the warnings resulting from converting the constant the key is compared to are reported to the client. Fixed by suppressing warnings when converting the constants to the same type as the key parts.
[22 Mar 2007 15: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/commits/22650 ChangeSet@1.2425, 2007-03-22 17:22:30+02:00, gkodinov@magare.gmz +3 -0 Bug #26207: When making the key image to use in index search MySQL was not explicitly suppressing warnings. And if the context happens to enable warnings (e.g. INSERT .. SELECT) the warnings resulting from converting the data the key is compared to are reported to the client. Fixed by suppressing warnings when converting the data to the same type as the key parts.
[22 Mar 2007 16:44]
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/22664 ChangeSet@1.2425, 2007-03-22 18:44:16+02:00, gkodinov@magare.gmz +3 -0 Bug #26207: When making the key image to use in index search MySQL was not explicitly suppressing warnings. And if the context happens to enable warnings (e.g. INSERT .. SELECT) the warnings resulting from converting the data the key is compared to are reported to the client. Fixed by suppressing warnings when converting the data to the same type as the key parts.
[23 Mar 2007 13:54]
Alexey Botchkov
Pushed in 5.0.40 and 5.1.18
[13 Apr 2007 18:03]
Paul DuBois
Noted in 5.0.40, 5.1.18 changelogs. For INSERT INTO ... SELECT where index searches used column prefixes, insert errors could occur when key value type conversion was done.