Bug #32050 | table logging gone wrong. | ||
---|---|---|---|
Submitted: | 2 Nov 2007 10:47 | Modified: | 14 Jan 2008 17:52 |
Reporter: | Domas Mituzas | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: CSV | Severity: | S1 (Critical) |
Version: | 5.1-bk | OS: | Any |
Assigned to: | Sergey Vojtovich | CPU Architecture: | Any |
[2 Nov 2007 10:47]
Domas Mituzas
[2 Nov 2007 10:48]
Domas Mituzas
Verified against ChangeSet@1.2595, 2007-10-25 13:17:44+02:00, joerg@trift2. +1 -0
[2 Nov 2007 10:55]
Domas Mituzas
Seems to be caused by: ChangeSet@1.2573.6.1, 2007-10-18 14:48:04-07:00, antony@pcg5ppc.xiphis.org +7 -0 Bug#31473 "CSV does not work with NULL value in datetime fields" Attempting to insert a row with a NULL value for a DATETIME field results in a CSV file which the storage engine cannot read. Don't blindly assume that "0" is acceptable for all field types, Since CSV does not support NULL, we find out from the field the default non-null value. Do not permit the creation of a table with a nullable columns.
[2 Nov 2007 18:02]
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/37012 ChangeSet@1.2599, 2007-11-02 11:02:07-07:00, antony@pcg5ppc.xiphis.org +1 -0 bug#32050 "table logging gone wrong" CSV requires that all columns be NOT NULL, so as part of mysql upgrade scripts, we must alter log table definitions so that all columns which are previously nullable are now NOT NULL.
[2 Nov 2007 20:36]
Brian Aker
Looks good... no test case, but I don't think one is possible.
[21 Nov 2007 13:02]
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/38207 ChangeSet@1.2628, 2007-11-21 17:05:06+04:00, svoj@mysql.com +2 -0 BUG#32050 - table logging gone wrong. INSERT/UPDATE against CSV table created by MySQL earlier than 5.1.23 with NULL-able column results in server crash in debug builds. Starting with 5.1.23 CSV doesn't permit creation of NULL-able columns, but it is still possible to get such table from older MySQL versions. Relaxed DBUG_ASSERT() so that it accepts tables with NULL-able columns created by earlier versions of MySQL.
[21 Nov 2007 13:04]
Sergey Vojtovich
Docs note: I believe it is worth to mention in the manual that starting with 5.1.23 it is not possible to create CSV table with NULL-able fields.
[27 Nov 2007 10:13]
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/38604 ChangeSet@1.2654, 2007-11-27 14:01:11+04:00, svoj@mysql.com +2 -0 BUG#32050 - table logging gone wrong. INSERT/UPDATE against CSV table created by MySQL earlier than 5.1.23 with NULL-able column results in server crash in debug builds. Starting with 5.1.23 CSV doesn't permit creation of NULL-able columns, but it is still possible to get such table from older MySQL versions. Fixed by removing excessive DBUG_ASSERT().
[30 Nov 2007 10:58]
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/38943 ChangeSet@1.2673, 2007-11-30 15:00:15+04:00, svoj@mysql.com +1 -0 BUG#32050 - table logging gone wrong. Reverted log tables alteration.
[12 Dec 2007 23:00]
Bugs System
Pushed into 6.0.5-alpha
[12 Dec 2007 23:02]
Bugs System
Pushed into 5.1.23-rc
[14 Jan 2008 17:52]
Jon Stephens
Documented as follows in the 5.1.23 and 6.0.5 changelogs, and in the 5.1/6.0 CSV chapter: It is no longer possible [as of MySQL {5.1.23|6.0.5}] to create CSV tables with NULL columns. However, for backwards compatibility, you can continue to use such tables that were created in previous MySQL releases.