summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/old_basic.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/sys_vars/t/old_basic.test')
-rw-r--r--mysql-test/suite/sys_vars/t/old_basic.test10
1 files changed, 3 insertions, 7 deletions
diff --git a/mysql-test/suite/sys_vars/t/old_basic.test b/mysql-test/suite/sys_vars/t/old_basic.test
index 2c123d17165..f1bb5a52c54 100644
--- a/mysql-test/suite/sys_vars/t/old_basic.test
+++ b/mysql-test/suite/sys_vars/t/old_basic.test
@@ -2,18 +2,14 @@
# show the global and session values;
#
select @@global.old;
---error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.old;
show global variables like 'old';
show session variables like 'old';
select * from information_schema.global_variables where variable_name='old';
select * from information_schema.session_variables where variable_name='old';
-#
-# show that it's read-only
-#
---error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global old=1;
---error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session old=1;
-
+select @@global.old;
+select @@session.old;
+set @@global.old=DEFAULT;