Bug #14083 | inserts not possible in 'strict mode' with autoincr PK | ||
---|---|---|---|
Submitted: | 17 Oct 2005 18:47 | Modified: | 18 Oct 2005 2:31 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.14 | OS: | Windows (WinXP SP2) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[17 Oct 2005 18:47]
Peter Laursen
[17 Oct 2005 23:00]
Heikki Tuuri
Peter, please test insert into `test`.`tablename1` ( `id`, `t` ) values ( NULL, 'a' ); The empty sring '' is not the same as NULL. Regards, Heikki
[17 Oct 2005 23:50]
Peter Laursen
Thanks! That was it! In 'non-strict-mode' the server substitues the NULL-value for an empty string with a numerical value. But not in 'strict-mode'. That would not be very strict either!