From f066f4db8378740d975d5c37e511b596593e91bc Mon Sep 17 00:00:00 2001 From: "Sinisa@sinisa.nasamreza.org" <> Date: Tue, 8 Mar 2005 22:44:35 +0200 Subject: [PATCH] making a better test case for bug #8850 --- mysql-test/r/sp.result | 3 ++- mysql-test/t/sp.test | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result index 8a549b57189..df3191911fd 100644 --- a/mysql-test/r/sp.result +++ b/mysql-test/r/sp.result @@ -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 diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test index 61287e94a6f..55d0a95d36f 100644 --- a/mysql-test/t/sp.test +++ b/mysql-test/t/sp.test @@ -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;