mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
merged bug #11754014
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
select @@global.character_sets_dir;
|
||||
@@global.character_sets_dir
|
||||
MYSQL_CHARSETSDIR/
|
||||
MYSQL_CHARSETSDIR
|
||||
select @@session.character_sets_dir;
|
||||
ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable
|
||||
show global variables like 'character_sets_dir';
|
||||
Variable_name Value
|
||||
character_sets_dir MYSQL_CHARSETSDIR/
|
||||
character_sets_dir MYSQL_CHARSETSDIR
|
||||
show session variables like 'character_sets_dir';
|
||||
Variable_name Value
|
||||
character_sets_dir MYSQL_CHARSETSDIR/
|
||||
character_sets_dir MYSQL_CHARSETSDIR
|
||||
select * from information_schema.global_variables where variable_name='character_sets_dir';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
CHARACTER_SETS_DIR MYSQL_CHARSETSDIR/
|
||||
CHARACTER_SETS_DIR MYSQL_CHARSETSDIR
|
||||
select * from information_schema.session_variables where variable_name='character_sets_dir';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
CHARACTER_SETS_DIR MYSQL_CHARSETSDIR/
|
||||
CHARACTER_SETS_DIR MYSQL_CHARSETSDIR
|
||||
set global character_sets_dir="foo";
|
||||
ERROR HY000: Variable 'character_sets_dir' is a read only variable
|
||||
set session character_sets_dir="foo";
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
select @@global.plugin_dir;
|
||||
@@global.plugin_dir
|
||||
MYSQL_TMP_DIR
|
||||
MYSQL_TMP_DIR/
|
||||
select @@session.plugin_dir;
|
||||
ERROR HY000: Variable 'plugin_dir' is a GLOBAL variable
|
||||
show global variables like 'plugin_dir';
|
||||
Variable_name Value
|
||||
plugin_dir MYSQL_TMP_DIR
|
||||
plugin_dir MYSQL_TMP_DIR/
|
||||
show session variables like 'plugin_dir';
|
||||
Variable_name Value
|
||||
plugin_dir MYSQL_TMP_DIR
|
||||
plugin_dir MYSQL_TMP_DIR/
|
||||
select * from information_schema.global_variables where variable_name='plugin_dir';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PLUGIN_DIR MYSQL_TMP_DIR
|
||||
PLUGIN_DIR MYSQL_TMP_DIR/
|
||||
select * from information_schema.session_variables where variable_name='plugin_dir';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
PLUGIN_DIR MYSQL_TMP_DIR
|
||||
PLUGIN_DIR MYSQL_TMP_DIR/
|
||||
set global plugin_dir=1;
|
||||
ERROR HY000: Variable 'plugin_dir' is a read only variable
|
||||
set session plugin_dir=1;
|
||||
|
||||
@@ -1,17 +1,26 @@
|
||||
#
|
||||
# show the global and session values;
|
||||
#
|
||||
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
|
||||
|
||||
# workaround to adjust for the directory separators being different in
|
||||
# different OSes : slash on unixes and backslash or slash on windows.
|
||||
# TODO: fix with a proper comparison in mysqltest
|
||||
let $rcd= `SELECT REPLACE('$MYSQL_CHARSETSDIR', '\\\\\', '.')`;
|
||||
let $rcd= `SELECT REPLACE('$rcd', '/', '.')`;
|
||||
let $regex_charsetdir= `SELECT '/$rcd[\\\\\/\\\\\]/MYSQL_CHARSETSDIR/'`;
|
||||
|
||||
--replace_regex $regex_charsetdir
|
||||
select @@global.character_sets_dir;
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@session.character_sets_dir;
|
||||
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
|
||||
--replace_regex $regex_charsetdir
|
||||
show global variables like 'character_sets_dir';
|
||||
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
|
||||
--replace_regex $regex_charsetdir
|
||||
show session variables like 'character_sets_dir';
|
||||
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
|
||||
--replace_regex $regex_charsetdir
|
||||
select * from information_schema.global_variables where variable_name='character_sets_dir';
|
||||
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
|
||||
--replace_regex $regex_charsetdir
|
||||
select * from information_schema.session_variables where variable_name='character_sets_dir';
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user