Bug #44694 | Delete where not null auto_increment column is null affects rows | ||
---|---|---|---|
Submitted: | 6 May 2009 13:33 | Modified: | 7 May 2009 11:33 |
Reporter: | Luís Arcaro | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1.34 | OS: | Any (Tested only Windows) |
Assigned to: | CPU Architecture: | Any | |
Tags: | auto_increment, delete, IS NULL |
[6 May 2009 13:33]
Luís Arcaro
[6 May 2009 14:53]
Valeriy Kravchuk
Looks like this is a (surprising) result of IS NULL behavior with auto_increment columns, as described in the manual, http://dev.mysql.com/doc/refman/5.1/en/comparison-operators.html#operator_is-null. Please, check if setting sql_auto_is_null = 0 solves the problem.
[7 May 2009 11:33]
Luís Arcaro
Solved.