Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Dec 13, 2024
1 parent b3c2ed9 commit 7cbe43c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tests/integrationtest/r/session/session.result
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,12 @@ deallocate prepare stmt1;
select c1 from t where c2 = 20;
c1
3
select last_insert_id(1);
last_insert_id(1)
1
select last_insert_id(0);
last_insert_id(0)
0
select last_insert_id();
last_insert_id()
0
5 changes: 4 additions & 1 deletion tests/integrationtest/t/session/session.test
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,7 @@ execute stmt1 using @v2;
deallocate prepare stmt1;
select c1 from t where c2 = 20;


# https://github.com/pingcap/tidb/issues/58201
select last_insert_id(1);
select last_insert_id(0);
select last_insert_id();

0 comments on commit 7cbe43c

Please sign in to comment.