Commit 0109e31c authored by unknown's avatar unknown

making a better test case for bug #8850


mysql-test/r/sp.result:
  fixing results for new test
mysql-test/t/sp.test:
  making a new test with autocommit set to 0 and 1.
  Second CALL is in autocommit mode to prove that the relevant bug 
  (bug #8550) is fixed.
parent 49b388d5
...@@ -2545,11 +2545,12 @@ begin ...@@ -2545,11 +2545,12 @@ begin
truncate table t1; insert t1 values (1); rollback; truncate table t1; insert t1 values (1); rollback;
end end
| |
begin; set autocommit=0;
insert t1 values (2); insert t1 values (2);
call sp1(); call sp1();
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
commit; commit;
set autocommit=1;
select * from t1; select * from t1;
a a
2 2
......
...@@ -3087,11 +3087,12 @@ begin ...@@ -3087,11 +3087,12 @@ begin
end end
| |
delimiter ;| delimiter ;|
begin; set autocommit=0;
insert t1 values (2); insert t1 values (2);
--error 1192 --error 1192
call sp1(); call sp1();
commit; commit;
set autocommit=1;
select * from t1; select * from t1;
call sp1(); call sp1();
select * from t1; select * from t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment