diff options
author | monty@donna.mysql.fi <> | 2001-03-08 21:49:15 +0200 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-03-08 21:49:15 +0200 |
commit | 32d403f087116419d52b021963a5a4b13dda95a4 (patch) | |
tree | 03e32a721d028e31fabafbbc929c8e90341c86e2 /mysql-test/t/delayed.test | |
parent | b947bc4aedc75a9d6fb2604d5b87c4c254e87ab3 (diff) | |
download | mariadb-git-32d403f087116419d52b021963a5a4b13dda95a4.tar.gz |
Fixed bug in INSERT DELAYED when INSERT generated an error
Diffstat (limited to 'mysql-test/t/delayed.test')
-rw-r--r-- | mysql-test/t/delayed.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/delayed.test b/mysql-test/t/delayed.test index 15a85a09b8d..4bc1afa7612 100644 --- a/mysql-test/t/delayed.test +++ b/mysql-test/t/delayed.test @@ -15,3 +15,17 @@ insert into t1 set a = 8,tmsp=19711006010203; select * from t1 where tmsp=0; select * from t1 where tmsp=19711006010203; drop table t1; + +# +# Test bug when inserting NULL into an auto_increment field with +# INSERT DELAYED +# + +create table t1 (a int not null auto_increment primary key, b char(10)); +insert delayed into t1 values (1,"b"); +insert delayed into t1 values (null,"c"); +insert delayed into t1 values (3,"d"),(null,"e"); +--error 1136 +insert delayed into t1 values (3,"this will give an","error"); +select * from t1; +drop table t1; |