Bug #31334 | Out of range values are inserted without throwing error | ||
---|---|---|---|
Submitted: | 2 Oct 2007 9:46 | Modified: | 3 Oct 2007 10:22 |
Reporter: | media forest | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[2 Oct 2007 9:46]
media forest
[2 Oct 2007 11:44]
MySQL Verification Team
Thank you for the bug report. Use the sql_mode for: mysql> set sql_mode=TRADITIONAL; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO TEST VALUES (3118957900,'spp3916_20071002'); ERROR 1264 (22003): Out of range value adjusted for column 'ID' at row 1 mysql>
[3 Oct 2007 10:22]
media forest
I thought that inserting a bad value as Primary Key should throw an error in any mode...