summaryrefslogtreecommitdiff
path: root/mysql-test/t/variables.test
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-08-31 19:55:11 +0200
committerSergei Golubchik <sergii@pisem.net>2014-08-31 19:55:11 +0200
commit6389fd3c7974a017e19142d280fb309304de5621 (patch)
tree6a731e0718b2128de7b7faba810629853ae16928 /mysql-test/t/variables.test
parentc01c819209fdf09b4ba95f34d87d0617776f47cd (diff)
downloadmariadb-git-6389fd3c7974a017e19142d280fb309304de5621.tar.gz
MDEV-6673 I_S.SESSION_VARIABLES shows global values
only look at lex->option_type if it's a SHOW command, not a SELECT
Diffstat (limited to 'mysql-test/t/variables.test')
-rw-r--r--mysql-test/t/variables.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test
index b1288b6e24d..28f4344bd38 100644
--- a/mysql-test/t/variables.test
+++ b/mysql-test/t/variables.test
@@ -1553,4 +1553,12 @@ set session rand_seed1=DEFAULT;
--error ER_BAD_FIELD_ERROR
set autocommit = values(v);
+#
+# MDEV-6673 I_S.SESSION_VARIABLES shows global values
+#
+set session sql_mode=ansi_quotes;
+select * from information_schema.session_variables where variable_name='sql_mode';
+show global status like 'foobar';
+select * from information_schema.session_variables where variable_name='sql_mode';
+
--echo End of 5.5 tests