1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-31 15:50:51 +03:00

A fix and a test case for Bug#9359 "Prepared statements take snapshot

of system vars at PREPARE time": implement a special Item
to handle system variables. This item substitutes itself with 
a basic constant containing variable value at fix_fields.
This commit is contained in:
konstantin@mysql.com
2005-07-16 03:29:13 +04:00
parent 0298bc347a
commit e08caeeee2
7 changed files with 112 additions and 51 deletions

View File

@@ -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;