4
# 2010-01-20 OBN - Modified to include check for valid values
5
# - Added check for variable value matching I_S tables
8
select @@global.lower_case_table_names=20;
9
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
10
select @@session.lower_case_table_names;
12
# Show variable has a valid value
13
SELECT @@global.lower_case_table_names in (0,1,2);
15
# Show that value of the variable matches the value in the GLOBAL I_S table
16
SELECT @@global.lower_case_table_names = VARIABLE_VALUE
17
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
18
WHERE VARIABLE_NAME='lower_case_table_names';
20
# Show that value of the variable matches the value in the SESSION I_S table
21
SELECT @@global.lower_case_table_names = VARIABLE_VALUE
22
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
23
WHERE VARIABLE_NAME='lower_case_table_names';
26
# show that it's read-only
28
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
29
set global lower_case_table_names=1;
30
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
31
set session lower_case_table_names=1;