diff options
author | unknown <monty@mashka.mysql.fi> | 2003-06-30 13:28:36 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-06-30 13:28:36 +0300 |
commit | ca071e7f76d8dde1d2f39973e1fcf3f76792895d (patch) | |
tree | 933b2046e69eb6088530f9f8b1d15d8919a876d5 /mysql-test/t/auto_increment.test | |
parent | 94d05b12bac61bbdba69aabd468025eb0e487051 (diff) | |
download | mariadb-git-ca071e7f76d8dde1d2f39973e1fcf3f76792895d.tar.gz |
LAST_INSERT_ID() should not be set if we couldn't generate an auto_increment id.
mysql-test/r/auto_increment.result:
Update after auto_increment fix
mysql-test/t/auto_increment.test:
Another fix for LAST_INSERT_ID()
sql/handler.cc:
Another fix for LAST_INSERT_ID()
sql/sql_class.h:
Another fix for LAST_INSERT_ID()
Diffstat (limited to 'mysql-test/t/auto_increment.test')
-rw-r--r-- | mysql-test/t/auto_increment.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/auto_increment.test b/mysql-test/t/auto_increment.test index 63fdfded6d0..189320a8dcb 100644 --- a/mysql-test/t/auto_increment.test +++ b/mysql-test/t/auto_increment.test @@ -80,6 +80,9 @@ insert into t1 set i = 254; insert into t1 set i = null; select last_insert_id(); --error 1062 +insert into t1 set i = 254; +select last_insert_id(); +--error 1062 insert into t1 set i = null; select last_insert_id(); drop table t1; @@ -100,5 +103,6 @@ select last_insert_id(); --error 1062 insert into t1 values (NULL, 10); select last_insert_id(); + drop table t1; |