diff options
author | bar@mysql.com <> | 2006-06-22 19:10:11 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2006-06-22 19:10:11 +0500 |
commit | 4bd163b6989bcf14a6402ed7974b630e82621a6c (patch) | |
tree | c3f6d852e20a5295c0717546027c3bef5459e476 /mysql-test/t | |
parent | aa7ab41d47642bb6ad3bebcb333c3f340098b2b4 (diff) | |
download | mariadb-git-4bd163b6989bcf14a6402ed7974b630e82621a6c.tar.gz |
Bugs#20392: INSERT_ID session variable has weird value
sys_var_insert_id returned LAST_INSERT_ID instead of INSERT_ID.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/variables.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test index be1731e7493..d0def5af8d0 100644 --- a/mysql-test/t/variables.test +++ b/mysql-test/t/variables.test @@ -302,6 +302,16 @@ set wait_timeout=100; set log_warnings=1; # +# Bugs: #20392: INSERT_ID session variable has weird value +# +select @@session.insert_id; +set @save_insert_id=@@session.insert_id; +set session insert_id=20; +select @@session.insert_id; +set @@session.insert_id=@save_insert_id; +select @@session.insert_id; + +# # key buffer # |