1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-6673 I_S.SESSION_VARIABLES shows global values

only look at lex->option_type if it's a SHOW command, not a SELECT
This commit is contained in:
Sergei Golubchik
2014-08-31 19:55:11 +02:00
parent c01c819209
commit 6389fd3c79
3 changed files with 18 additions and 1 deletions

View File

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