mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
making a better test case for bug #8850
This commit is contained in:
parent
a54b5ea52f
commit
f066f4db83
2 changed files with 4 additions and 2 deletions
|
@ -2545,11 +2545,12 @@ begin
|
|||
truncate table t1; insert t1 values (1); rollback;
|
||||
end
|
||||
|
|
||||
begin;
|
||||
set autocommit=0;
|
||||
insert t1 values (2);
|
||||
call sp1();
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
commit;
|
||||
set autocommit=1;
|
||||
select * from t1;
|
||||
a
|
||||
2
|
||||
|
|
|
@ -3087,11 +3087,12 @@ begin
|
|||
end
|
||||
|
|
||||
delimiter ;|
|
||||
begin;
|
||||
set autocommit=0;
|
||||
insert t1 values (2);
|
||||
--error 1192
|
||||
call sp1();
|
||||
commit;
|
||||
set autocommit=1;
|
||||
select * from t1;
|
||||
call sp1();
|
||||
select * from t1;
|
||||
|
|
Loading…
Reference in a new issue