Spracherkennung für: .test vermutete Sprache: SQL {SQL[72] ABAP[40] MT940[40]} [Methode: maximale Elemente, drei Dimensionen]
--source include/not_var_link.inc
#
# only global
#
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
select @@global.secure_file_priv;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.secure_file_priv;
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
show global variables like 'secure_file_priv';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
show session variables like 'secure_file_priv';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
select * from information_schema.global_variables where variable_name='secure_file_priv';
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
select * from information_schema.session_variables where variable_name='secure_file_priv';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global secure_file_priv=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session secure_file_priv=1;
[Dauer der Verarbeitung: 0.9 Sekunden]