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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user