character_sets_dir_basic.test 959 Bytes
Newer Older
1
--source include/not_windows.inc
2 3 4
#
# show the global and session values;
#
5
--eval select '$MYSQL_CHARSETSDIR'
6
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
7 8 9
select @@global.character_sets_dir;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.character_sets_dir;
10
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
11
show global variables like 'character_sets_dir';
12
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
13
show session variables like 'character_sets_dir';
14
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
15
select * from information_schema.global_variables where variable_name='character_sets_dir';
16
--replace_result $MYSQL_CHARSETSDIR MYSQL_CHARSETSDIR
17 18 19 20 21 22 23 24 25 26
select * from information_schema.session_variables where variable_name='character_sets_dir';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global character_sets_dir="foo";
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session character_sets_dir="foo";