diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-08-31 19:55:11 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-08-31 19:55:11 +0200 |
commit | 6389fd3c7974a017e19142d280fb309304de5621 (patch) | |
tree | 6a731e0718b2128de7b7faba810629853ae16928 /mysql-test/r/variables.result | |
parent | c01c819209fdf09b4ba95f34d87d0617776f47cd (diff) | |
download | mariadb-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/r/variables.result')
-rw-r--r-- | mysql-test/r/variables.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result index 28b67732a77..90365669229 100644 --- a/mysql-test/r/variables.result +++ b/mysql-test/r/variables.result @@ -1804,4 +1804,13 @@ set session rand_seed1=DEFAULT; ERROR 42000: Variable 'rand_seed1' doesn't have a default value set autocommit = values(v); ERROR 42S22: Unknown column 'v' in 'field list' +set session sql_mode=ansi_quotes; +select * from information_schema.session_variables where variable_name='sql_mode'; +VARIABLE_NAME VARIABLE_VALUE +SQL_MODE ANSI_QUOTES +show global status like 'foobar'; +Variable_name Value +select * from information_schema.session_variables where variable_name='sql_mode'; +VARIABLE_NAME VARIABLE_VALUE +SQL_MODE ANSI_QUOTES End of 5.5 tests |