summaryrefslogtreecommitdiff
path: root/mysql-test/r/variables.result
diff options
context:
space:
mode:
authorbar@mysql.com <>2006-06-22 19:40:59 +0500
committerbar@mysql.com <>2006-06-22 19:40:59 +0500
commit75351dc0a5a55acba5fdcb6ec433f0028076c7d5 (patch)
tree6195df0469a9d3c03b7c99c7c24e7251668ff347 /mysql-test/r/variables.result
parent4bd163b6989bcf14a6402ed7974b630e82621a6c (diff)
downloadmariadb-git-75351dc0a5a55acba5fdcb6ec433f0028076c7d5.tar.gz
Additional test for Bugs#20392: INSERT_ID session variable has weird value
sys_var_insert_id returned LAST_INSERT_ID instead of INSERT_ID, as Guilhem suggested.
Diffstat (limited to 'mysql-test/r/variables.result')
-rw-r--r--mysql-test/r/variables.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
index 1016cf27c18..4ddc7e2ab87 100644
--- a/mysql-test/r/variables.result
+++ b/mysql-test/r/variables.result
@@ -429,6 +429,16 @@ set session insert_id=20;
select @@session.insert_id;
@@session.insert_id
20
+set session last_insert_id=100;
+select @@session.insert_id;
+@@session.insert_id
+20
+select @@session.last_insert_id;
+@@session.last_insert_id
+100
+select @@session.insert_id;
+@@session.insert_id
+20
set @@session.insert_id=@save_insert_id;
select @@session.insert_id;
@@session.insert_id