mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
e90d1815de
git-svn-id: file:///svn/mysql/tests/mysql-test@55033 c7de825b-a66e-492c-adef-691d508d4ae1
120 lines
2.5 KiB
Text
120 lines
2.5 KiB
Text
disable_warnings;
|
|
drop table if exists t;
|
|
enable_warnings;
|
|
set sql_mode=traditional;
|
|
|
|
create table t (id tinyint unsigned not null auto_increment, key(id));
|
|
insert into t set id=0xf8;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
let $i=0;
|
|
let $n=7;
|
|
while ($i < $n) {
|
|
insert into t set id=null;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
inc $i;
|
|
}
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
drop table t;
|
|
|
|
create table t (id smallint unsigned not null auto_increment, key(id));
|
|
insert into t set id=0xfff8;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
let $i=0;
|
|
let $n=7;
|
|
while ($i < $n) {
|
|
insert into t set id=null;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
inc $i;
|
|
}
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
drop table t;
|
|
|
|
create table t (id int unsigned not null auto_increment, key(id));
|
|
insert into t set id=0xfffffff8;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
let $i=0;
|
|
let $n=7;
|
|
while ($i < $n) {
|
|
insert into t set id=null;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
inc $i;
|
|
}
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
drop table t;
|
|
|
|
create table t (id bigint unsigned not null auto_increment, key(id));
|
|
insert into t set id=0xfffffffffffffff8;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
let $i=0;
|
|
let $n=6;
|
|
while ($i < $n) {
|
|
insert into t set id=null;
|
|
show warnings;
|
|
select * from t;
|
|
select last_insert_id() from t limit 1;
|
|
inc $i;
|
|
}
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
error 1264,1467;
|
|
insert into t set id=null;
|
|
select last_insert_id() from t limit 1;
|
|
|
|
drop table t;
|