summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/secure_file_priv2.test
blob: 0ca0a1839e15b04399552d804ce8e48c171a83ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Bug58747 breaks secure_file_priv+not secure yet+still accesses other folders
#
CREATE TABLE t1 (c1 INT);
#
# Before the patch this statement failed with
# Linux:
#  -> errno 13: 'Can't get stat of '
# Windows:
#  -> Warning 1366 Incorrect integer value: '■■☺' for
#  ->              column 'c1' at row 1
# Now it should consistently fail with ER_OPTION_PREVENTS_STATEMENT
# on all platforms.
--error ER_OPTION_PREVENTS_STATEMENT
LOAD DATA INFILE "t1.MYI" into table t1;

#
# The following test makes the assuption that /test isn't a valid path in any
# operating system running the test suite.
--error ER_OPTION_PREVENTS_STATEMENT
LOAD DATA INFILE "/test" into table t1;

DROP TABLE t1;