1 drop table if exists t1;
2 set @org_mode=@@sql_mode;
5 `a` tinyint(4) NOT NULL auto_increment,
8 set @@sql_mode='strict_all_tables';
9 insert into t1 values(1000);
10 ERROR 22003: Out of range value for column 'a' at row 1
11 select count(*) from t1;
14 set auto_increment_increment=1000;
15 set auto_increment_offset=700;
16 insert into t1 values(null);
17 ERROR 22003: Out of range value for column 'a' at row 1
18 select count(*) from t1;
21 set @@sql_mode=@org_mode;
22 insert into t1 values(null);
24 Warning 1264 Out of range value for column 'a' at row 1