1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-05 16:59:35 +03:00
mariadb/mysql-test/suite/sys_vars/t/secure_file_priv_basic.test
Alexander Nozdrin 332c0024aa Post-fix for Bug#50373: sys_vars.secure_file_priv_basic can not be run
with mysql-test/var as a symlink any longer.
2010-05-12 14:42:39 +04:00

26 lines
867 B
Plaintext

--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;