@@ -21,253 +21,207 @@ let $sqlfunc = ascii(col1);
21
21
let $valsqlfunc = ascii ('a' );
22
22
let $coltype = char (30 );
23
23
--source suite /parts /inc /partition_blocked_sql_funcs . inc
24
- # --source include/partition_blocked_sql_funcs.inc
25
24
26
25
let $sqlfunc = ord (col1 );
27
26
let $valsqlfunc = ord ('a' );
28
27
let $coltype = char (30 );
29
28
--source suite /parts /inc /partition_blocked_sql_funcs . inc
30
- # --source include/partition_blocked_sql_funcs.inc
31
29
32
30
let $sqlfunc = greatest (col1 , 15 );
33
31
let $valsqlfunc = greatest (1 , 15 );
34
32
let $coltype = int ;
35
33
--source suite /parts /inc /partition_blocked_sql_funcs . inc
36
- # --source include/partition_blocked_sql_funcs.inc
37
34
38
35
let $sqlfunc = isnull (col1 );
39
36
let $valsqlfunc = isnull (15 );
40
37
let $coltype = int ;
41
38
--source suite /parts /inc /partition_blocked_sql_funcs . inc
42
- # --source include/partition_blocked_sql_funcs.inc
43
39
44
40
let $sqlfunc = least (col1 , 15 );
45
41
let $valsqlfunc = least (15 , 30 );
46
42
let $coltype = int ;
47
43
--source suite /parts /inc /partition_blocked_sql_funcs . inc
48
- # --source include/partition_blocked_sql_funcs.inc
49
44
50
45
let $sqlfunc = case when col1 >15 then 20 else 10 end ;
51
46
let $valsqlfunc = case when 1 >30 then 20 else 15 end ;
52
47
let $coltype = int ;
53
48
--source suite /parts /inc /partition_blocked_sql_funcs . inc
54
- # --source include/partition_blocked_sql_funcs.inc
55
49
56
50
let $sqlfunc = ifnull (col1 , 30 );
57
51
let $valsqlfunc = ifnull (1 , 30 );
58
52
let $coltype = int ;
59
53
--source suite /parts /inc /partition_blocked_sql_funcs . inc
60
- # --source include/partition_blocked_sql_funcs.inc
61
54
62
55
let $sqlfunc = nullif (col1 , 30 );
63
56
let $valsqlfunc = nullif (1 , 30 );
64
57
let $coltype = int ;
65
58
--source suite /parts /inc /partition_blocked_sql_funcs . inc
66
- # --source include/partition_blocked_sql_funcs.inc
67
59
68
60
let $sqlfunc = bit_length (col1 );
69
61
let $valsqlfunc = bit_length (255 );
70
62
let $coltype = int ;
71
63
--source suite /parts /inc /partition_blocked_sql_funcs . inc
72
- # --source include/partition_blocked_sql_funcs.inc
73
64
let $coltype = char (30 );
74
65
--source suite /parts /inc /partition_blocked_sql_funcs . inc
75
- # --source include/partition_blocked_sql_funcs.inc
76
66
77
67
let $sqlfunc = char_length (col1 );
78
68
let $valsqlfunc = char_length ('a' );
79
69
# let $coltype = int;
80
70
# --source suite/parts/inc/partition_blocked_sql_funcs.inc
81
- # --source include/partition_blocked_sql_funcs.inc
82
71
let $coltype = char (30 );
83
72
--source suite /parts /inc /partition_blocked_sql_funcs . inc
84
- # --source include/partition_blocked_sql_funcs.inc
85
73
86
74
let $sqlfunc = character_length (col1 );
87
75
let $valsqlfunc = character_length ('a' );
88
76
let $coltype = char (30 )
89
77
--source suite /parts /inc /partition_blocked_sql_funcs . inc
90
- # --source include/partition_blocked_sql_funcs.inc
91
78
92
79
let $sqlfunc = find_in_set (col1 , '1,2,3,4,5,6,7,8,9' );
93
80
let $valsqlfunc = find_in_set ('i' , 'a,b,c,d,e,f,g,h,i' );
94
81
let $coltype = int ;
95
82
--source suite /parts /inc /partition_blocked_sql_funcs . inc
96
- # --source include/partition_blocked_sql_funcs.inc
97
83
let $coltype = char (30 );
98
84
--source suite /parts /inc /partition_blocked_sql_funcs . inc
99
- # --source include/partition_blocked_sql_funcs.inc
100
85
101
86
let $sqlfunc = instr (col1 , 'acb' );
102
87
let $valsqlfunc = instr ('i' , 'a,b,c,d,e,f,g,h,i' );
103
88
let $coltype = int ;
104
89
--source suite /parts /inc /partition_blocked_sql_funcs . inc
105
- # --source include/partition_blocked_sql_funcs.inc
106
90
let $coltype = char (30 );
107
91
--source suite /parts /inc /partition_blocked_sql_funcs . inc
108
- # --source include/partition_blocked_sql_funcs.inc
109
92
110
93
let $sqlfunc = length (col1 );
111
94
let $valsqlfunc = length ('a,b,c,d,e,f,g,h,i' );
112
95
let $coltype = int ;
113
96
--source suite /parts /inc /partition_blocked_sql_funcs . inc
114
- # --source include/partition_blocked_sql_funcs.inc
115
97
116
98
let $sqlfunc = locate ('a' , col1 );
117
99
let $valsqlfunc = locate ('i' , 'a,b,c,d,e,f,g,h,i' );
118
100
let $coltype = int ;
119
101
--source suite /parts /inc /partition_blocked_sql_funcs . inc
120
- # --source include/partition_blocked_sql_funcs.inc
121
102
let $coltype = char (30 );
122
103
--source suite /parts /inc /partition_blocked_sql_funcs . inc
123
- # --source include/partition_blocked_sql_funcs.inc
124
104
125
105
let $sqlfunc = octet_length (col1 );
126
106
let $valsqlfunc = octet_length ('a,b,c,d,e,f,g,h,i' );
127
107
--source suite /parts /inc /partition_blocked_sql_funcs . inc
128
- # --source include/partition_blocked_sql_funcs.inc
129
108
130
109
let $sqlfunc = position ('a' in col1 );
131
110
let $valsqlfunc = position ('i' in 'a,b,c,d,e,f,g,h,i' );
132
111
let $coltype = int ;
133
112
--source suite /parts /inc /partition_blocked_sql_funcs . inc
134
- # --source include/partition_blocked_sql_funcs.inc
135
113
let $coltype = char (30 );
136
114
--source suite /parts /inc /partition_blocked_sql_funcs . inc
137
- # --source include/partition_blocked_sql_funcs.inc
138
115
139
116
let $sqlfunc = strcmp (col1 , 'acb' );
140
117
let $valsqlfunc = strcmp ('i' , 'a,b,c,d,e,f,g,h,i' );
141
118
let $coltype = int ;
142
119
--source suite /parts /inc /partition_blocked_sql_funcs . inc
143
- # --source include/partition_blocked_sql_funcs.inc
144
120
let $coltype = char (30 );
145
121
--source suite /parts /inc /partition_blocked_sql_funcs . inc
146
- # --source include/partition_blocked_sql_funcs.inc
147
122
148
123
let $sqlfunc = crc32 (col1 );
149
124
let $valsqlfunc = crc32 ('a,b,c,d,e,f,g,h,i' );
150
125
let $coltype = char (30 );
151
126
--source suite /parts /inc /partition_blocked_sql_funcs . inc
152
- # --source include/partition_blocked_sql_funcs.inc
153
127
154
128
let $sqlfunc = round (col1 );
155
129
let $valsqlfunc = round (15 );
156
130
let $coltype = int ;
157
131
--source suite /parts /inc /partition_blocked_sql_funcs . inc
158
- # --source include/partition_blocked_sql_funcs.inc
159
132
160
133
let $sqlfunc = sign (col1 );
161
134
let $valsqlfunc = sign (123 );
162
135
let $coltype = int ;
163
136
--source suite /parts /inc /partition_blocked_sql_funcs . inc
164
- # --source include/partition_blocked_sql_funcs.inc
165
137
166
138
let $sqlfunc = period_add (col1 , 5 );
167
139
let $valsqlfunc = period_add (9804 , 5 );
168
140
let $coltype = datetime ;
169
141
--source suite /parts /inc /partition_blocked_sql_funcs . inc
170
- # --source include/partition_blocked_sql_funcs.inc
171
142
172
143
let $sqlfunc = period_diff (col1 , col2 );
173
144
let $valsqlfunc = period_diff (9809 , 199907 );
174
145
let $coltype = datetime , col2 datetime ;
175
146
--source suite /parts /inc /partition_blocked_sql_funcs . inc
176
- # --source include/partition_blocked_sql_funcs.inc
177
147
let $coltype = int , col2 int ;
178
148
--source suite /parts /inc /partition_blocked_sql_funcs . inc
179
- # --source include/partition_blocked_sql_funcs.inc
180
149
181
150
let $sqlfunc = timestampdiff (day , 5 , col1 );
182
151
let $valsqlfunc = timestampdiff (YEAR , '2002-05-01' , '2001-01-01' );
183
152
let $coltype = datetime ;
184
153
--source suite /parts /inc /partition_blocked_sql_funcs . inc
185
- # --source include/partition_blocked_sql_funcs.inc
186
154
187
155
let $sqlfunc = unix_timestamp (col1 );
188
156
let $valsqlfunc = unix_timestamp ('2002-05-01' );
189
157
let $coltype = date ;
190
158
--source suite /parts /inc /partition_blocked_sql_funcs . inc
191
- # --source include/partition_blocked_sql_funcs.inc
192
159
193
160
let $sqlfunc = week (col1 );
194
161
let $valsqlfunc = week ('2002-05-01' );
195
162
let $coltype = datetime ;
196
163
--source suite /parts /inc /partition_blocked_sql_funcs . inc
197
- # --source include/partition_blocked_sql_funcs.inc
198
164
199
165
let $sqlfunc = weekofyear (col1 );
200
166
let $valsqlfunc = weekofyear ('2002-05-01' );
201
167
let $coltype = datetime ;
202
168
--source suite /parts /inc /partition_blocked_sql_funcs . inc
203
- # --source include/partition_blocked_sql_funcs.inc
204
169
205
170
let $sqlfunc = cast (col1 as signed );
206
171
let $valsqlfunc = cast (123 as signed );
207
172
let $coltype = varchar (30 );
208
173
--source suite /parts /inc /partition_blocked_sql_funcs . inc
209
- # --source include/partition_blocked_sql_funcs.inc
210
174
211
175
let $sqlfunc = convert (col1 , unsigned );
212
176
let $valsqlfunc = convert (123 , unsigned );
213
177
let $coltype = varchar (30 );
214
178
--source suite /parts /inc /partition_blocked_sql_funcs . inc
215
- # --source include/partition_blocked_sql_funcs.inc
216
179
217
180
let $sqlfunc = col1 | 20 ;
218
181
let $valsqlfunc = 10 | 20 ;
219
182
let $coltype = int ;
220
183
--source suite /parts /inc /partition_blocked_sql_funcs . inc
221
- # --source include/partition_blocked_sql_funcs.inc
222
184
223
185
let $sqlfunc = col1 & 20 ;
224
186
let $valsqlfunc = 10 & 20 ;
225
187
let $coltype = int ;
226
188
--source suite /parts /inc /partition_blocked_sql_funcs . inc
227
- # --source include/partition_blocked_sql_funcs.inc
228
189
229
190
let $sqlfunc = col1 ^ 20 ;
230
191
let $valsqlfunc = 10 ^ 20 ;
231
192
let $coltype = int ;
232
193
--source suite /parts /inc /partition_blocked_sql_funcs . inc
233
- # --source include/partition_blocked_sql_funcs.inc
234
194
235
195
let $sqlfunc = col1 << 20 ;
236
196
let $valsqlfunc = 10 << 20 ;
237
197
let $coltype = int ;
238
198
--source suite /parts /inc /partition_blocked_sql_funcs . inc
239
- # --source include/partition_blocked_sql_funcs.inc
240
199
241
200
let $sqlfunc = col1 >> 20 ;
242
201
let $valsqlfunc = 10 >> 20 ;
243
202
let $coltype = int ;
244
203
--source suite /parts /inc /partition_blocked_sql_funcs . inc
245
- # --source include/partition_blocked_sql_funcs.inc
246
204
247
205
let $sqlfunc = ~col1 ;
248
206
let $valsqlfunc = ~20 ;
249
207
let $coltype = int ;
250
208
--source suite /parts /inc /partition_blocked_sql_funcs . inc
251
- # --source include/partition_blocked_sql_funcs.inc
252
209
253
210
let $sqlfunc = bit_count (col1 );
254
211
let $valsqlfunc = bit_count (20 );
255
212
let $coltype = int ;
256
213
--source suite /parts /inc /partition_blocked_sql_funcs . inc
257
- # --source include/partition_blocked_sql_funcs.inc
258
214
259
215
let $sqlfunc = inet_aton (col1 );
260
216
let $valsqlfunc = inet_aton ('192.168.1.1' );
261
217
let $coltype = int ;
262
218
--source suite /parts /inc /partition_blocked_sql_funcs . inc
263
- # --source include/partition_blocked_sql_funcs.inc
264
219
265
220
set @var = 20 ;
266
221
let $sqlfunc = bit_length (col1 )+@var -@var ;
267
222
let $valsqlfunc = bit_length (20 )+@var -@var ;
268
223
let $coltype = int ;
269
224
--source suite /parts /inc /partition_blocked_sql_funcs . inc
270
- # --source include/partition_blocked_sql_funcs.inc
271
225
272
226
273
227
delimiter //;
@@ -298,5 +252,4 @@ let $sqlfunc = getmaxsigned_t1(col1);
298
252
let $valsqlfunc = getmaxsigned (10 );
299
253
let $coltype = int ;
300
254
--source suite /parts /inc /partition_blocked_sql_funcs . inc
301
- # --source include/partition_blocked_sql_funcs.inc
302
255
drop function if exists getmaxsigned_t1 ;
0 commit comments