summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/r/local_infile_basic.result
blob: f74a394cff9c3a29651ff047b0b02d01f8819008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
SET @start_value = @@global.local_infile;
SELECT @start_value;
@start_value
1
'#--------------------FN_DYNVARS_018_01------------------------#'
SET @@global.local_infile = 0;
SET @@global.local_infile = DEFAULT;
SELECT @@global.local_infile;
@@global.local_infile
1
'#---------------------FN_DYNVARS_018_02-------------------------#'
SET @@global.local_infile = DEFAULT;
SELECT @@global.local_infile = 1;
@@global.local_infile = 1
1
'#--------------------FN_DYNVARS_018_03------------------------#'
SET @@global.local_infile = 0;
SELECT @@global.local_infile;
@@global.local_infile
0
SET @@global.local_infile = 1;
SELECT @@global.local_infile;
@@global.local_infile
1
'#--------------------FN_DYNVARS_018_04-------------------------#'
SET @@global.local_infile = -1;
ERROR 42000: Variable 'local_infile' can't be set to the value of '-1'
SET @@global.local_infile = 2;
ERROR 42000: Variable 'local_infile' can't be set to the value of '2'
SET @@global.local_infile = 100;
ERROR 42000: Variable 'local_infile' can't be set to the value of '100'
SET @@global.local_infile = TRUEF;
ERROR 42000: Variable 'local_infile' can't be set to the value of 'TRUEF'
SET @@global.local_infile = TRUE_F;
ERROR 42000: Variable 'local_infile' can't be set to the value of 'TRUE_F'
SET @@global.local_infile = FALSE0;
ERROR 42000: Variable 'local_infile' can't be set to the value of 'FALSE0'
SET @@global.local_infile = OON;
ERROR 42000: Variable 'local_infile' can't be set to the value of 'OON'
SET @@global.local_infile = ONN;
ERROR 42000: Variable 'local_infile' can't be set to the value of 'ONN'
SET @@global.local_infile = OOFF;
ERROR 42000: Variable 'local_infile' can't be set to the value of 'OOFF'
SET @@global.local_infile = 0FF;
ERROR 42000: Variable 'local_infile' can't be set to the value of '0FF'
SET @@global.local_infile = ' ';
ERROR 42000: Variable 'local_infile' can't be set to the value of ' '
SET @@global.local_infile = " ";
ERROR 42000: Variable 'local_infile' can't be set to the value of ' '
'#-------------------FN_DYNVARS_018_05----------------------------#'
SET @@session.local_infile = 1;
ERROR HY000: Variable 'local_infile' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.local_infile = 1;
ERROR HY000: Variable 'local_infile' is a GLOBAL variable
'#----------------------FN_DYNVARS_018_06------------------------#'
SELECT IF(@@global.local_infile, "ON", "OFF") = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='local_infile';
IF(@@global.local_infile, "ON", "OFF") = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_018_07----------------------#'
SET @@global.local_infile = OFF;
SELECT @@global.local_infile;
@@global.local_infile
0
SET @@global.local_infile = ON;
SELECT @@global.local_infile;
@@global.local_infile
1
'#---------------------FN_DYNVARS_018_08----------------------#'
SET @@global.local_infile = TRUE;
SELECT @@global.local_infile;
@@global.local_infile
1
SET @@global.local_infile = FALSE;
SELECT @@global.local_infile;
@@global.local_infile
0
'#---------------------FN_DYNVARS_018_09----------------------#'
SET @@global.local_infile = 1;
SELECT @@local_infile = @@global.local_infile;
@@local_infile = @@global.local_infile
1
'#---------------------FN_DYNVARS_018_10----------------------#'
SET local_infile = 1;
ERROR HY000: Variable 'local_infile' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@local_infile;
@@local_infile
1
SET global.local_infile = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'local_infile = 1' at line 1
SELECT global.local_infile;
ERROR 42S02: Unknown table 'global' in field list
SELECT local_infile = @@session.local_infile;
ERROR 42S22: Unknown column 'local_infile' in 'field list'
SET @@global.local_infile = @start_value;
SELECT @@global.local_infile;
@@global.local_infile
1