Debian Codegraph @

mysql-test/suite/sys_vars/t/lower_case_table_names_basic.test

raw
1 #
2 # only global
3 #
4 # 2010-01-20 OBN - Modified to include check for valid values
5 # - Added check for variable value matching I_S tables
6 #
7
8 select @@global.lower_case_table_names=20;
9 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
10 select @@session.lower_case_table_names;
11
12 # Show variable has a valid value
13 SELECT @@global.lower_case_table_names in (0,1,2);
14
15 # Show that value of the variable matches the value in the GLOBAL I_S table
16 --disable_warnings
17 SELECT @@global.lower_case_table_names = VARIABLE_VALUE
18 FROM performance_schema.global_variables
19 WHERE VARIABLE_NAME='lower_case_table_names';
20 --enable_warnings
21
22 # Show that value of the variable matches the value in the SESSION I_S table
23 --disable_warnings
24 SELECT @@global.lower_case_table_names = VARIABLE_VALUE
25 FROM performance_schema.global_variables
26 WHERE VARIABLE_NAME='lower_case_table_names';
27 --enable_warnings
28
29 #
30 # show that it's read-only
31 #
32 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
33 set global lower_case_table_names=1;
34 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
35 set session lower_case_table_names=1;
36