summaryrefslogtreecommitdiff
path: root/mysql-test/t/ps.test
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-07-16 03:29:14 +0400
committerunknown <konstantin@mysql.com>2005-07-16 03:29:14 +0400
commitd5b80a789e05b7dce12dfeef7393a6ac8bf17fb7 (patch)
treefe86de110150486a3da0c2abaea7060dc727619c /mysql-test/t/ps.test
parente81337d8b21114a0d2acd9403ca76bffa9c01254 (diff)
parente83e10533194cca56596226e5c2c08c7bb6d5b9a (diff)
downloadmariadb-git-d5b80a789e05b7dce12dfeef7393a6ac8bf17fb7.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/opt/local/work/mysql-4.1-root
Diffstat (limited to 'mysql-test/t/ps.test')
-rw-r--r--mysql-test/t/ps.test18
1 files changed, 17 insertions, 1 deletions
diff --git a/mysql-test/t/ps.test b/mysql-test/t/ps.test
index beae95d462a..a4911115c9f 100644
--- a/mysql-test/t/ps.test
+++ b/mysql-test/t/ps.test
@@ -702,4 +702,20 @@ select ??;
select ? from t1;
--enable_ps_protocol
drop table t1;
-#
+#
+# Bug#9359 "Prepared statements take snapshot of system vars at PREPARE
+# time"
+#
+prepare stmt from "select @@time_zone";
+execute stmt;
+set @@time_zone:='Japan';
+execute stmt;
+prepare stmt from "select @@tx_isolation";
+execute stmt;
+set transaction isolation level read committed;
+execute stmt;
+set transaction isolation level serializable;
+execute stmt;
+set @@tx_isolation=default;
+execute stmt;
+deallocate prepare stmt;