3 # --let $rpl_log_var_name= log_bin_basename|relay_log_basename|...
4 # --source suite/sys_vars/inc/bin_relay_log_basename_index.inc
7 # The name of the variable to test, i.e., one of:
14 # See include/rpl_init.inc
18 --echo Testing variable named: $rpl_log_var_name
21 --let $basename= `SELECT @@global.$rpl_log_var_name`
24 # Assert that the variable is indeed only global
26 --replace_result $basename REPLACED
27 --eval select @@global.$rpl_log_var_name
29 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
30 --eval select @@session.$rpl_log_var_name
33 # Assert that it is retrievable
35 --replace_result $basename REPLACED
36 --eval show global variables like
'$rpl_log_var_name'
38 --replace_result $basename REPLACED
39 --eval show session variables like
'$rpl_log_var_name'
41 --replace_result $basename REPLACED
42 --eval select * from information_schema.global_variables where variable_name=
'$rpl_log_var_name'
44 --replace_result $basename REPLACED
45 --eval select * from information_schema.session_variables where variable_name=
'$rpl_log_var_name'
48 # Assert it is read-only
50 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
51 --eval
set global $rpl_log_var_name=1
53 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
54 --eval
set session $rpl_log_var_name=1