~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/r/part_blocked_sql_func_innodb.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-------------------------------------------------------------------------
 
2
---   All SQL functions should be rejected, otherwise BUG (see 18198)
 
3
-------------------------------------------------------------------------
 
4
-------------------------------------------------------------------------
 
5
---  ascii(col1)  in partition with coltype  char(30)
 
6
-------------------------------------------------------------------------
 
7
must all fail!
 
8
drop table if exists t1 ;
 
9
drop table if exists t2 ;
 
10
drop table if exists t3 ;
 
11
drop table if exists t4 ;
 
12
drop table if exists t5 ;
 
13
drop table if exists t6 ;
 
14
create table t1 (col1 char(30)) engine='INNODB' 
 
15
partition by range(ascii(col1)) 
 
16
(partition p0 values less than (15),
 
17
partition p1 values less than (31));
 
18
Got one of the listed errors
 
19
create table t2 (col1 char(30)) engine='INNODB' 
 
20
partition by list(ascii(col1)) 
 
21
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
22
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
23
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
24
Got one of the listed errors
 
25
create table t3 (col1 char(30)) engine='INNODB' 
 
26
partition by hash(ascii(col1));
 
27
Got one of the listed errors
 
28
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
29
partition by range(colint) 
 
30
subpartition by hash(ascii(col1)) subpartitions 2 
 
31
(partition p0 values less than (15),
 
32
partition p1 values less than (31));
 
33
Got one of the listed errors
 
34
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
35
partition by list(colint)
 
36
subpartition by hash(ascii(col1)) subpartitions 2 
 
37
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
38
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
39
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
40
Got one of the listed errors
 
41
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
42
partition by range(colint) 
 
43
(partition p0 values less than (ascii('a')),
 
44
partition p1 values less than maxvalue);
 
45
Got one of the listed errors
 
46
drop table if exists t11 ;
 
47
drop table if exists t22 ;
 
48
drop table if exists t33 ;
 
49
drop table if exists t44 ;
 
50
drop table if exists t55 ;
 
51
drop table if exists t66 ;
 
52
create table t11 (col1 char(30)) engine='INNODB' ;
 
53
create table t22 (col1 char(30)) engine='INNODB' ;
 
54
create table t33 (col1 char(30)) engine='INNODB' ;
 
55
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
56
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
57
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
58
alter table t11  
 
59
partition by range(ascii(col1)) 
 
60
(partition p0 values less than (15),
 
61
partition p1 values less than (31));
 
62
Got one of the listed errors
 
63
alter table t22 
 
64
partition by list(ascii(col1)) 
 
65
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
66
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
67
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
68
Got one of the listed errors
 
69
alter table t33 
 
70
partition by hash(ascii(col1));
 
71
Got one of the listed errors
 
72
alter table t44 
 
73
partition by range(colint) 
 
74
subpartition by hash(ascii(col1)) subpartitions 2 
 
75
(partition p0 values less than (15),
 
76
partition p1 values less than (31));
 
77
Got one of the listed errors
 
78
alter table t55 
 
79
partition by list(colint)
 
80
subpartition by hash(ascii(col1)) subpartitions 2 
 
81
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
82
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
83
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
84
Got one of the listed errors
 
85
alter table t66  
 
86
partition by range(colint) 
 
87
(partition p0 values less than (ascii('a')),
 
88
partition p1 values less than maxvalue);
 
89
Got one of the listed errors
 
90
drop table if exists t1 ;
 
91
drop table if exists t2 ;
 
92
drop table if exists t3 ;
 
93
drop table if exists t4 ;
 
94
drop table if exists t5 ;
 
95
drop table if exists t6 ;
 
96
drop table if exists t11 ;
 
97
drop table if exists t22 ;
 
98
drop table if exists t33 ;
 
99
drop table if exists t44 ;
 
100
drop table if exists t55 ;
 
101
drop table if exists t66 ;
 
102
-------------------------------------------------------------------------
 
103
---  ord(col1)  in partition with coltype  char(30)
 
104
-------------------------------------------------------------------------
 
105
must all fail!
 
106
drop table if exists t1 ;
 
107
drop table if exists t2 ;
 
108
drop table if exists t3 ;
 
109
drop table if exists t4 ;
 
110
drop table if exists t5 ;
 
111
drop table if exists t6 ;
 
112
create table t1 (col1 char(30)) engine='INNODB' 
 
113
partition by range(ord(col1)) 
 
114
(partition p0 values less than (15),
 
115
partition p1 values less than (31));
 
116
Got one of the listed errors
 
117
create table t2 (col1 char(30)) engine='INNODB' 
 
118
partition by list(ord(col1)) 
 
119
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
120
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
121
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
122
Got one of the listed errors
 
123
create table t3 (col1 char(30)) engine='INNODB' 
 
124
partition by hash(ord(col1));
 
125
Got one of the listed errors
 
126
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
127
partition by range(colint) 
 
128
subpartition by hash(ord(col1)) subpartitions 2 
 
129
(partition p0 values less than (15),
 
130
partition p1 values less than (31));
 
131
Got one of the listed errors
 
132
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
133
partition by list(colint)
 
134
subpartition by hash(ord(col1)) subpartitions 2 
 
135
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
136
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
137
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
138
Got one of the listed errors
 
139
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
140
partition by range(colint) 
 
141
(partition p0 values less than (ord('a')),
 
142
partition p1 values less than maxvalue);
 
143
Got one of the listed errors
 
144
drop table if exists t11 ;
 
145
drop table if exists t22 ;
 
146
drop table if exists t33 ;
 
147
drop table if exists t44 ;
 
148
drop table if exists t55 ;
 
149
drop table if exists t66 ;
 
150
create table t11 (col1 char(30)) engine='INNODB' ;
 
151
create table t22 (col1 char(30)) engine='INNODB' ;
 
152
create table t33 (col1 char(30)) engine='INNODB' ;
 
153
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
154
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
155
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
156
alter table t11  
 
157
partition by range(ord(col1)) 
 
158
(partition p0 values less than (15),
 
159
partition p1 values less than (31));
 
160
Got one of the listed errors
 
161
alter table t22 
 
162
partition by list(ord(col1)) 
 
163
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
164
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
165
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
166
Got one of the listed errors
 
167
alter table t33 
 
168
partition by hash(ord(col1));
 
169
Got one of the listed errors
 
170
alter table t44 
 
171
partition by range(colint) 
 
172
subpartition by hash(ord(col1)) subpartitions 2 
 
173
(partition p0 values less than (15),
 
174
partition p1 values less than (31));
 
175
Got one of the listed errors
 
176
alter table t55 
 
177
partition by list(colint)
 
178
subpartition by hash(ord(col1)) subpartitions 2 
 
179
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
180
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
181
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
182
Got one of the listed errors
 
183
alter table t66  
 
184
partition by range(colint) 
 
185
(partition p0 values less than (ord('a')),
 
186
partition p1 values less than maxvalue);
 
187
Got one of the listed errors
 
188
drop table if exists t1 ;
 
189
drop table if exists t2 ;
 
190
drop table if exists t3 ;
 
191
drop table if exists t4 ;
 
192
drop table if exists t5 ;
 
193
drop table if exists t6 ;
 
194
drop table if exists t11 ;
 
195
drop table if exists t22 ;
 
196
drop table if exists t33 ;
 
197
drop table if exists t44 ;
 
198
drop table if exists t55 ;
 
199
drop table if exists t66 ;
 
200
-------------------------------------------------------------------------
 
201
---  greatest(col1,15)  in partition with coltype  int
 
202
-------------------------------------------------------------------------
 
203
must all fail!
 
204
drop table if exists t1 ;
 
205
drop table if exists t2 ;
 
206
drop table if exists t3 ;
 
207
drop table if exists t4 ;
 
208
drop table if exists t5 ;
 
209
drop table if exists t6 ;
 
210
create table t1 (col1 int) engine='INNODB' 
 
211
partition by range(greatest(col1,15)) 
 
212
(partition p0 values less than (15),
 
213
partition p1 values less than (31));
 
214
Got one of the listed errors
 
215
create table t2 (col1 int) engine='INNODB' 
 
216
partition by list(greatest(col1,15)) 
 
217
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
218
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
219
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
220
Got one of the listed errors
 
221
create table t3 (col1 int) engine='INNODB' 
 
222
partition by hash(greatest(col1,15));
 
223
Got one of the listed errors
 
224
create table t4 (colint int, col1 int) engine='INNODB' 
 
225
partition by range(colint) 
 
226
subpartition by hash(greatest(col1,15)) subpartitions 2 
 
227
(partition p0 values less than (15),
 
228
partition p1 values less than (31));
 
229
Got one of the listed errors
 
230
create table t5 (colint int, col1 int) engine='INNODB' 
 
231
partition by list(colint)
 
232
subpartition by hash(greatest(col1,15)) subpartitions 2 
 
233
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
234
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
235
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
236
Got one of the listed errors
 
237
create table t6 (colint int, col1 int) engine='INNODB' 
 
238
partition by range(colint) 
 
239
(partition p0 values less than (greatest(1,15)),
 
240
partition p1 values less than maxvalue);
 
241
Got one of the listed errors
 
242
drop table if exists t11 ;
 
243
drop table if exists t22 ;
 
244
drop table if exists t33 ;
 
245
drop table if exists t44 ;
 
246
drop table if exists t55 ;
 
247
drop table if exists t66 ;
 
248
create table t11 (col1 int) engine='INNODB' ;
 
249
create table t22 (col1 int) engine='INNODB' ;
 
250
create table t33 (col1 int) engine='INNODB' ;
 
251
create table t44 (colint int, col1 int) engine='INNODB' ;
 
252
create table t55 (colint int, col1 int) engine='INNODB' ;
 
253
create table t66 (colint int, col1 int) engine='INNODB' ;
 
254
alter table t11  
 
255
partition by range(greatest(col1,15)) 
 
256
(partition p0 values less than (15),
 
257
partition p1 values less than (31));
 
258
Got one of the listed errors
 
259
alter table t22 
 
260
partition by list(greatest(col1,15)) 
 
261
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
262
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
263
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
264
Got one of the listed errors
 
265
alter table t33 
 
266
partition by hash(greatest(col1,15));
 
267
Got one of the listed errors
 
268
alter table t44 
 
269
partition by range(colint) 
 
270
subpartition by hash(greatest(col1,15)) subpartitions 2 
 
271
(partition p0 values less than (15),
 
272
partition p1 values less than (31));
 
273
Got one of the listed errors
 
274
alter table t55 
 
275
partition by list(colint)
 
276
subpartition by hash(greatest(col1,15)) subpartitions 2 
 
277
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
278
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
279
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
280
Got one of the listed errors
 
281
alter table t66  
 
282
partition by range(colint) 
 
283
(partition p0 values less than (greatest(1,15)),
 
284
partition p1 values less than maxvalue);
 
285
Got one of the listed errors
 
286
drop table if exists t1 ;
 
287
drop table if exists t2 ;
 
288
drop table if exists t3 ;
 
289
drop table if exists t4 ;
 
290
drop table if exists t5 ;
 
291
drop table if exists t6 ;
 
292
drop table if exists t11 ;
 
293
drop table if exists t22 ;
 
294
drop table if exists t33 ;
 
295
drop table if exists t44 ;
 
296
drop table if exists t55 ;
 
297
drop table if exists t66 ;
 
298
-------------------------------------------------------------------------
 
299
---  isnull(col1)  in partition with coltype  int
 
300
-------------------------------------------------------------------------
 
301
must all fail!
 
302
drop table if exists t1 ;
 
303
drop table if exists t2 ;
 
304
drop table if exists t3 ;
 
305
drop table if exists t4 ;
 
306
drop table if exists t5 ;
 
307
drop table if exists t6 ;
 
308
create table t1 (col1 int) engine='INNODB' 
 
309
partition by range(isnull(col1)) 
 
310
(partition p0 values less than (15),
 
311
partition p1 values less than (31));
 
312
Got one of the listed errors
 
313
create table t2 (col1 int) engine='INNODB' 
 
314
partition by list(isnull(col1)) 
 
315
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
316
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
317
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
318
Got one of the listed errors
 
319
create table t3 (col1 int) engine='INNODB' 
 
320
partition by hash(isnull(col1));
 
321
Got one of the listed errors
 
322
create table t4 (colint int, col1 int) engine='INNODB' 
 
323
partition by range(colint) 
 
324
subpartition by hash(isnull(col1)) subpartitions 2 
 
325
(partition p0 values less than (15),
 
326
partition p1 values less than (31));
 
327
Got one of the listed errors
 
328
create table t5 (colint int, col1 int) engine='INNODB' 
 
329
partition by list(colint)
 
330
subpartition by hash(isnull(col1)) subpartitions 2 
 
331
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
332
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
333
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
334
Got one of the listed errors
 
335
create table t6 (colint int, col1 int) engine='INNODB' 
 
336
partition by range(colint) 
 
337
(partition p0 values less than (isnull(15)),
 
338
partition p1 values less than maxvalue);
 
339
Got one of the listed errors
 
340
drop table if exists t11 ;
 
341
drop table if exists t22 ;
 
342
drop table if exists t33 ;
 
343
drop table if exists t44 ;
 
344
drop table if exists t55 ;
 
345
drop table if exists t66 ;
 
346
create table t11 (col1 int) engine='INNODB' ;
 
347
create table t22 (col1 int) engine='INNODB' ;
 
348
create table t33 (col1 int) engine='INNODB' ;
 
349
create table t44 (colint int, col1 int) engine='INNODB' ;
 
350
create table t55 (colint int, col1 int) engine='INNODB' ;
 
351
create table t66 (colint int, col1 int) engine='INNODB' ;
 
352
alter table t11  
 
353
partition by range(isnull(col1)) 
 
354
(partition p0 values less than (15),
 
355
partition p1 values less than (31));
 
356
Got one of the listed errors
 
357
alter table t22 
 
358
partition by list(isnull(col1)) 
 
359
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
360
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
361
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
362
Got one of the listed errors
 
363
alter table t33 
 
364
partition by hash(isnull(col1));
 
365
Got one of the listed errors
 
366
alter table t44 
 
367
partition by range(colint) 
 
368
subpartition by hash(isnull(col1)) subpartitions 2 
 
369
(partition p0 values less than (15),
 
370
partition p1 values less than (31));
 
371
Got one of the listed errors
 
372
alter table t55 
 
373
partition by list(colint)
 
374
subpartition by hash(isnull(col1)) subpartitions 2 
 
375
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
376
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
377
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
378
Got one of the listed errors
 
379
alter table t66  
 
380
partition by range(colint) 
 
381
(partition p0 values less than (isnull(15)),
 
382
partition p1 values less than maxvalue);
 
383
Got one of the listed errors
 
384
drop table if exists t1 ;
 
385
drop table if exists t2 ;
 
386
drop table if exists t3 ;
 
387
drop table if exists t4 ;
 
388
drop table if exists t5 ;
 
389
drop table if exists t6 ;
 
390
drop table if exists t11 ;
 
391
drop table if exists t22 ;
 
392
drop table if exists t33 ;
 
393
drop table if exists t44 ;
 
394
drop table if exists t55 ;
 
395
drop table if exists t66 ;
 
396
-------------------------------------------------------------------------
 
397
---  least(col1,15)  in partition with coltype  int
 
398
-------------------------------------------------------------------------
 
399
must all fail!
 
400
drop table if exists t1 ;
 
401
drop table if exists t2 ;
 
402
drop table if exists t3 ;
 
403
drop table if exists t4 ;
 
404
drop table if exists t5 ;
 
405
drop table if exists t6 ;
 
406
create table t1 (col1 int) engine='INNODB' 
 
407
partition by range(least(col1,15)) 
 
408
(partition p0 values less than (15),
 
409
partition p1 values less than (31));
 
410
Got one of the listed errors
 
411
create table t2 (col1 int) engine='INNODB' 
 
412
partition by list(least(col1,15)) 
 
413
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
414
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
415
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
416
Got one of the listed errors
 
417
create table t3 (col1 int) engine='INNODB' 
 
418
partition by hash(least(col1,15));
 
419
Got one of the listed errors
 
420
create table t4 (colint int, col1 int) engine='INNODB' 
 
421
partition by range(colint) 
 
422
subpartition by hash(least(col1,15)) subpartitions 2 
 
423
(partition p0 values less than (15),
 
424
partition p1 values less than (31));
 
425
Got one of the listed errors
 
426
create table t5 (colint int, col1 int) engine='INNODB' 
 
427
partition by list(colint)
 
428
subpartition by hash(least(col1,15)) subpartitions 2 
 
429
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
430
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
431
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
432
Got one of the listed errors
 
433
create table t6 (colint int, col1 int) engine='INNODB' 
 
434
partition by range(colint) 
 
435
(partition p0 values less than (least(15,30)),
 
436
partition p1 values less than maxvalue);
 
437
Got one of the listed errors
 
438
drop table if exists t11 ;
 
439
drop table if exists t22 ;
 
440
drop table if exists t33 ;
 
441
drop table if exists t44 ;
 
442
drop table if exists t55 ;
 
443
drop table if exists t66 ;
 
444
create table t11 (col1 int) engine='INNODB' ;
 
445
create table t22 (col1 int) engine='INNODB' ;
 
446
create table t33 (col1 int) engine='INNODB' ;
 
447
create table t44 (colint int, col1 int) engine='INNODB' ;
 
448
create table t55 (colint int, col1 int) engine='INNODB' ;
 
449
create table t66 (colint int, col1 int) engine='INNODB' ;
 
450
alter table t11  
 
451
partition by range(least(col1,15)) 
 
452
(partition p0 values less than (15),
 
453
partition p1 values less than (31));
 
454
Got one of the listed errors
 
455
alter table t22 
 
456
partition by list(least(col1,15)) 
 
457
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
458
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
459
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
460
Got one of the listed errors
 
461
alter table t33 
 
462
partition by hash(least(col1,15));
 
463
Got one of the listed errors
 
464
alter table t44 
 
465
partition by range(colint) 
 
466
subpartition by hash(least(col1,15)) subpartitions 2 
 
467
(partition p0 values less than (15),
 
468
partition p1 values less than (31));
 
469
Got one of the listed errors
 
470
alter table t55 
 
471
partition by list(colint)
 
472
subpartition by hash(least(col1,15)) subpartitions 2 
 
473
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
474
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
475
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
476
Got one of the listed errors
 
477
alter table t66  
 
478
partition by range(colint) 
 
479
(partition p0 values less than (least(15,30)),
 
480
partition p1 values less than maxvalue);
 
481
Got one of the listed errors
 
482
drop table if exists t1 ;
 
483
drop table if exists t2 ;
 
484
drop table if exists t3 ;
 
485
drop table if exists t4 ;
 
486
drop table if exists t5 ;
 
487
drop table if exists t6 ;
 
488
drop table if exists t11 ;
 
489
drop table if exists t22 ;
 
490
drop table if exists t33 ;
 
491
drop table if exists t44 ;
 
492
drop table if exists t55 ;
 
493
drop table if exists t66 ;
 
494
-------------------------------------------------------------------------
 
495
---  case when col1>15 then 20 else 10 end  in partition with coltype  int
 
496
-------------------------------------------------------------------------
 
497
must all fail!
 
498
drop table if exists t1 ;
 
499
drop table if exists t2 ;
 
500
drop table if exists t3 ;
 
501
drop table if exists t4 ;
 
502
drop table if exists t5 ;
 
503
drop table if exists t6 ;
 
504
create table t1 (col1 int) engine='INNODB' 
 
505
partition by range(case when col1>15 then 20 else 10 end) 
 
506
(partition p0 values less than (15),
 
507
partition p1 values less than (31));
 
508
Got one of the listed errors
 
509
create table t2 (col1 int) engine='INNODB' 
 
510
partition by list(case when col1>15 then 20 else 10 end) 
 
511
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
512
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
513
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
514
Got one of the listed errors
 
515
create table t3 (col1 int) engine='INNODB' 
 
516
partition by hash(case when col1>15 then 20 else 10 end);
 
517
Got one of the listed errors
 
518
create table t4 (colint int, col1 int) engine='INNODB' 
 
519
partition by range(colint) 
 
520
subpartition by hash(case when col1>15 then 20 else 10 end) subpartitions 2 
 
521
(partition p0 values less than (15),
 
522
partition p1 values less than (31));
 
523
Got one of the listed errors
 
524
create table t5 (colint int, col1 int) engine='INNODB' 
 
525
partition by list(colint)
 
526
subpartition by hash(case when col1>15 then 20 else 10 end) subpartitions 2 
 
527
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
528
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
529
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
530
Got one of the listed errors
 
531
create table t6 (colint int, col1 int) engine='INNODB' 
 
532
partition by range(colint) 
 
533
(partition p0 values less than (case when 1>30 then 20 else 15 end),
 
534
partition p1 values less than maxvalue);
 
535
Got one of the listed errors
 
536
drop table if exists t11 ;
 
537
drop table if exists t22 ;
 
538
drop table if exists t33 ;
 
539
drop table if exists t44 ;
 
540
drop table if exists t55 ;
 
541
drop table if exists t66 ;
 
542
create table t11 (col1 int) engine='INNODB' ;
 
543
create table t22 (col1 int) engine='INNODB' ;
 
544
create table t33 (col1 int) engine='INNODB' ;
 
545
create table t44 (colint int, col1 int) engine='INNODB' ;
 
546
create table t55 (colint int, col1 int) engine='INNODB' ;
 
547
create table t66 (colint int, col1 int) engine='INNODB' ;
 
548
alter table t11  
 
549
partition by range(case when col1>15 then 20 else 10 end) 
 
550
(partition p0 values less than (15),
 
551
partition p1 values less than (31));
 
552
Got one of the listed errors
 
553
alter table t22 
 
554
partition by list(case when col1>15 then 20 else 10 end) 
 
555
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
556
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
557
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
558
Got one of the listed errors
 
559
alter table t33 
 
560
partition by hash(case when col1>15 then 20 else 10 end);
 
561
Got one of the listed errors
 
562
alter table t44 
 
563
partition by range(colint) 
 
564
subpartition by hash(case when col1>15 then 20 else 10 end) subpartitions 2 
 
565
(partition p0 values less than (15),
 
566
partition p1 values less than (31));
 
567
Got one of the listed errors
 
568
alter table t55 
 
569
partition by list(colint)
 
570
subpartition by hash(case when col1>15 then 20 else 10 end) subpartitions 2 
 
571
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
572
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
573
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
574
Got one of the listed errors
 
575
alter table t66  
 
576
partition by range(colint) 
 
577
(partition p0 values less than (case when 1>30 then 20 else 15 end),
 
578
partition p1 values less than maxvalue);
 
579
Got one of the listed errors
 
580
drop table if exists t1 ;
 
581
drop table if exists t2 ;
 
582
drop table if exists t3 ;
 
583
drop table if exists t4 ;
 
584
drop table if exists t5 ;
 
585
drop table if exists t6 ;
 
586
drop table if exists t11 ;
 
587
drop table if exists t22 ;
 
588
drop table if exists t33 ;
 
589
drop table if exists t44 ;
 
590
drop table if exists t55 ;
 
591
drop table if exists t66 ;
 
592
-------------------------------------------------------------------------
 
593
---  ifnull(col1,30)  in partition with coltype  int
 
594
-------------------------------------------------------------------------
 
595
must all fail!
 
596
drop table if exists t1 ;
 
597
drop table if exists t2 ;
 
598
drop table if exists t3 ;
 
599
drop table if exists t4 ;
 
600
drop table if exists t5 ;
 
601
drop table if exists t6 ;
 
602
create table t1 (col1 int) engine='INNODB' 
 
603
partition by range(ifnull(col1,30)) 
 
604
(partition p0 values less than (15),
 
605
partition p1 values less than (31));
 
606
Got one of the listed errors
 
607
create table t2 (col1 int) engine='INNODB' 
 
608
partition by list(ifnull(col1,30)) 
 
609
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
610
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
611
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
612
Got one of the listed errors
 
613
create table t3 (col1 int) engine='INNODB' 
 
614
partition by hash(ifnull(col1,30));
 
615
Got one of the listed errors
 
616
create table t4 (colint int, col1 int) engine='INNODB' 
 
617
partition by range(colint) 
 
618
subpartition by hash(ifnull(col1,30)) subpartitions 2 
 
619
(partition p0 values less than (15),
 
620
partition p1 values less than (31));
 
621
Got one of the listed errors
 
622
create table t5 (colint int, col1 int) engine='INNODB' 
 
623
partition by list(colint)
 
624
subpartition by hash(ifnull(col1,30)) subpartitions 2 
 
625
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
626
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
627
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
628
Got one of the listed errors
 
629
create table t6 (colint int, col1 int) engine='INNODB' 
 
630
partition by range(colint) 
 
631
(partition p0 values less than (ifnull(1,30)),
 
632
partition p1 values less than maxvalue);
 
633
Got one of the listed errors
 
634
drop table if exists t11 ;
 
635
drop table if exists t22 ;
 
636
drop table if exists t33 ;
 
637
drop table if exists t44 ;
 
638
drop table if exists t55 ;
 
639
drop table if exists t66 ;
 
640
create table t11 (col1 int) engine='INNODB' ;
 
641
create table t22 (col1 int) engine='INNODB' ;
 
642
create table t33 (col1 int) engine='INNODB' ;
 
643
create table t44 (colint int, col1 int) engine='INNODB' ;
 
644
create table t55 (colint int, col1 int) engine='INNODB' ;
 
645
create table t66 (colint int, col1 int) engine='INNODB' ;
 
646
alter table t11  
 
647
partition by range(ifnull(col1,30)) 
 
648
(partition p0 values less than (15),
 
649
partition p1 values less than (31));
 
650
Got one of the listed errors
 
651
alter table t22 
 
652
partition by list(ifnull(col1,30)) 
 
653
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
654
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
655
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
656
Got one of the listed errors
 
657
alter table t33 
 
658
partition by hash(ifnull(col1,30));
 
659
Got one of the listed errors
 
660
alter table t44 
 
661
partition by range(colint) 
 
662
subpartition by hash(ifnull(col1,30)) subpartitions 2 
 
663
(partition p0 values less than (15),
 
664
partition p1 values less than (31));
 
665
Got one of the listed errors
 
666
alter table t55 
 
667
partition by list(colint)
 
668
subpartition by hash(ifnull(col1,30)) subpartitions 2 
 
669
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
670
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
671
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
672
Got one of the listed errors
 
673
alter table t66  
 
674
partition by range(colint) 
 
675
(partition p0 values less than (ifnull(1,30)),
 
676
partition p1 values less than maxvalue);
 
677
Got one of the listed errors
 
678
drop table if exists t1 ;
 
679
drop table if exists t2 ;
 
680
drop table if exists t3 ;
 
681
drop table if exists t4 ;
 
682
drop table if exists t5 ;
 
683
drop table if exists t6 ;
 
684
drop table if exists t11 ;
 
685
drop table if exists t22 ;
 
686
drop table if exists t33 ;
 
687
drop table if exists t44 ;
 
688
drop table if exists t55 ;
 
689
drop table if exists t66 ;
 
690
-------------------------------------------------------------------------
 
691
---  nullif(col1,30)  in partition with coltype  int
 
692
-------------------------------------------------------------------------
 
693
must all fail!
 
694
drop table if exists t1 ;
 
695
drop table if exists t2 ;
 
696
drop table if exists t3 ;
 
697
drop table if exists t4 ;
 
698
drop table if exists t5 ;
 
699
drop table if exists t6 ;
 
700
create table t1 (col1 int) engine='INNODB' 
 
701
partition by range(nullif(col1,30)) 
 
702
(partition p0 values less than (15),
 
703
partition p1 values less than (31));
 
704
Got one of the listed errors
 
705
create table t2 (col1 int) engine='INNODB' 
 
706
partition by list(nullif(col1,30)) 
 
707
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
708
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
709
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
710
Got one of the listed errors
 
711
create table t3 (col1 int) engine='INNODB' 
 
712
partition by hash(nullif(col1,30));
 
713
Got one of the listed errors
 
714
create table t4 (colint int, col1 int) engine='INNODB' 
 
715
partition by range(colint) 
 
716
subpartition by hash(nullif(col1,30)) subpartitions 2 
 
717
(partition p0 values less than (15),
 
718
partition p1 values less than (31));
 
719
Got one of the listed errors
 
720
create table t5 (colint int, col1 int) engine='INNODB' 
 
721
partition by list(colint)
 
722
subpartition by hash(nullif(col1,30)) subpartitions 2 
 
723
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
724
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
725
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
726
Got one of the listed errors
 
727
create table t6 (colint int, col1 int) engine='INNODB' 
 
728
partition by range(colint) 
 
729
(partition p0 values less than (nullif(1,30)),
 
730
partition p1 values less than maxvalue);
 
731
Got one of the listed errors
 
732
drop table if exists t11 ;
 
733
drop table if exists t22 ;
 
734
drop table if exists t33 ;
 
735
drop table if exists t44 ;
 
736
drop table if exists t55 ;
 
737
drop table if exists t66 ;
 
738
create table t11 (col1 int) engine='INNODB' ;
 
739
create table t22 (col1 int) engine='INNODB' ;
 
740
create table t33 (col1 int) engine='INNODB' ;
 
741
create table t44 (colint int, col1 int) engine='INNODB' ;
 
742
create table t55 (colint int, col1 int) engine='INNODB' ;
 
743
create table t66 (colint int, col1 int) engine='INNODB' ;
 
744
alter table t11  
 
745
partition by range(nullif(col1,30)) 
 
746
(partition p0 values less than (15),
 
747
partition p1 values less than (31));
 
748
Got one of the listed errors
 
749
alter table t22 
 
750
partition by list(nullif(col1,30)) 
 
751
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
752
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
753
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
754
Got one of the listed errors
 
755
alter table t33 
 
756
partition by hash(nullif(col1,30));
 
757
Got one of the listed errors
 
758
alter table t44 
 
759
partition by range(colint) 
 
760
subpartition by hash(nullif(col1,30)) subpartitions 2 
 
761
(partition p0 values less than (15),
 
762
partition p1 values less than (31));
 
763
Got one of the listed errors
 
764
alter table t55 
 
765
partition by list(colint)
 
766
subpartition by hash(nullif(col1,30)) subpartitions 2 
 
767
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
768
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
769
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
770
Got one of the listed errors
 
771
alter table t66  
 
772
partition by range(colint) 
 
773
(partition p0 values less than (nullif(1,30)),
 
774
partition p1 values less than maxvalue);
 
775
Got one of the listed errors
 
776
drop table if exists t1 ;
 
777
drop table if exists t2 ;
 
778
drop table if exists t3 ;
 
779
drop table if exists t4 ;
 
780
drop table if exists t5 ;
 
781
drop table if exists t6 ;
 
782
drop table if exists t11 ;
 
783
drop table if exists t22 ;
 
784
drop table if exists t33 ;
 
785
drop table if exists t44 ;
 
786
drop table if exists t55 ;
 
787
drop table if exists t66 ;
 
788
-------------------------------------------------------------------------
 
789
---  bit_length(col1)  in partition with coltype  int
 
790
-------------------------------------------------------------------------
 
791
must all fail!
 
792
drop table if exists t1 ;
 
793
drop table if exists t2 ;
 
794
drop table if exists t3 ;
 
795
drop table if exists t4 ;
 
796
drop table if exists t5 ;
 
797
drop table if exists t6 ;
 
798
create table t1 (col1 int) engine='INNODB' 
 
799
partition by range(bit_length(col1)) 
 
800
(partition p0 values less than (15),
 
801
partition p1 values less than (31));
 
802
Got one of the listed errors
 
803
create table t2 (col1 int) engine='INNODB' 
 
804
partition by list(bit_length(col1)) 
 
805
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
806
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
807
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
808
Got one of the listed errors
 
809
create table t3 (col1 int) engine='INNODB' 
 
810
partition by hash(bit_length(col1));
 
811
Got one of the listed errors
 
812
create table t4 (colint int, col1 int) engine='INNODB' 
 
813
partition by range(colint) 
 
814
subpartition by hash(bit_length(col1)) subpartitions 2 
 
815
(partition p0 values less than (15),
 
816
partition p1 values less than (31));
 
817
Got one of the listed errors
 
818
create table t5 (colint int, col1 int) engine='INNODB' 
 
819
partition by list(colint)
 
820
subpartition by hash(bit_length(col1)) subpartitions 2 
 
821
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
822
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
823
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
824
Got one of the listed errors
 
825
create table t6 (colint int, col1 int) engine='INNODB' 
 
826
partition by range(colint) 
 
827
(partition p0 values less than (bit_length(255)),
 
828
partition p1 values less than maxvalue);
 
829
Got one of the listed errors
 
830
drop table if exists t11 ;
 
831
drop table if exists t22 ;
 
832
drop table if exists t33 ;
 
833
drop table if exists t44 ;
 
834
drop table if exists t55 ;
 
835
drop table if exists t66 ;
 
836
create table t11 (col1 int) engine='INNODB' ;
 
837
create table t22 (col1 int) engine='INNODB' ;
 
838
create table t33 (col1 int) engine='INNODB' ;
 
839
create table t44 (colint int, col1 int) engine='INNODB' ;
 
840
create table t55 (colint int, col1 int) engine='INNODB' ;
 
841
create table t66 (colint int, col1 int) engine='INNODB' ;
 
842
alter table t11  
 
843
partition by range(bit_length(col1)) 
 
844
(partition p0 values less than (15),
 
845
partition p1 values less than (31));
 
846
Got one of the listed errors
 
847
alter table t22 
 
848
partition by list(bit_length(col1)) 
 
849
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
850
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
851
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
852
Got one of the listed errors
 
853
alter table t33 
 
854
partition by hash(bit_length(col1));
 
855
Got one of the listed errors
 
856
alter table t44 
 
857
partition by range(colint) 
 
858
subpartition by hash(bit_length(col1)) subpartitions 2 
 
859
(partition p0 values less than (15),
 
860
partition p1 values less than (31));
 
861
Got one of the listed errors
 
862
alter table t55 
 
863
partition by list(colint)
 
864
subpartition by hash(bit_length(col1)) subpartitions 2 
 
865
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
866
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
867
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
868
Got one of the listed errors
 
869
alter table t66  
 
870
partition by range(colint) 
 
871
(partition p0 values less than (bit_length(255)),
 
872
partition p1 values less than maxvalue);
 
873
Got one of the listed errors
 
874
drop table if exists t1 ;
 
875
drop table if exists t2 ;
 
876
drop table if exists t3 ;
 
877
drop table if exists t4 ;
 
878
drop table if exists t5 ;
 
879
drop table if exists t6 ;
 
880
drop table if exists t11 ;
 
881
drop table if exists t22 ;
 
882
drop table if exists t33 ;
 
883
drop table if exists t44 ;
 
884
drop table if exists t55 ;
 
885
drop table if exists t66 ;
 
886
-------------------------------------------------------------------------
 
887
---  bit_length(col1)  in partition with coltype  char(30)
 
888
-------------------------------------------------------------------------
 
889
must all fail!
 
890
drop table if exists t1 ;
 
891
drop table if exists t2 ;
 
892
drop table if exists t3 ;
 
893
drop table if exists t4 ;
 
894
drop table if exists t5 ;
 
895
drop table if exists t6 ;
 
896
create table t1 (col1 char(30)) engine='INNODB' 
 
897
partition by range(bit_length(col1)) 
 
898
(partition p0 values less than (15),
 
899
partition p1 values less than (31));
 
900
Got one of the listed errors
 
901
create table t2 (col1 char(30)) engine='INNODB' 
 
902
partition by list(bit_length(col1)) 
 
903
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
904
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
905
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
906
Got one of the listed errors
 
907
create table t3 (col1 char(30)) engine='INNODB' 
 
908
partition by hash(bit_length(col1));
 
909
Got one of the listed errors
 
910
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
911
partition by range(colint) 
 
912
subpartition by hash(bit_length(col1)) subpartitions 2 
 
913
(partition p0 values less than (15),
 
914
partition p1 values less than (31));
 
915
Got one of the listed errors
 
916
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
917
partition by list(colint)
 
918
subpartition by hash(bit_length(col1)) subpartitions 2 
 
919
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
920
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
921
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
922
Got one of the listed errors
 
923
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
924
partition by range(colint) 
 
925
(partition p0 values less than (bit_length(255)),
 
926
partition p1 values less than maxvalue);
 
927
Got one of the listed errors
 
928
drop table if exists t11 ;
 
929
drop table if exists t22 ;
 
930
drop table if exists t33 ;
 
931
drop table if exists t44 ;
 
932
drop table if exists t55 ;
 
933
drop table if exists t66 ;
 
934
create table t11 (col1 char(30)) engine='INNODB' ;
 
935
create table t22 (col1 char(30)) engine='INNODB' ;
 
936
create table t33 (col1 char(30)) engine='INNODB' ;
 
937
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
938
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
939
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
940
alter table t11  
 
941
partition by range(bit_length(col1)) 
 
942
(partition p0 values less than (15),
 
943
partition p1 values less than (31));
 
944
Got one of the listed errors
 
945
alter table t22 
 
946
partition by list(bit_length(col1)) 
 
947
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
948
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
949
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
950
Got one of the listed errors
 
951
alter table t33 
 
952
partition by hash(bit_length(col1));
 
953
Got one of the listed errors
 
954
alter table t44 
 
955
partition by range(colint) 
 
956
subpartition by hash(bit_length(col1)) subpartitions 2 
 
957
(partition p0 values less than (15),
 
958
partition p1 values less than (31));
 
959
Got one of the listed errors
 
960
alter table t55 
 
961
partition by list(colint)
 
962
subpartition by hash(bit_length(col1)) subpartitions 2 
 
963
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
964
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
965
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
966
Got one of the listed errors
 
967
alter table t66  
 
968
partition by range(colint) 
 
969
(partition p0 values less than (bit_length(255)),
 
970
partition p1 values less than maxvalue);
 
971
Got one of the listed errors
 
972
drop table if exists t1 ;
 
973
drop table if exists t2 ;
 
974
drop table if exists t3 ;
 
975
drop table if exists t4 ;
 
976
drop table if exists t5 ;
 
977
drop table if exists t6 ;
 
978
drop table if exists t11 ;
 
979
drop table if exists t22 ;
 
980
drop table if exists t33 ;
 
981
drop table if exists t44 ;
 
982
drop table if exists t55 ;
 
983
drop table if exists t66 ;
 
984
-------------------------------------------------------------------------
 
985
---  char_length(col1)  in partition with coltype  char(30)
 
986
-------------------------------------------------------------------------
 
987
must all fail!
 
988
drop table if exists t1 ;
 
989
drop table if exists t2 ;
 
990
drop table if exists t3 ;
 
991
drop table if exists t4 ;
 
992
drop table if exists t5 ;
 
993
drop table if exists t6 ;
 
994
create table t1 (col1 char(30)) engine='INNODB' 
 
995
partition by range(char_length(col1)) 
 
996
(partition p0 values less than (15),
 
997
partition p1 values less than (31));
 
998
Got one of the listed errors
 
999
create table t2 (col1 char(30)) engine='INNODB' 
 
1000
partition by list(char_length(col1)) 
 
1001
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1002
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1003
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1004
Got one of the listed errors
 
1005
create table t3 (col1 char(30)) engine='INNODB' 
 
1006
partition by hash(char_length(col1));
 
1007
Got one of the listed errors
 
1008
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
1009
partition by range(colint) 
 
1010
subpartition by hash(char_length(col1)) subpartitions 2 
 
1011
(partition p0 values less than (15),
 
1012
partition p1 values less than (31));
 
1013
Got one of the listed errors
 
1014
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
1015
partition by list(colint)
 
1016
subpartition by hash(char_length(col1)) subpartitions 2 
 
1017
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1018
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1019
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1020
Got one of the listed errors
 
1021
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
1022
partition by range(colint) 
 
1023
(partition p0 values less than (char_length('a')),
 
1024
partition p1 values less than maxvalue);
 
1025
Got one of the listed errors
 
1026
drop table if exists t11 ;
 
1027
drop table if exists t22 ;
 
1028
drop table if exists t33 ;
 
1029
drop table if exists t44 ;
 
1030
drop table if exists t55 ;
 
1031
drop table if exists t66 ;
 
1032
create table t11 (col1 char(30)) engine='INNODB' ;
 
1033
create table t22 (col1 char(30)) engine='INNODB' ;
 
1034
create table t33 (col1 char(30)) engine='INNODB' ;
 
1035
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
1036
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
1037
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
1038
alter table t11  
 
1039
partition by range(char_length(col1)) 
 
1040
(partition p0 values less than (15),
 
1041
partition p1 values less than (31));
 
1042
Got one of the listed errors
 
1043
alter table t22 
 
1044
partition by list(char_length(col1)) 
 
1045
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1046
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1047
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1048
Got one of the listed errors
 
1049
alter table t33 
 
1050
partition by hash(char_length(col1));
 
1051
Got one of the listed errors
 
1052
alter table t44 
 
1053
partition by range(colint) 
 
1054
subpartition by hash(char_length(col1)) subpartitions 2 
 
1055
(partition p0 values less than (15),
 
1056
partition p1 values less than (31));
 
1057
Got one of the listed errors
 
1058
alter table t55 
 
1059
partition by list(colint)
 
1060
subpartition by hash(char_length(col1)) subpartitions 2 
 
1061
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1062
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1063
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1064
Got one of the listed errors
 
1065
alter table t66  
 
1066
partition by range(colint) 
 
1067
(partition p0 values less than (char_length('a')),
 
1068
partition p1 values less than maxvalue);
 
1069
Got one of the listed errors
 
1070
drop table if exists t1 ;
 
1071
drop table if exists t2 ;
 
1072
drop table if exists t3 ;
 
1073
drop table if exists t4 ;
 
1074
drop table if exists t5 ;
 
1075
drop table if exists t6 ;
 
1076
drop table if exists t11 ;
 
1077
drop table if exists t22 ;
 
1078
drop table if exists t33 ;
 
1079
drop table if exists t44 ;
 
1080
drop table if exists t55 ;
 
1081
drop table if exists t66 ;
 
1082
-------------------------------------------------------------------------
 
1083
---  character_length(col1)  in partition with coltype  int
 
1084
-------------------------------------------------------------------------
 
1085
must all fail!
 
1086
drop table if exists t1 ;
 
1087
drop table if exists t2 ;
 
1088
drop table if exists t3 ;
 
1089
drop table if exists t4 ;
 
1090
drop table if exists t5 ;
 
1091
drop table if exists t6 ;
 
1092
create table t1 (col1 int) engine='INNODB' 
 
1093
partition by range(character_length(col1)) 
 
1094
(partition p0 values less than (15),
 
1095
partition p1 values less than (31));
 
1096
Got one of the listed errors
 
1097
create table t2 (col1 int) engine='INNODB' 
 
1098
partition by list(character_length(col1)) 
 
1099
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1100
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1101
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1102
Got one of the listed errors
 
1103
create table t3 (col1 int) engine='INNODB' 
 
1104
partition by hash(character_length(col1));
 
1105
Got one of the listed errors
 
1106
create table t4 (colint int, col1 int) engine='INNODB' 
 
1107
partition by range(colint) 
 
1108
subpartition by hash(character_length(col1)) subpartitions 2 
 
1109
(partition p0 values less than (15),
 
1110
partition p1 values less than (31));
 
1111
Got one of the listed errors
 
1112
create table t5 (colint int, col1 int) engine='INNODB' 
 
1113
partition by list(colint)
 
1114
subpartition by hash(character_length(col1)) subpartitions 2 
 
1115
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1116
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1117
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1118
Got one of the listed errors
 
1119
create table t6 (colint int, col1 int) engine='INNODB' 
 
1120
partition by range(colint) 
 
1121
(partition p0 values less than (find_in_set('i','a,b,c,d,e,f,g,h,i')),
 
1122
partition p1 values less than maxvalue);
 
1123
Got one of the listed errors
 
1124
drop table if exists t11 ;
 
1125
drop table if exists t22 ;
 
1126
drop table if exists t33 ;
 
1127
drop table if exists t44 ;
 
1128
drop table if exists t55 ;
 
1129
drop table if exists t66 ;
 
1130
create table t11 (col1 int) engine='INNODB' ;
 
1131
create table t22 (col1 int) engine='INNODB' ;
 
1132
create table t33 (col1 int) engine='INNODB' ;
 
1133
create table t44 (colint int, col1 int) engine='INNODB' ;
 
1134
create table t55 (colint int, col1 int) engine='INNODB' ;
 
1135
create table t66 (colint int, col1 int) engine='INNODB' ;
 
1136
alter table t11  
 
1137
partition by range(character_length(col1)) 
 
1138
(partition p0 values less than (15),
 
1139
partition p1 values less than (31));
 
1140
Got one of the listed errors
 
1141
alter table t22 
 
1142
partition by list(character_length(col1)) 
 
1143
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1144
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1145
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1146
Got one of the listed errors
 
1147
alter table t33 
 
1148
partition by hash(character_length(col1));
 
1149
Got one of the listed errors
 
1150
alter table t44 
 
1151
partition by range(colint) 
 
1152
subpartition by hash(character_length(col1)) subpartitions 2 
 
1153
(partition p0 values less than (15),
 
1154
partition p1 values less than (31));
 
1155
Got one of the listed errors
 
1156
alter table t55 
 
1157
partition by list(colint)
 
1158
subpartition by hash(character_length(col1)) subpartitions 2 
 
1159
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1160
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1161
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1162
Got one of the listed errors
 
1163
alter table t66  
 
1164
partition by range(colint) 
 
1165
(partition p0 values less than (find_in_set('i','a,b,c,d,e,f,g,h,i')),
 
1166
partition p1 values less than maxvalue);
 
1167
Got one of the listed errors
 
1168
drop table if exists t1 ;
 
1169
drop table if exists t2 ;
 
1170
drop table if exists t3 ;
 
1171
drop table if exists t4 ;
 
1172
drop table if exists t5 ;
 
1173
drop table if exists t6 ;
 
1174
drop table if exists t11 ;
 
1175
drop table if exists t22 ;
 
1176
drop table if exists t33 ;
 
1177
drop table if exists t44 ;
 
1178
drop table if exists t55 ;
 
1179
drop table if exists t66 ;
 
1180
-------------------------------------------------------------------------
 
1181
---  character_length(col1)  in partition with coltype  char(30)
 
1182
-------------------------------------------------------------------------
 
1183
must all fail!
 
1184
drop table if exists t1 ;
 
1185
drop table if exists t2 ;
 
1186
drop table if exists t3 ;
 
1187
drop table if exists t4 ;
 
1188
drop table if exists t5 ;
 
1189
drop table if exists t6 ;
 
1190
create table t1 (col1 char(30)) engine='INNODB' 
 
1191
partition by range(character_length(col1)) 
 
1192
(partition p0 values less than (15),
 
1193
partition p1 values less than (31));
 
1194
Got one of the listed errors
 
1195
create table t2 (col1 char(30)) engine='INNODB' 
 
1196
partition by list(character_length(col1)) 
 
1197
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1198
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1199
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1200
Got one of the listed errors
 
1201
create table t3 (col1 char(30)) engine='INNODB' 
 
1202
partition by hash(character_length(col1));
 
1203
Got one of the listed errors
 
1204
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
1205
partition by range(colint) 
 
1206
subpartition by hash(character_length(col1)) subpartitions 2 
 
1207
(partition p0 values less than (15),
 
1208
partition p1 values less than (31));
 
1209
Got one of the listed errors
 
1210
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
1211
partition by list(colint)
 
1212
subpartition by hash(character_length(col1)) subpartitions 2 
 
1213
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1214
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1215
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1216
Got one of the listed errors
 
1217
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
1218
partition by range(colint) 
 
1219
(partition p0 values less than (find_in_set('i','a,b,c,d,e,f,g,h,i')),
 
1220
partition p1 values less than maxvalue);
 
1221
Got one of the listed errors
 
1222
drop table if exists t11 ;
 
1223
drop table if exists t22 ;
 
1224
drop table if exists t33 ;
 
1225
drop table if exists t44 ;
 
1226
drop table if exists t55 ;
 
1227
drop table if exists t66 ;
 
1228
create table t11 (col1 char(30)) engine='INNODB' ;
 
1229
create table t22 (col1 char(30)) engine='INNODB' ;
 
1230
create table t33 (col1 char(30)) engine='INNODB' ;
 
1231
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
1232
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
1233
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
1234
alter table t11  
 
1235
partition by range(character_length(col1)) 
 
1236
(partition p0 values less than (15),
 
1237
partition p1 values less than (31));
 
1238
Got one of the listed errors
 
1239
alter table t22 
 
1240
partition by list(character_length(col1)) 
 
1241
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1242
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1243
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1244
Got one of the listed errors
 
1245
alter table t33 
 
1246
partition by hash(character_length(col1));
 
1247
Got one of the listed errors
 
1248
alter table t44 
 
1249
partition by range(colint) 
 
1250
subpartition by hash(character_length(col1)) subpartitions 2 
 
1251
(partition p0 values less than (15),
 
1252
partition p1 values less than (31));
 
1253
Got one of the listed errors
 
1254
alter table t55 
 
1255
partition by list(colint)
 
1256
subpartition by hash(character_length(col1)) subpartitions 2 
 
1257
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1258
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1259
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1260
Got one of the listed errors
 
1261
alter table t66  
 
1262
partition by range(colint) 
 
1263
(partition p0 values less than (find_in_set('i','a,b,c,d,e,f,g,h,i')),
 
1264
partition p1 values less than maxvalue);
 
1265
Got one of the listed errors
 
1266
drop table if exists t1 ;
 
1267
drop table if exists t2 ;
 
1268
drop table if exists t3 ;
 
1269
drop table if exists t4 ;
 
1270
drop table if exists t5 ;
 
1271
drop table if exists t6 ;
 
1272
drop table if exists t11 ;
 
1273
drop table if exists t22 ;
 
1274
drop table if exists t33 ;
 
1275
drop table if exists t44 ;
 
1276
drop table if exists t55 ;
 
1277
drop table if exists t66 ;
 
1278
-------------------------------------------------------------------------
 
1279
---  instr(col1,'acb')  in partition with coltype  int
 
1280
-------------------------------------------------------------------------
 
1281
must all fail!
 
1282
drop table if exists t1 ;
 
1283
drop table if exists t2 ;
 
1284
drop table if exists t3 ;
 
1285
drop table if exists t4 ;
 
1286
drop table if exists t5 ;
 
1287
drop table if exists t6 ;
 
1288
create table t1 (col1 int) engine='INNODB' 
 
1289
partition by range(instr(col1,'acb')) 
 
1290
(partition p0 values less than (15),
 
1291
partition p1 values less than (31));
 
1292
Got one of the listed errors
 
1293
create table t2 (col1 int) engine='INNODB' 
 
1294
partition by list(instr(col1,'acb')) 
 
1295
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1296
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1297
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1298
Got one of the listed errors
 
1299
create table t3 (col1 int) engine='INNODB' 
 
1300
partition by hash(instr(col1,'acb'));
 
1301
Got one of the listed errors
 
1302
create table t4 (colint int, col1 int) engine='INNODB' 
 
1303
partition by range(colint) 
 
1304
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1305
(partition p0 values less than (15),
 
1306
partition p1 values less than (31));
 
1307
Got one of the listed errors
 
1308
create table t5 (colint int, col1 int) engine='INNODB' 
 
1309
partition by list(colint)
 
1310
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1311
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1312
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1313
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1314
Got one of the listed errors
 
1315
create table t6 (colint int, col1 int) engine='INNODB' 
 
1316
partition by range(colint) 
 
1317
(partition p0 values less than (instr('i','a,b,c,d,e,f,g,h,i')),
 
1318
partition p1 values less than maxvalue);
 
1319
Got one of the listed errors
 
1320
drop table if exists t11 ;
 
1321
drop table if exists t22 ;
 
1322
drop table if exists t33 ;
 
1323
drop table if exists t44 ;
 
1324
drop table if exists t55 ;
 
1325
drop table if exists t66 ;
 
1326
create table t11 (col1 int) engine='INNODB' ;
 
1327
create table t22 (col1 int) engine='INNODB' ;
 
1328
create table t33 (col1 int) engine='INNODB' ;
 
1329
create table t44 (colint int, col1 int) engine='INNODB' ;
 
1330
create table t55 (colint int, col1 int) engine='INNODB' ;
 
1331
create table t66 (colint int, col1 int) engine='INNODB' ;
 
1332
alter table t11  
 
1333
partition by range(instr(col1,'acb')) 
 
1334
(partition p0 values less than (15),
 
1335
partition p1 values less than (31));
 
1336
Got one of the listed errors
 
1337
alter table t22 
 
1338
partition by list(instr(col1,'acb')) 
 
1339
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1340
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1341
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1342
Got one of the listed errors
 
1343
alter table t33 
 
1344
partition by hash(instr(col1,'acb'));
 
1345
Got one of the listed errors
 
1346
alter table t44 
 
1347
partition by range(colint) 
 
1348
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1349
(partition p0 values less than (15),
 
1350
partition p1 values less than (31));
 
1351
Got one of the listed errors
 
1352
alter table t55 
 
1353
partition by list(colint)
 
1354
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1355
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1356
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1357
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1358
Got one of the listed errors
 
1359
alter table t66  
 
1360
partition by range(colint) 
 
1361
(partition p0 values less than (instr('i','a,b,c,d,e,f,g,h,i')),
 
1362
partition p1 values less than maxvalue);
 
1363
Got one of the listed errors
 
1364
drop table if exists t1 ;
 
1365
drop table if exists t2 ;
 
1366
drop table if exists t3 ;
 
1367
drop table if exists t4 ;
 
1368
drop table if exists t5 ;
 
1369
drop table if exists t6 ;
 
1370
drop table if exists t11 ;
 
1371
drop table if exists t22 ;
 
1372
drop table if exists t33 ;
 
1373
drop table if exists t44 ;
 
1374
drop table if exists t55 ;
 
1375
drop table if exists t66 ;
 
1376
-------------------------------------------------------------------------
 
1377
---  instr(col1,'acb')  in partition with coltype  char(30)
 
1378
-------------------------------------------------------------------------
 
1379
must all fail!
 
1380
drop table if exists t1 ;
 
1381
drop table if exists t2 ;
 
1382
drop table if exists t3 ;
 
1383
drop table if exists t4 ;
 
1384
drop table if exists t5 ;
 
1385
drop table if exists t6 ;
 
1386
create table t1 (col1 char(30)) engine='INNODB' 
 
1387
partition by range(instr(col1,'acb')) 
 
1388
(partition p0 values less than (15),
 
1389
partition p1 values less than (31));
 
1390
Got one of the listed errors
 
1391
create table t2 (col1 char(30)) engine='INNODB' 
 
1392
partition by list(instr(col1,'acb')) 
 
1393
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1394
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1395
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1396
Got one of the listed errors
 
1397
create table t3 (col1 char(30)) engine='INNODB' 
 
1398
partition by hash(instr(col1,'acb'));
 
1399
Got one of the listed errors
 
1400
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
1401
partition by range(colint) 
 
1402
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1403
(partition p0 values less than (15),
 
1404
partition p1 values less than (31));
 
1405
Got one of the listed errors
 
1406
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
1407
partition by list(colint)
 
1408
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1409
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1410
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1411
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1412
Got one of the listed errors
 
1413
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
1414
partition by range(colint) 
 
1415
(partition p0 values less than (instr('i','a,b,c,d,e,f,g,h,i')),
 
1416
partition p1 values less than maxvalue);
 
1417
Got one of the listed errors
 
1418
drop table if exists t11 ;
 
1419
drop table if exists t22 ;
 
1420
drop table if exists t33 ;
 
1421
drop table if exists t44 ;
 
1422
drop table if exists t55 ;
 
1423
drop table if exists t66 ;
 
1424
create table t11 (col1 char(30)) engine='INNODB' ;
 
1425
create table t22 (col1 char(30)) engine='INNODB' ;
 
1426
create table t33 (col1 char(30)) engine='INNODB' ;
 
1427
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
1428
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
1429
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
1430
alter table t11  
 
1431
partition by range(instr(col1,'acb')) 
 
1432
(partition p0 values less than (15),
 
1433
partition p1 values less than (31));
 
1434
Got one of the listed errors
 
1435
alter table t22 
 
1436
partition by list(instr(col1,'acb')) 
 
1437
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1438
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1439
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1440
Got one of the listed errors
 
1441
alter table t33 
 
1442
partition by hash(instr(col1,'acb'));
 
1443
Got one of the listed errors
 
1444
alter table t44 
 
1445
partition by range(colint) 
 
1446
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1447
(partition p0 values less than (15),
 
1448
partition p1 values less than (31));
 
1449
Got one of the listed errors
 
1450
alter table t55 
 
1451
partition by list(colint)
 
1452
subpartition by hash(instr(col1,'acb')) subpartitions 2 
 
1453
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1454
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1455
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1456
Got one of the listed errors
 
1457
alter table t66  
 
1458
partition by range(colint) 
 
1459
(partition p0 values less than (instr('i','a,b,c,d,e,f,g,h,i')),
 
1460
partition p1 values less than maxvalue);
 
1461
Got one of the listed errors
 
1462
drop table if exists t1 ;
 
1463
drop table if exists t2 ;
 
1464
drop table if exists t3 ;
 
1465
drop table if exists t4 ;
 
1466
drop table if exists t5 ;
 
1467
drop table if exists t6 ;
 
1468
drop table if exists t11 ;
 
1469
drop table if exists t22 ;
 
1470
drop table if exists t33 ;
 
1471
drop table if exists t44 ;
 
1472
drop table if exists t55 ;
 
1473
drop table if exists t66 ;
 
1474
-------------------------------------------------------------------------
 
1475
---  length(col1)  in partition with coltype  int
 
1476
-------------------------------------------------------------------------
 
1477
must all fail!
 
1478
drop table if exists t1 ;
 
1479
drop table if exists t2 ;
 
1480
drop table if exists t3 ;
 
1481
drop table if exists t4 ;
 
1482
drop table if exists t5 ;
 
1483
drop table if exists t6 ;
 
1484
create table t1 (col1 int) engine='INNODB' 
 
1485
partition by range(length(col1)) 
 
1486
(partition p0 values less than (15),
 
1487
partition p1 values less than (31));
 
1488
Got one of the listed errors
 
1489
create table t2 (col1 int) engine='INNODB' 
 
1490
partition by list(length(col1)) 
 
1491
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1492
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1493
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1494
Got one of the listed errors
 
1495
create table t3 (col1 int) engine='INNODB' 
 
1496
partition by hash(length(col1));
 
1497
Got one of the listed errors
 
1498
create table t4 (colint int, col1 int) engine='INNODB' 
 
1499
partition by range(colint) 
 
1500
subpartition by hash(length(col1)) subpartitions 2 
 
1501
(partition p0 values less than (15),
 
1502
partition p1 values less than (31));
 
1503
Got one of the listed errors
 
1504
create table t5 (colint int, col1 int) engine='INNODB' 
 
1505
partition by list(colint)
 
1506
subpartition by hash(length(col1)) subpartitions 2 
 
1507
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1508
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1509
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1510
Got one of the listed errors
 
1511
create table t6 (colint int, col1 int) engine='INNODB' 
 
1512
partition by range(colint) 
 
1513
(partition p0 values less than (length('a,b,c,d,e,f,g,h,i')),
 
1514
partition p1 values less than maxvalue);
 
1515
Got one of the listed errors
 
1516
drop table if exists t11 ;
 
1517
drop table if exists t22 ;
 
1518
drop table if exists t33 ;
 
1519
drop table if exists t44 ;
 
1520
drop table if exists t55 ;
 
1521
drop table if exists t66 ;
 
1522
create table t11 (col1 int) engine='INNODB' ;
 
1523
create table t22 (col1 int) engine='INNODB' ;
 
1524
create table t33 (col1 int) engine='INNODB' ;
 
1525
create table t44 (colint int, col1 int) engine='INNODB' ;
 
1526
create table t55 (colint int, col1 int) engine='INNODB' ;
 
1527
create table t66 (colint int, col1 int) engine='INNODB' ;
 
1528
alter table t11  
 
1529
partition by range(length(col1)) 
 
1530
(partition p0 values less than (15),
 
1531
partition p1 values less than (31));
 
1532
Got one of the listed errors
 
1533
alter table t22 
 
1534
partition by list(length(col1)) 
 
1535
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1536
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1537
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1538
Got one of the listed errors
 
1539
alter table t33 
 
1540
partition by hash(length(col1));
 
1541
Got one of the listed errors
 
1542
alter table t44 
 
1543
partition by range(colint) 
 
1544
subpartition by hash(length(col1)) subpartitions 2 
 
1545
(partition p0 values less than (15),
 
1546
partition p1 values less than (31));
 
1547
Got one of the listed errors
 
1548
alter table t55 
 
1549
partition by list(colint)
 
1550
subpartition by hash(length(col1)) subpartitions 2 
 
1551
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1552
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1553
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1554
Got one of the listed errors
 
1555
alter table t66  
 
1556
partition by range(colint) 
 
1557
(partition p0 values less than (length('a,b,c,d,e,f,g,h,i')),
 
1558
partition p1 values less than maxvalue);
 
1559
Got one of the listed errors
 
1560
drop table if exists t1 ;
 
1561
drop table if exists t2 ;
 
1562
drop table if exists t3 ;
 
1563
drop table if exists t4 ;
 
1564
drop table if exists t5 ;
 
1565
drop table if exists t6 ;
 
1566
drop table if exists t11 ;
 
1567
drop table if exists t22 ;
 
1568
drop table if exists t33 ;
 
1569
drop table if exists t44 ;
 
1570
drop table if exists t55 ;
 
1571
drop table if exists t66 ;
 
1572
-------------------------------------------------------------------------
 
1573
---  locate('a',col1)  in partition with coltype  int
 
1574
-------------------------------------------------------------------------
 
1575
must all fail!
 
1576
drop table if exists t1 ;
 
1577
drop table if exists t2 ;
 
1578
drop table if exists t3 ;
 
1579
drop table if exists t4 ;
 
1580
drop table if exists t5 ;
 
1581
drop table if exists t6 ;
 
1582
create table t1 (col1 int) engine='INNODB' 
 
1583
partition by range(locate('a',col1)) 
 
1584
(partition p0 values less than (15),
 
1585
partition p1 values less than (31));
 
1586
Got one of the listed errors
 
1587
create table t2 (col1 int) engine='INNODB' 
 
1588
partition by list(locate('a',col1)) 
 
1589
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1590
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1591
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1592
Got one of the listed errors
 
1593
create table t3 (col1 int) engine='INNODB' 
 
1594
partition by hash(locate('a',col1));
 
1595
Got one of the listed errors
 
1596
create table t4 (colint int, col1 int) engine='INNODB' 
 
1597
partition by range(colint) 
 
1598
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1599
(partition p0 values less than (15),
 
1600
partition p1 values less than (31));
 
1601
Got one of the listed errors
 
1602
create table t5 (colint int, col1 int) engine='INNODB' 
 
1603
partition by list(colint)
 
1604
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1605
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1606
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1607
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1608
Got one of the listed errors
 
1609
create table t6 (colint int, col1 int) engine='INNODB' 
 
1610
partition by range(colint) 
 
1611
(partition p0 values less than (locate('i','a,b,c,d,e,f,g,h,i')),
 
1612
partition p1 values less than maxvalue);
 
1613
Got one of the listed errors
 
1614
drop table if exists t11 ;
 
1615
drop table if exists t22 ;
 
1616
drop table if exists t33 ;
 
1617
drop table if exists t44 ;
 
1618
drop table if exists t55 ;
 
1619
drop table if exists t66 ;
 
1620
create table t11 (col1 int) engine='INNODB' ;
 
1621
create table t22 (col1 int) engine='INNODB' ;
 
1622
create table t33 (col1 int) engine='INNODB' ;
 
1623
create table t44 (colint int, col1 int) engine='INNODB' ;
 
1624
create table t55 (colint int, col1 int) engine='INNODB' ;
 
1625
create table t66 (colint int, col1 int) engine='INNODB' ;
 
1626
alter table t11  
 
1627
partition by range(locate('a',col1)) 
 
1628
(partition p0 values less than (15),
 
1629
partition p1 values less than (31));
 
1630
Got one of the listed errors
 
1631
alter table t22 
 
1632
partition by list(locate('a',col1)) 
 
1633
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1634
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1635
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1636
Got one of the listed errors
 
1637
alter table t33 
 
1638
partition by hash(locate('a',col1));
 
1639
Got one of the listed errors
 
1640
alter table t44 
 
1641
partition by range(colint) 
 
1642
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1643
(partition p0 values less than (15),
 
1644
partition p1 values less than (31));
 
1645
Got one of the listed errors
 
1646
alter table t55 
 
1647
partition by list(colint)
 
1648
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1649
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1650
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1651
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1652
Got one of the listed errors
 
1653
alter table t66  
 
1654
partition by range(colint) 
 
1655
(partition p0 values less than (locate('i','a,b,c,d,e,f,g,h,i')),
 
1656
partition p1 values less than maxvalue);
 
1657
Got one of the listed errors
 
1658
drop table if exists t1 ;
 
1659
drop table if exists t2 ;
 
1660
drop table if exists t3 ;
 
1661
drop table if exists t4 ;
 
1662
drop table if exists t5 ;
 
1663
drop table if exists t6 ;
 
1664
drop table if exists t11 ;
 
1665
drop table if exists t22 ;
 
1666
drop table if exists t33 ;
 
1667
drop table if exists t44 ;
 
1668
drop table if exists t55 ;
 
1669
drop table if exists t66 ;
 
1670
-------------------------------------------------------------------------
 
1671
---  locate('a',col1)  in partition with coltype  char(30)
 
1672
-------------------------------------------------------------------------
 
1673
must all fail!
 
1674
drop table if exists t1 ;
 
1675
drop table if exists t2 ;
 
1676
drop table if exists t3 ;
 
1677
drop table if exists t4 ;
 
1678
drop table if exists t5 ;
 
1679
drop table if exists t6 ;
 
1680
create table t1 (col1 char(30)) engine='INNODB' 
 
1681
partition by range(locate('a',col1)) 
 
1682
(partition p0 values less than (15),
 
1683
partition p1 values less than (31));
 
1684
Got one of the listed errors
 
1685
create table t2 (col1 char(30)) engine='INNODB' 
 
1686
partition by list(locate('a',col1)) 
 
1687
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1688
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1689
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1690
Got one of the listed errors
 
1691
create table t3 (col1 char(30)) engine='INNODB' 
 
1692
partition by hash(locate('a',col1));
 
1693
Got one of the listed errors
 
1694
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
1695
partition by range(colint) 
 
1696
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1697
(partition p0 values less than (15),
 
1698
partition p1 values less than (31));
 
1699
Got one of the listed errors
 
1700
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
1701
partition by list(colint)
 
1702
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1703
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1704
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1705
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1706
Got one of the listed errors
 
1707
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
1708
partition by range(colint) 
 
1709
(partition p0 values less than (locate('i','a,b,c,d,e,f,g,h,i')),
 
1710
partition p1 values less than maxvalue);
 
1711
Got one of the listed errors
 
1712
drop table if exists t11 ;
 
1713
drop table if exists t22 ;
 
1714
drop table if exists t33 ;
 
1715
drop table if exists t44 ;
 
1716
drop table if exists t55 ;
 
1717
drop table if exists t66 ;
 
1718
create table t11 (col1 char(30)) engine='INNODB' ;
 
1719
create table t22 (col1 char(30)) engine='INNODB' ;
 
1720
create table t33 (col1 char(30)) engine='INNODB' ;
 
1721
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
1722
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
1723
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
1724
alter table t11  
 
1725
partition by range(locate('a',col1)) 
 
1726
(partition p0 values less than (15),
 
1727
partition p1 values less than (31));
 
1728
Got one of the listed errors
 
1729
alter table t22 
 
1730
partition by list(locate('a',col1)) 
 
1731
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1732
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1733
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1734
Got one of the listed errors
 
1735
alter table t33 
 
1736
partition by hash(locate('a',col1));
 
1737
Got one of the listed errors
 
1738
alter table t44 
 
1739
partition by range(colint) 
 
1740
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1741
(partition p0 values less than (15),
 
1742
partition p1 values less than (31));
 
1743
Got one of the listed errors
 
1744
alter table t55 
 
1745
partition by list(colint)
 
1746
subpartition by hash(locate('a',col1)) subpartitions 2 
 
1747
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1748
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1749
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1750
Got one of the listed errors
 
1751
alter table t66  
 
1752
partition by range(colint) 
 
1753
(partition p0 values less than (locate('i','a,b,c,d,e,f,g,h,i')),
 
1754
partition p1 values less than maxvalue);
 
1755
Got one of the listed errors
 
1756
drop table if exists t1 ;
 
1757
drop table if exists t2 ;
 
1758
drop table if exists t3 ;
 
1759
drop table if exists t4 ;
 
1760
drop table if exists t5 ;
 
1761
drop table if exists t6 ;
 
1762
drop table if exists t11 ;
 
1763
drop table if exists t22 ;
 
1764
drop table if exists t33 ;
 
1765
drop table if exists t44 ;
 
1766
drop table if exists t55 ;
 
1767
drop table if exists t66 ;
 
1768
-------------------------------------------------------------------------
 
1769
---  octet_length(col1)  in partition with coltype  char(30)
 
1770
-------------------------------------------------------------------------
 
1771
must all fail!
 
1772
drop table if exists t1 ;
 
1773
drop table if exists t2 ;
 
1774
drop table if exists t3 ;
 
1775
drop table if exists t4 ;
 
1776
drop table if exists t5 ;
 
1777
drop table if exists t6 ;
 
1778
create table t1 (col1 char(30)) engine='INNODB' 
 
1779
partition by range(octet_length(col1)) 
 
1780
(partition p0 values less than (15),
 
1781
partition p1 values less than (31));
 
1782
Got one of the listed errors
 
1783
create table t2 (col1 char(30)) engine='INNODB' 
 
1784
partition by list(octet_length(col1)) 
 
1785
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1786
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1787
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1788
Got one of the listed errors
 
1789
create table t3 (col1 char(30)) engine='INNODB' 
 
1790
partition by hash(octet_length(col1));
 
1791
Got one of the listed errors
 
1792
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
1793
partition by range(colint) 
 
1794
subpartition by hash(octet_length(col1)) subpartitions 2 
 
1795
(partition p0 values less than (15),
 
1796
partition p1 values less than (31));
 
1797
Got one of the listed errors
 
1798
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
1799
partition by list(colint)
 
1800
subpartition by hash(octet_length(col1)) subpartitions 2 
 
1801
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1802
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1803
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1804
Got one of the listed errors
 
1805
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
1806
partition by range(colint) 
 
1807
(partition p0 values less than (octet_length('a,b,c,d,e,f,g,h,i')),
 
1808
partition p1 values less than maxvalue);
 
1809
Got one of the listed errors
 
1810
drop table if exists t11 ;
 
1811
drop table if exists t22 ;
 
1812
drop table if exists t33 ;
 
1813
drop table if exists t44 ;
 
1814
drop table if exists t55 ;
 
1815
drop table if exists t66 ;
 
1816
create table t11 (col1 char(30)) engine='INNODB' ;
 
1817
create table t22 (col1 char(30)) engine='INNODB' ;
 
1818
create table t33 (col1 char(30)) engine='INNODB' ;
 
1819
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
1820
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
1821
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
1822
alter table t11  
 
1823
partition by range(octet_length(col1)) 
 
1824
(partition p0 values less than (15),
 
1825
partition p1 values less than (31));
 
1826
Got one of the listed errors
 
1827
alter table t22 
 
1828
partition by list(octet_length(col1)) 
 
1829
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1830
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1831
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1832
Got one of the listed errors
 
1833
alter table t33 
 
1834
partition by hash(octet_length(col1));
 
1835
Got one of the listed errors
 
1836
alter table t44 
 
1837
partition by range(colint) 
 
1838
subpartition by hash(octet_length(col1)) subpartitions 2 
 
1839
(partition p0 values less than (15),
 
1840
partition p1 values less than (31));
 
1841
Got one of the listed errors
 
1842
alter table t55 
 
1843
partition by list(colint)
 
1844
subpartition by hash(octet_length(col1)) subpartitions 2 
 
1845
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1846
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1847
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1848
Got one of the listed errors
 
1849
alter table t66  
 
1850
partition by range(colint) 
 
1851
(partition p0 values less than (octet_length('a,b,c,d,e,f,g,h,i')),
 
1852
partition p1 values less than maxvalue);
 
1853
Got one of the listed errors
 
1854
drop table if exists t1 ;
 
1855
drop table if exists t2 ;
 
1856
drop table if exists t3 ;
 
1857
drop table if exists t4 ;
 
1858
drop table if exists t5 ;
 
1859
drop table if exists t6 ;
 
1860
drop table if exists t11 ;
 
1861
drop table if exists t22 ;
 
1862
drop table if exists t33 ;
 
1863
drop table if exists t44 ;
 
1864
drop table if exists t55 ;
 
1865
drop table if exists t66 ;
 
1866
-------------------------------------------------------------------------
 
1867
---  position('a' in col1)  in partition with coltype  int
 
1868
-------------------------------------------------------------------------
 
1869
must all fail!
 
1870
drop table if exists t1 ;
 
1871
drop table if exists t2 ;
 
1872
drop table if exists t3 ;
 
1873
drop table if exists t4 ;
 
1874
drop table if exists t5 ;
 
1875
drop table if exists t6 ;
 
1876
create table t1 (col1 int) engine='INNODB' 
 
1877
partition by range(position('a' in col1)) 
 
1878
(partition p0 values less than (15),
 
1879
partition p1 values less than (31));
 
1880
Got one of the listed errors
 
1881
create table t2 (col1 int) engine='INNODB' 
 
1882
partition by list(position('a' in col1)) 
 
1883
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1884
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1885
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1886
Got one of the listed errors
 
1887
create table t3 (col1 int) engine='INNODB' 
 
1888
partition by hash(position('a' in col1));
 
1889
Got one of the listed errors
 
1890
create table t4 (colint int, col1 int) engine='INNODB' 
 
1891
partition by range(colint) 
 
1892
subpartition by hash(position('a' in col1)) subpartitions 2 
 
1893
(partition p0 values less than (15),
 
1894
partition p1 values less than (31));
 
1895
Got one of the listed errors
 
1896
create table t5 (colint int, col1 int) engine='INNODB' 
 
1897
partition by list(colint)
 
1898
subpartition by hash(position('a' in col1)) subpartitions 2 
 
1899
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1900
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1901
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1902
Got one of the listed errors
 
1903
create table t6 (colint int, col1 int) engine='INNODB' 
 
1904
partition by range(colint) 
 
1905
(partition p0 values less than (position('i' in 'a,b,c,d,e,f,g,h,i')),
 
1906
partition p1 values less than maxvalue);
 
1907
Got one of the listed errors
 
1908
drop table if exists t11 ;
 
1909
drop table if exists t22 ;
 
1910
drop table if exists t33 ;
 
1911
drop table if exists t44 ;
 
1912
drop table if exists t55 ;
 
1913
drop table if exists t66 ;
 
1914
create table t11 (col1 int) engine='INNODB' ;
 
1915
create table t22 (col1 int) engine='INNODB' ;
 
1916
create table t33 (col1 int) engine='INNODB' ;
 
1917
create table t44 (colint int, col1 int) engine='INNODB' ;
 
1918
create table t55 (colint int, col1 int) engine='INNODB' ;
 
1919
create table t66 (colint int, col1 int) engine='INNODB' ;
 
1920
alter table t11  
 
1921
partition by range(position('a' in col1)) 
 
1922
(partition p0 values less than (15),
 
1923
partition p1 values less than (31));
 
1924
Got one of the listed errors
 
1925
alter table t22 
 
1926
partition by list(position('a' in col1)) 
 
1927
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1928
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1929
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1930
Got one of the listed errors
 
1931
alter table t33 
 
1932
partition by hash(position('a' in col1));
 
1933
Got one of the listed errors
 
1934
alter table t44 
 
1935
partition by range(colint) 
 
1936
subpartition by hash(position('a' in col1)) subpartitions 2 
 
1937
(partition p0 values less than (15),
 
1938
partition p1 values less than (31));
 
1939
Got one of the listed errors
 
1940
alter table t55 
 
1941
partition by list(colint)
 
1942
subpartition by hash(position('a' in col1)) subpartitions 2 
 
1943
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1944
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1945
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1946
Got one of the listed errors
 
1947
alter table t66  
 
1948
partition by range(colint) 
 
1949
(partition p0 values less than (position('i' in 'a,b,c,d,e,f,g,h,i')),
 
1950
partition p1 values less than maxvalue);
 
1951
Got one of the listed errors
 
1952
drop table if exists t1 ;
 
1953
drop table if exists t2 ;
 
1954
drop table if exists t3 ;
 
1955
drop table if exists t4 ;
 
1956
drop table if exists t5 ;
 
1957
drop table if exists t6 ;
 
1958
drop table if exists t11 ;
 
1959
drop table if exists t22 ;
 
1960
drop table if exists t33 ;
 
1961
drop table if exists t44 ;
 
1962
drop table if exists t55 ;
 
1963
drop table if exists t66 ;
 
1964
-------------------------------------------------------------------------
 
1965
---  position('a' in col1)  in partition with coltype  char(30)
 
1966
-------------------------------------------------------------------------
 
1967
must all fail!
 
1968
drop table if exists t1 ;
 
1969
drop table if exists t2 ;
 
1970
drop table if exists t3 ;
 
1971
drop table if exists t4 ;
 
1972
drop table if exists t5 ;
 
1973
drop table if exists t6 ;
 
1974
create table t1 (col1 char(30)) engine='INNODB' 
 
1975
partition by range(position('a' in col1)) 
 
1976
(partition p0 values less than (15),
 
1977
partition p1 values less than (31));
 
1978
Got one of the listed errors
 
1979
create table t2 (col1 char(30)) engine='INNODB' 
 
1980
partition by list(position('a' in col1)) 
 
1981
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1982
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1983
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
1984
Got one of the listed errors
 
1985
create table t3 (col1 char(30)) engine='INNODB' 
 
1986
partition by hash(position('a' in col1));
 
1987
Got one of the listed errors
 
1988
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
1989
partition by range(colint) 
 
1990
subpartition by hash(position('a' in col1)) subpartitions 2 
 
1991
(partition p0 values less than (15),
 
1992
partition p1 values less than (31));
 
1993
Got one of the listed errors
 
1994
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
1995
partition by list(colint)
 
1996
subpartition by hash(position('a' in col1)) subpartitions 2 
 
1997
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
1998
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
1999
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2000
Got one of the listed errors
 
2001
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
2002
partition by range(colint) 
 
2003
(partition p0 values less than (position('i' in 'a,b,c,d,e,f,g,h,i')),
 
2004
partition p1 values less than maxvalue);
 
2005
Got one of the listed errors
 
2006
drop table if exists t11 ;
 
2007
drop table if exists t22 ;
 
2008
drop table if exists t33 ;
 
2009
drop table if exists t44 ;
 
2010
drop table if exists t55 ;
 
2011
drop table if exists t66 ;
 
2012
create table t11 (col1 char(30)) engine='INNODB' ;
 
2013
create table t22 (col1 char(30)) engine='INNODB' ;
 
2014
create table t33 (col1 char(30)) engine='INNODB' ;
 
2015
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
2016
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
2017
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
2018
alter table t11  
 
2019
partition by range(position('a' in col1)) 
 
2020
(partition p0 values less than (15),
 
2021
partition p1 values less than (31));
 
2022
Got one of the listed errors
 
2023
alter table t22 
 
2024
partition by list(position('a' in col1)) 
 
2025
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2026
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2027
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2028
Got one of the listed errors
 
2029
alter table t33 
 
2030
partition by hash(position('a' in col1));
 
2031
Got one of the listed errors
 
2032
alter table t44 
 
2033
partition by range(colint) 
 
2034
subpartition by hash(position('a' in col1)) subpartitions 2 
 
2035
(partition p0 values less than (15),
 
2036
partition p1 values less than (31));
 
2037
Got one of the listed errors
 
2038
alter table t55 
 
2039
partition by list(colint)
 
2040
subpartition by hash(position('a' in col1)) subpartitions 2 
 
2041
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2042
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2043
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2044
Got one of the listed errors
 
2045
alter table t66  
 
2046
partition by range(colint) 
 
2047
(partition p0 values less than (position('i' in 'a,b,c,d,e,f,g,h,i')),
 
2048
partition p1 values less than maxvalue);
 
2049
Got one of the listed errors
 
2050
drop table if exists t1 ;
 
2051
drop table if exists t2 ;
 
2052
drop table if exists t3 ;
 
2053
drop table if exists t4 ;
 
2054
drop table if exists t5 ;
 
2055
drop table if exists t6 ;
 
2056
drop table if exists t11 ;
 
2057
drop table if exists t22 ;
 
2058
drop table if exists t33 ;
 
2059
drop table if exists t44 ;
 
2060
drop table if exists t55 ;
 
2061
drop table if exists t66 ;
 
2062
-------------------------------------------------------------------------
 
2063
---  strcmp(col1,'acb')  in partition with coltype  int
 
2064
-------------------------------------------------------------------------
 
2065
must all fail!
 
2066
drop table if exists t1 ;
 
2067
drop table if exists t2 ;
 
2068
drop table if exists t3 ;
 
2069
drop table if exists t4 ;
 
2070
drop table if exists t5 ;
 
2071
drop table if exists t6 ;
 
2072
create table t1 (col1 int) engine='INNODB' 
 
2073
partition by range(strcmp(col1,'acb')) 
 
2074
(partition p0 values less than (15),
 
2075
partition p1 values less than (31));
 
2076
Got one of the listed errors
 
2077
create table t2 (col1 int) engine='INNODB' 
 
2078
partition by list(strcmp(col1,'acb')) 
 
2079
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2080
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2081
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2082
Got one of the listed errors
 
2083
create table t3 (col1 int) engine='INNODB' 
 
2084
partition by hash(strcmp(col1,'acb'));
 
2085
Got one of the listed errors
 
2086
create table t4 (colint int, col1 int) engine='INNODB' 
 
2087
partition by range(colint) 
 
2088
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2089
(partition p0 values less than (15),
 
2090
partition p1 values less than (31));
 
2091
Got one of the listed errors
 
2092
create table t5 (colint int, col1 int) engine='INNODB' 
 
2093
partition by list(colint)
 
2094
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2095
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2096
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2097
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2098
Got one of the listed errors
 
2099
create table t6 (colint int, col1 int) engine='INNODB' 
 
2100
partition by range(colint) 
 
2101
(partition p0 values less than (strcmp('i','a,b,c,d,e,f,g,h,i')),
 
2102
partition p1 values less than maxvalue);
 
2103
Got one of the listed errors
 
2104
drop table if exists t11 ;
 
2105
drop table if exists t22 ;
 
2106
drop table if exists t33 ;
 
2107
drop table if exists t44 ;
 
2108
drop table if exists t55 ;
 
2109
drop table if exists t66 ;
 
2110
create table t11 (col1 int) engine='INNODB' ;
 
2111
create table t22 (col1 int) engine='INNODB' ;
 
2112
create table t33 (col1 int) engine='INNODB' ;
 
2113
create table t44 (colint int, col1 int) engine='INNODB' ;
 
2114
create table t55 (colint int, col1 int) engine='INNODB' ;
 
2115
create table t66 (colint int, col1 int) engine='INNODB' ;
 
2116
alter table t11  
 
2117
partition by range(strcmp(col1,'acb')) 
 
2118
(partition p0 values less than (15),
 
2119
partition p1 values less than (31));
 
2120
Got one of the listed errors
 
2121
alter table t22 
 
2122
partition by list(strcmp(col1,'acb')) 
 
2123
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2124
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2125
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2126
Got one of the listed errors
 
2127
alter table t33 
 
2128
partition by hash(strcmp(col1,'acb'));
 
2129
Got one of the listed errors
 
2130
alter table t44 
 
2131
partition by range(colint) 
 
2132
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2133
(partition p0 values less than (15),
 
2134
partition p1 values less than (31));
 
2135
Got one of the listed errors
 
2136
alter table t55 
 
2137
partition by list(colint)
 
2138
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2139
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2140
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2141
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2142
Got one of the listed errors
 
2143
alter table t66  
 
2144
partition by range(colint) 
 
2145
(partition p0 values less than (strcmp('i','a,b,c,d,e,f,g,h,i')),
 
2146
partition p1 values less than maxvalue);
 
2147
Got one of the listed errors
 
2148
drop table if exists t1 ;
 
2149
drop table if exists t2 ;
 
2150
drop table if exists t3 ;
 
2151
drop table if exists t4 ;
 
2152
drop table if exists t5 ;
 
2153
drop table if exists t6 ;
 
2154
drop table if exists t11 ;
 
2155
drop table if exists t22 ;
 
2156
drop table if exists t33 ;
 
2157
drop table if exists t44 ;
 
2158
drop table if exists t55 ;
 
2159
drop table if exists t66 ;
 
2160
-------------------------------------------------------------------------
 
2161
---  strcmp(col1,'acb')  in partition with coltype  char(30)
 
2162
-------------------------------------------------------------------------
 
2163
must all fail!
 
2164
drop table if exists t1 ;
 
2165
drop table if exists t2 ;
 
2166
drop table if exists t3 ;
 
2167
drop table if exists t4 ;
 
2168
drop table if exists t5 ;
 
2169
drop table if exists t6 ;
 
2170
create table t1 (col1 char(30)) engine='INNODB' 
 
2171
partition by range(strcmp(col1,'acb')) 
 
2172
(partition p0 values less than (15),
 
2173
partition p1 values less than (31));
 
2174
Got one of the listed errors
 
2175
create table t2 (col1 char(30)) engine='INNODB' 
 
2176
partition by list(strcmp(col1,'acb')) 
 
2177
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2178
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2179
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2180
Got one of the listed errors
 
2181
create table t3 (col1 char(30)) engine='INNODB' 
 
2182
partition by hash(strcmp(col1,'acb'));
 
2183
Got one of the listed errors
 
2184
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
2185
partition by range(colint) 
 
2186
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2187
(partition p0 values less than (15),
 
2188
partition p1 values less than (31));
 
2189
Got one of the listed errors
 
2190
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
2191
partition by list(colint)
 
2192
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2193
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2194
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2195
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2196
Got one of the listed errors
 
2197
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
2198
partition by range(colint) 
 
2199
(partition p0 values less than (strcmp('i','a,b,c,d,e,f,g,h,i')),
 
2200
partition p1 values less than maxvalue);
 
2201
Got one of the listed errors
 
2202
drop table if exists t11 ;
 
2203
drop table if exists t22 ;
 
2204
drop table if exists t33 ;
 
2205
drop table if exists t44 ;
 
2206
drop table if exists t55 ;
 
2207
drop table if exists t66 ;
 
2208
create table t11 (col1 char(30)) engine='INNODB' ;
 
2209
create table t22 (col1 char(30)) engine='INNODB' ;
 
2210
create table t33 (col1 char(30)) engine='INNODB' ;
 
2211
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
2212
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
2213
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
2214
alter table t11  
 
2215
partition by range(strcmp(col1,'acb')) 
 
2216
(partition p0 values less than (15),
 
2217
partition p1 values less than (31));
 
2218
Got one of the listed errors
 
2219
alter table t22 
 
2220
partition by list(strcmp(col1,'acb')) 
 
2221
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2222
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2223
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2224
Got one of the listed errors
 
2225
alter table t33 
 
2226
partition by hash(strcmp(col1,'acb'));
 
2227
Got one of the listed errors
 
2228
alter table t44 
 
2229
partition by range(colint) 
 
2230
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2231
(partition p0 values less than (15),
 
2232
partition p1 values less than (31));
 
2233
Got one of the listed errors
 
2234
alter table t55 
 
2235
partition by list(colint)
 
2236
subpartition by hash(strcmp(col1,'acb')) subpartitions 2 
 
2237
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2238
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2239
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2240
Got one of the listed errors
 
2241
alter table t66  
 
2242
partition by range(colint) 
 
2243
(partition p0 values less than (strcmp('i','a,b,c,d,e,f,g,h,i')),
 
2244
partition p1 values less than maxvalue);
 
2245
Got one of the listed errors
 
2246
drop table if exists t1 ;
 
2247
drop table if exists t2 ;
 
2248
drop table if exists t3 ;
 
2249
drop table if exists t4 ;
 
2250
drop table if exists t5 ;
 
2251
drop table if exists t6 ;
 
2252
drop table if exists t11 ;
 
2253
drop table if exists t22 ;
 
2254
drop table if exists t33 ;
 
2255
drop table if exists t44 ;
 
2256
drop table if exists t55 ;
 
2257
drop table if exists t66 ;
 
2258
-------------------------------------------------------------------------
 
2259
---  crc32(col1)  in partition with coltype  char(30)
 
2260
-------------------------------------------------------------------------
 
2261
must all fail!
 
2262
drop table if exists t1 ;
 
2263
drop table if exists t2 ;
 
2264
drop table if exists t3 ;
 
2265
drop table if exists t4 ;
 
2266
drop table if exists t5 ;
 
2267
drop table if exists t6 ;
 
2268
create table t1 (col1 char(30)) engine='INNODB' 
 
2269
partition by range(crc32(col1)) 
 
2270
(partition p0 values less than (15),
 
2271
partition p1 values less than (31));
 
2272
Got one of the listed errors
 
2273
create table t2 (col1 char(30)) engine='INNODB' 
 
2274
partition by list(crc32(col1)) 
 
2275
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2276
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2277
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2278
Got one of the listed errors
 
2279
create table t3 (col1 char(30)) engine='INNODB' 
 
2280
partition by hash(crc32(col1));
 
2281
Got one of the listed errors
 
2282
create table t4 (colint int, col1 char(30)) engine='INNODB' 
 
2283
partition by range(colint) 
 
2284
subpartition by hash(crc32(col1)) subpartitions 2 
 
2285
(partition p0 values less than (15),
 
2286
partition p1 values less than (31));
 
2287
Got one of the listed errors
 
2288
create table t5 (colint int, col1 char(30)) engine='INNODB' 
 
2289
partition by list(colint)
 
2290
subpartition by hash(crc32(col1)) subpartitions 2 
 
2291
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2292
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2293
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2294
Got one of the listed errors
 
2295
create table t6 (colint int, col1 char(30)) engine='INNODB' 
 
2296
partition by range(colint) 
 
2297
(partition p0 values less than (crc32('a,b,c,d,e,f,g,h,i')),
 
2298
partition p1 values less than maxvalue);
 
2299
Got one of the listed errors
 
2300
drop table if exists t11 ;
 
2301
drop table if exists t22 ;
 
2302
drop table if exists t33 ;
 
2303
drop table if exists t44 ;
 
2304
drop table if exists t55 ;
 
2305
drop table if exists t66 ;
 
2306
create table t11 (col1 char(30)) engine='INNODB' ;
 
2307
create table t22 (col1 char(30)) engine='INNODB' ;
 
2308
create table t33 (col1 char(30)) engine='INNODB' ;
 
2309
create table t44 (colint int, col1 char(30)) engine='INNODB' ;
 
2310
create table t55 (colint int, col1 char(30)) engine='INNODB' ;
 
2311
create table t66 (colint int, col1 char(30)) engine='INNODB' ;
 
2312
alter table t11  
 
2313
partition by range(crc32(col1)) 
 
2314
(partition p0 values less than (15),
 
2315
partition p1 values less than (31));
 
2316
Got one of the listed errors
 
2317
alter table t22 
 
2318
partition by list(crc32(col1)) 
 
2319
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2320
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2321
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2322
Got one of the listed errors
 
2323
alter table t33 
 
2324
partition by hash(crc32(col1));
 
2325
Got one of the listed errors
 
2326
alter table t44 
 
2327
partition by range(colint) 
 
2328
subpartition by hash(crc32(col1)) subpartitions 2 
 
2329
(partition p0 values less than (15),
 
2330
partition p1 values less than (31));
 
2331
Got one of the listed errors
 
2332
alter table t55 
 
2333
partition by list(colint)
 
2334
subpartition by hash(crc32(col1)) subpartitions 2 
 
2335
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2336
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2337
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2338
Got one of the listed errors
 
2339
alter table t66  
 
2340
partition by range(colint) 
 
2341
(partition p0 values less than (crc32('a,b,c,d,e,f,g,h,i')),
 
2342
partition p1 values less than maxvalue);
 
2343
Got one of the listed errors
 
2344
drop table if exists t1 ;
 
2345
drop table if exists t2 ;
 
2346
drop table if exists t3 ;
 
2347
drop table if exists t4 ;
 
2348
drop table if exists t5 ;
 
2349
drop table if exists t6 ;
 
2350
drop table if exists t11 ;
 
2351
drop table if exists t22 ;
 
2352
drop table if exists t33 ;
 
2353
drop table if exists t44 ;
 
2354
drop table if exists t55 ;
 
2355
drop table if exists t66 ;
 
2356
-------------------------------------------------------------------------
 
2357
---  round(col1)  in partition with coltype  int
 
2358
-------------------------------------------------------------------------
 
2359
must all fail!
 
2360
drop table if exists t1 ;
 
2361
drop table if exists t2 ;
 
2362
drop table if exists t3 ;
 
2363
drop table if exists t4 ;
 
2364
drop table if exists t5 ;
 
2365
drop table if exists t6 ;
 
2366
create table t1 (col1 int) engine='INNODB' 
 
2367
partition by range(round(col1)) 
 
2368
(partition p0 values less than (15),
 
2369
partition p1 values less than (31));
 
2370
Got one of the listed errors
 
2371
create table t2 (col1 int) engine='INNODB' 
 
2372
partition by list(round(col1)) 
 
2373
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2374
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2375
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2376
Got one of the listed errors
 
2377
create table t3 (col1 int) engine='INNODB' 
 
2378
partition by hash(round(col1));
 
2379
Got one of the listed errors
 
2380
create table t4 (colint int, col1 int) engine='INNODB' 
 
2381
partition by range(colint) 
 
2382
subpartition by hash(round(col1)) subpartitions 2 
 
2383
(partition p0 values less than (15),
 
2384
partition p1 values less than (31));
 
2385
Got one of the listed errors
 
2386
create table t5 (colint int, col1 int) engine='INNODB' 
 
2387
partition by list(colint)
 
2388
subpartition by hash(round(col1)) subpartitions 2 
 
2389
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2390
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2391
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2392
Got one of the listed errors
 
2393
create table t6 (colint int, col1 int) engine='INNODB' 
 
2394
partition by range(colint) 
 
2395
(partition p0 values less than (round(15)),
 
2396
partition p1 values less than maxvalue);
 
2397
Got one of the listed errors
 
2398
drop table if exists t11 ;
 
2399
drop table if exists t22 ;
 
2400
drop table if exists t33 ;
 
2401
drop table if exists t44 ;
 
2402
drop table if exists t55 ;
 
2403
drop table if exists t66 ;
 
2404
create table t11 (col1 int) engine='INNODB' ;
 
2405
create table t22 (col1 int) engine='INNODB' ;
 
2406
create table t33 (col1 int) engine='INNODB' ;
 
2407
create table t44 (colint int, col1 int) engine='INNODB' ;
 
2408
create table t55 (colint int, col1 int) engine='INNODB' ;
 
2409
create table t66 (colint int, col1 int) engine='INNODB' ;
 
2410
alter table t11  
 
2411
partition by range(round(col1)) 
 
2412
(partition p0 values less than (15),
 
2413
partition p1 values less than (31));
 
2414
Got one of the listed errors
 
2415
alter table t22 
 
2416
partition by list(round(col1)) 
 
2417
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2418
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2419
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2420
Got one of the listed errors
 
2421
alter table t33 
 
2422
partition by hash(round(col1));
 
2423
Got one of the listed errors
 
2424
alter table t44 
 
2425
partition by range(colint) 
 
2426
subpartition by hash(round(col1)) subpartitions 2 
 
2427
(partition p0 values less than (15),
 
2428
partition p1 values less than (31));
 
2429
Got one of the listed errors
 
2430
alter table t55 
 
2431
partition by list(colint)
 
2432
subpartition by hash(round(col1)) subpartitions 2 
 
2433
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2434
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2435
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2436
Got one of the listed errors
 
2437
alter table t66  
 
2438
partition by range(colint) 
 
2439
(partition p0 values less than (round(15)),
 
2440
partition p1 values less than maxvalue);
 
2441
Got one of the listed errors
 
2442
drop table if exists t1 ;
 
2443
drop table if exists t2 ;
 
2444
drop table if exists t3 ;
 
2445
drop table if exists t4 ;
 
2446
drop table if exists t5 ;
 
2447
drop table if exists t6 ;
 
2448
drop table if exists t11 ;
 
2449
drop table if exists t22 ;
 
2450
drop table if exists t33 ;
 
2451
drop table if exists t44 ;
 
2452
drop table if exists t55 ;
 
2453
drop table if exists t66 ;
 
2454
-------------------------------------------------------------------------
 
2455
---  sign(col1)  in partition with coltype  int
 
2456
-------------------------------------------------------------------------
 
2457
must all fail!
 
2458
drop table if exists t1 ;
 
2459
drop table if exists t2 ;
 
2460
drop table if exists t3 ;
 
2461
drop table if exists t4 ;
 
2462
drop table if exists t5 ;
 
2463
drop table if exists t6 ;
 
2464
create table t1 (col1 int) engine='INNODB' 
 
2465
partition by range(sign(col1)) 
 
2466
(partition p0 values less than (15),
 
2467
partition p1 values less than (31));
 
2468
Got one of the listed errors
 
2469
create table t2 (col1 int) engine='INNODB' 
 
2470
partition by list(sign(col1)) 
 
2471
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2472
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2473
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2474
Got one of the listed errors
 
2475
create table t3 (col1 int) engine='INNODB' 
 
2476
partition by hash(sign(col1));
 
2477
Got one of the listed errors
 
2478
create table t4 (colint int, col1 int) engine='INNODB' 
 
2479
partition by range(colint) 
 
2480
subpartition by hash(sign(col1)) subpartitions 2 
 
2481
(partition p0 values less than (15),
 
2482
partition p1 values less than (31));
 
2483
Got one of the listed errors
 
2484
create table t5 (colint int, col1 int) engine='INNODB' 
 
2485
partition by list(colint)
 
2486
subpartition by hash(sign(col1)) subpartitions 2 
 
2487
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2488
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2489
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2490
Got one of the listed errors
 
2491
create table t6 (colint int, col1 int) engine='INNODB' 
 
2492
partition by range(colint) 
 
2493
(partition p0 values less than (sign(123)),
 
2494
partition p1 values less than maxvalue);
 
2495
Got one of the listed errors
 
2496
drop table if exists t11 ;
 
2497
drop table if exists t22 ;
 
2498
drop table if exists t33 ;
 
2499
drop table if exists t44 ;
 
2500
drop table if exists t55 ;
 
2501
drop table if exists t66 ;
 
2502
create table t11 (col1 int) engine='INNODB' ;
 
2503
create table t22 (col1 int) engine='INNODB' ;
 
2504
create table t33 (col1 int) engine='INNODB' ;
 
2505
create table t44 (colint int, col1 int) engine='INNODB' ;
 
2506
create table t55 (colint int, col1 int) engine='INNODB' ;
 
2507
create table t66 (colint int, col1 int) engine='INNODB' ;
 
2508
alter table t11  
 
2509
partition by range(sign(col1)) 
 
2510
(partition p0 values less than (15),
 
2511
partition p1 values less than (31));
 
2512
Got one of the listed errors
 
2513
alter table t22 
 
2514
partition by list(sign(col1)) 
 
2515
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2516
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2517
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2518
Got one of the listed errors
 
2519
alter table t33 
 
2520
partition by hash(sign(col1));
 
2521
Got one of the listed errors
 
2522
alter table t44 
 
2523
partition by range(colint) 
 
2524
subpartition by hash(sign(col1)) subpartitions 2 
 
2525
(partition p0 values less than (15),
 
2526
partition p1 values less than (31));
 
2527
Got one of the listed errors
 
2528
alter table t55 
 
2529
partition by list(colint)
 
2530
subpartition by hash(sign(col1)) subpartitions 2 
 
2531
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2532
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2533
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2534
Got one of the listed errors
 
2535
alter table t66  
 
2536
partition by range(colint) 
 
2537
(partition p0 values less than (sign(123)),
 
2538
partition p1 values less than maxvalue);
 
2539
Got one of the listed errors
 
2540
drop table if exists t1 ;
 
2541
drop table if exists t2 ;
 
2542
drop table if exists t3 ;
 
2543
drop table if exists t4 ;
 
2544
drop table if exists t5 ;
 
2545
drop table if exists t6 ;
 
2546
drop table if exists t11 ;
 
2547
drop table if exists t22 ;
 
2548
drop table if exists t33 ;
 
2549
drop table if exists t44 ;
 
2550
drop table if exists t55 ;
 
2551
drop table if exists t66 ;
 
2552
-------------------------------------------------------------------------
 
2553
---  period_add(col1,5)  in partition with coltype  datetime
 
2554
-------------------------------------------------------------------------
 
2555
must all fail!
 
2556
drop table if exists t1 ;
 
2557
drop table if exists t2 ;
 
2558
drop table if exists t3 ;
 
2559
drop table if exists t4 ;
 
2560
drop table if exists t5 ;
 
2561
drop table if exists t6 ;
 
2562
create table t1 (col1 datetime) engine='INNODB' 
 
2563
partition by range(period_add(col1,5)) 
 
2564
(partition p0 values less than (15),
 
2565
partition p1 values less than (31));
 
2566
Got one of the listed errors
 
2567
create table t2 (col1 datetime) engine='INNODB' 
 
2568
partition by list(period_add(col1,5)) 
 
2569
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2570
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2571
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2572
Got one of the listed errors
 
2573
create table t3 (col1 datetime) engine='INNODB' 
 
2574
partition by hash(period_add(col1,5));
 
2575
Got one of the listed errors
 
2576
create table t4 (colint int, col1 datetime) engine='INNODB' 
 
2577
partition by range(colint) 
 
2578
subpartition by hash(period_add(col1,5)) subpartitions 2 
 
2579
(partition p0 values less than (15),
 
2580
partition p1 values less than (31));
 
2581
Got one of the listed errors
 
2582
create table t5 (colint int, col1 datetime) engine='INNODB' 
 
2583
partition by list(colint)
 
2584
subpartition by hash(period_add(col1,5)) subpartitions 2 
 
2585
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2586
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2587
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2588
Got one of the listed errors
 
2589
create table t6 (colint int, col1 datetime) engine='INNODB' 
 
2590
partition by range(colint) 
 
2591
(partition p0 values less than (period_add(9804,5)),
 
2592
partition p1 values less than maxvalue);
 
2593
Got one of the listed errors
 
2594
drop table if exists t11 ;
 
2595
drop table if exists t22 ;
 
2596
drop table if exists t33 ;
 
2597
drop table if exists t44 ;
 
2598
drop table if exists t55 ;
 
2599
drop table if exists t66 ;
 
2600
create table t11 (col1 datetime) engine='INNODB' ;
 
2601
create table t22 (col1 datetime) engine='INNODB' ;
 
2602
create table t33 (col1 datetime) engine='INNODB' ;
 
2603
create table t44 (colint int, col1 datetime) engine='INNODB' ;
 
2604
create table t55 (colint int, col1 datetime) engine='INNODB' ;
 
2605
create table t66 (colint int, col1 datetime) engine='INNODB' ;
 
2606
alter table t11  
 
2607
partition by range(period_add(col1,5)) 
 
2608
(partition p0 values less than (15),
 
2609
partition p1 values less than (31));
 
2610
Got one of the listed errors
 
2611
alter table t22 
 
2612
partition by list(period_add(col1,5)) 
 
2613
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2614
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2615
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2616
Got one of the listed errors
 
2617
alter table t33 
 
2618
partition by hash(period_add(col1,5));
 
2619
Got one of the listed errors
 
2620
alter table t44 
 
2621
partition by range(colint) 
 
2622
subpartition by hash(period_add(col1,5)) subpartitions 2 
 
2623
(partition p0 values less than (15),
 
2624
partition p1 values less than (31));
 
2625
Got one of the listed errors
 
2626
alter table t55 
 
2627
partition by list(colint)
 
2628
subpartition by hash(period_add(col1,5)) subpartitions 2 
 
2629
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2630
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2631
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2632
Got one of the listed errors
 
2633
alter table t66  
 
2634
partition by range(colint) 
 
2635
(partition p0 values less than (period_add(9804,5)),
 
2636
partition p1 values less than maxvalue);
 
2637
Got one of the listed errors
 
2638
drop table if exists t1 ;
 
2639
drop table if exists t2 ;
 
2640
drop table if exists t3 ;
 
2641
drop table if exists t4 ;
 
2642
drop table if exists t5 ;
 
2643
drop table if exists t6 ;
 
2644
drop table if exists t11 ;
 
2645
drop table if exists t22 ;
 
2646
drop table if exists t33 ;
 
2647
drop table if exists t44 ;
 
2648
drop table if exists t55 ;
 
2649
drop table if exists t66 ;
 
2650
-------------------------------------------------------------------------
 
2651
---  period_diff(col1,col2)  in partition with coltype  datetime,col2 datetime
 
2652
-------------------------------------------------------------------------
 
2653
must all fail!
 
2654
drop table if exists t1 ;
 
2655
drop table if exists t2 ;
 
2656
drop table if exists t3 ;
 
2657
drop table if exists t4 ;
 
2658
drop table if exists t5 ;
 
2659
drop table if exists t6 ;
 
2660
create table t1 (col1 datetime,col2 datetime) engine='INNODB' 
 
2661
partition by range(period_diff(col1,col2)) 
 
2662
(partition p0 values less than (15),
 
2663
partition p1 values less than (31));
 
2664
Got one of the listed errors
 
2665
create table t2 (col1 datetime,col2 datetime) engine='INNODB' 
 
2666
partition by list(period_diff(col1,col2)) 
 
2667
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2668
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2669
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2670
Got one of the listed errors
 
2671
create table t3 (col1 datetime,col2 datetime) engine='INNODB' 
 
2672
partition by hash(period_diff(col1,col2));
 
2673
Got one of the listed errors
 
2674
create table t4 (colint int, col1 datetime,col2 datetime) engine='INNODB' 
 
2675
partition by range(colint) 
 
2676
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2677
(partition p0 values less than (15),
 
2678
partition p1 values less than (31));
 
2679
Got one of the listed errors
 
2680
create table t5 (colint int, col1 datetime,col2 datetime) engine='INNODB' 
 
2681
partition by list(colint)
 
2682
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2683
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2684
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2685
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2686
Got one of the listed errors
 
2687
create table t6 (colint int, col1 datetime,col2 datetime) engine='INNODB' 
 
2688
partition by range(colint) 
 
2689
(partition p0 values less than (period_diff(9809,199907)),
 
2690
partition p1 values less than maxvalue);
 
2691
Got one of the listed errors
 
2692
drop table if exists t11 ;
 
2693
drop table if exists t22 ;
 
2694
drop table if exists t33 ;
 
2695
drop table if exists t44 ;
 
2696
drop table if exists t55 ;
 
2697
drop table if exists t66 ;
 
2698
create table t11 (col1 datetime,col2 datetime) engine='INNODB' ;
 
2699
create table t22 (col1 datetime,col2 datetime) engine='INNODB' ;
 
2700
create table t33 (col1 datetime,col2 datetime) engine='INNODB' ;
 
2701
create table t44 (colint int, col1 datetime,col2 datetime) engine='INNODB' ;
 
2702
create table t55 (colint int, col1 datetime,col2 datetime) engine='INNODB' ;
 
2703
create table t66 (colint int, col1 datetime,col2 datetime) engine='INNODB' ;
 
2704
alter table t11  
 
2705
partition by range(period_diff(col1,col2)) 
 
2706
(partition p0 values less than (15),
 
2707
partition p1 values less than (31));
 
2708
Got one of the listed errors
 
2709
alter table t22 
 
2710
partition by list(period_diff(col1,col2)) 
 
2711
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2712
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2713
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2714
Got one of the listed errors
 
2715
alter table t33 
 
2716
partition by hash(period_diff(col1,col2));
 
2717
Got one of the listed errors
 
2718
alter table t44 
 
2719
partition by range(colint) 
 
2720
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2721
(partition p0 values less than (15),
 
2722
partition p1 values less than (31));
 
2723
Got one of the listed errors
 
2724
alter table t55 
 
2725
partition by list(colint)
 
2726
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2727
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2728
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2729
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2730
Got one of the listed errors
 
2731
alter table t66  
 
2732
partition by range(colint) 
 
2733
(partition p0 values less than (period_diff(9809,199907)),
 
2734
partition p1 values less than maxvalue);
 
2735
Got one of the listed errors
 
2736
drop table if exists t1 ;
 
2737
drop table if exists t2 ;
 
2738
drop table if exists t3 ;
 
2739
drop table if exists t4 ;
 
2740
drop table if exists t5 ;
 
2741
drop table if exists t6 ;
 
2742
drop table if exists t11 ;
 
2743
drop table if exists t22 ;
 
2744
drop table if exists t33 ;
 
2745
drop table if exists t44 ;
 
2746
drop table if exists t55 ;
 
2747
drop table if exists t66 ;
 
2748
-------------------------------------------------------------------------
 
2749
---  period_diff(col1,col2)  in partition with coltype  int,col2 int
 
2750
-------------------------------------------------------------------------
 
2751
must all fail!
 
2752
drop table if exists t1 ;
 
2753
drop table if exists t2 ;
 
2754
drop table if exists t3 ;
 
2755
drop table if exists t4 ;
 
2756
drop table if exists t5 ;
 
2757
drop table if exists t6 ;
 
2758
create table t1 (col1 int,col2 int) engine='INNODB' 
 
2759
partition by range(period_diff(col1,col2)) 
 
2760
(partition p0 values less than (15),
 
2761
partition p1 values less than (31));
 
2762
Got one of the listed errors
 
2763
create table t2 (col1 int,col2 int) engine='INNODB' 
 
2764
partition by list(period_diff(col1,col2)) 
 
2765
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2766
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2767
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2768
Got one of the listed errors
 
2769
create table t3 (col1 int,col2 int) engine='INNODB' 
 
2770
partition by hash(period_diff(col1,col2));
 
2771
Got one of the listed errors
 
2772
create table t4 (colint int, col1 int,col2 int) engine='INNODB' 
 
2773
partition by range(colint) 
 
2774
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2775
(partition p0 values less than (15),
 
2776
partition p1 values less than (31));
 
2777
Got one of the listed errors
 
2778
create table t5 (colint int, col1 int,col2 int) engine='INNODB' 
 
2779
partition by list(colint)
 
2780
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2781
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2782
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2783
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2784
Got one of the listed errors
 
2785
create table t6 (colint int, col1 int,col2 int) engine='INNODB' 
 
2786
partition by range(colint) 
 
2787
(partition p0 values less than (period_diff(9809,199907)),
 
2788
partition p1 values less than maxvalue);
 
2789
Got one of the listed errors
 
2790
drop table if exists t11 ;
 
2791
drop table if exists t22 ;
 
2792
drop table if exists t33 ;
 
2793
drop table if exists t44 ;
 
2794
drop table if exists t55 ;
 
2795
drop table if exists t66 ;
 
2796
create table t11 (col1 int,col2 int) engine='INNODB' ;
 
2797
create table t22 (col1 int,col2 int) engine='INNODB' ;
 
2798
create table t33 (col1 int,col2 int) engine='INNODB' ;
 
2799
create table t44 (colint int, col1 int,col2 int) engine='INNODB' ;
 
2800
create table t55 (colint int, col1 int,col2 int) engine='INNODB' ;
 
2801
create table t66 (colint int, col1 int,col2 int) engine='INNODB' ;
 
2802
alter table t11  
 
2803
partition by range(period_diff(col1,col2)) 
 
2804
(partition p0 values less than (15),
 
2805
partition p1 values less than (31));
 
2806
Got one of the listed errors
 
2807
alter table t22 
 
2808
partition by list(period_diff(col1,col2)) 
 
2809
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2810
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2811
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2812
Got one of the listed errors
 
2813
alter table t33 
 
2814
partition by hash(period_diff(col1,col2));
 
2815
Got one of the listed errors
 
2816
alter table t44 
 
2817
partition by range(colint) 
 
2818
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2819
(partition p0 values less than (15),
 
2820
partition p1 values less than (31));
 
2821
Got one of the listed errors
 
2822
alter table t55 
 
2823
partition by list(colint)
 
2824
subpartition by hash(period_diff(col1,col2)) subpartitions 2 
 
2825
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2826
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2827
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2828
Got one of the listed errors
 
2829
alter table t66  
 
2830
partition by range(colint) 
 
2831
(partition p0 values less than (period_diff(9809,199907)),
 
2832
partition p1 values less than maxvalue);
 
2833
Got one of the listed errors
 
2834
drop table if exists t1 ;
 
2835
drop table if exists t2 ;
 
2836
drop table if exists t3 ;
 
2837
drop table if exists t4 ;
 
2838
drop table if exists t5 ;
 
2839
drop table if exists t6 ;
 
2840
drop table if exists t11 ;
 
2841
drop table if exists t22 ;
 
2842
drop table if exists t33 ;
 
2843
drop table if exists t44 ;
 
2844
drop table if exists t55 ;
 
2845
drop table if exists t66 ;
 
2846
-------------------------------------------------------------------------
 
2847
---  timestampdiff(day,5,col1)  in partition with coltype  datetime
 
2848
-------------------------------------------------------------------------
 
2849
must all fail!
 
2850
drop table if exists t1 ;
 
2851
drop table if exists t2 ;
 
2852
drop table if exists t3 ;
 
2853
drop table if exists t4 ;
 
2854
drop table if exists t5 ;
 
2855
drop table if exists t6 ;
 
2856
create table t1 (col1 datetime) engine='INNODB' 
 
2857
partition by range(timestampdiff(day,5,col1)) 
 
2858
(partition p0 values less than (15),
 
2859
partition p1 values less than (31));
 
2860
Got one of the listed errors
 
2861
create table t2 (col1 datetime) engine='INNODB' 
 
2862
partition by list(timestampdiff(day,5,col1)) 
 
2863
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2864
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2865
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2866
Got one of the listed errors
 
2867
create table t3 (col1 datetime) engine='INNODB' 
 
2868
partition by hash(timestampdiff(day,5,col1));
 
2869
Got one of the listed errors
 
2870
create table t4 (colint int, col1 datetime) engine='INNODB' 
 
2871
partition by range(colint) 
 
2872
subpartition by hash(timestampdiff(day,5,col1)) subpartitions 2 
 
2873
(partition p0 values less than (15),
 
2874
partition p1 values less than (31));
 
2875
Got one of the listed errors
 
2876
create table t5 (colint int, col1 datetime) engine='INNODB' 
 
2877
partition by list(colint)
 
2878
subpartition by hash(timestampdiff(day,5,col1)) subpartitions 2 
 
2879
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2880
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2881
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2882
Got one of the listed errors
 
2883
create table t6 (colint int, col1 datetime) engine='INNODB' 
 
2884
partition by range(colint) 
 
2885
(partition p0 values less than (timestampdiff(YEAR,'2002-05-01','2001-01-01')),
 
2886
partition p1 values less than maxvalue);
 
2887
Got one of the listed errors
 
2888
drop table if exists t11 ;
 
2889
drop table if exists t22 ;
 
2890
drop table if exists t33 ;
 
2891
drop table if exists t44 ;
 
2892
drop table if exists t55 ;
 
2893
drop table if exists t66 ;
 
2894
create table t11 (col1 datetime) engine='INNODB' ;
 
2895
create table t22 (col1 datetime) engine='INNODB' ;
 
2896
create table t33 (col1 datetime) engine='INNODB' ;
 
2897
create table t44 (colint int, col1 datetime) engine='INNODB' ;
 
2898
create table t55 (colint int, col1 datetime) engine='INNODB' ;
 
2899
create table t66 (colint int, col1 datetime) engine='INNODB' ;
 
2900
alter table t11  
 
2901
partition by range(timestampdiff(day,5,col1)) 
 
2902
(partition p0 values less than (15),
 
2903
partition p1 values less than (31));
 
2904
Got one of the listed errors
 
2905
alter table t22 
 
2906
partition by list(timestampdiff(day,5,col1)) 
 
2907
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2908
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2909
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2910
Got one of the listed errors
 
2911
alter table t33 
 
2912
partition by hash(timestampdiff(day,5,col1));
 
2913
Got one of the listed errors
 
2914
alter table t44 
 
2915
partition by range(colint) 
 
2916
subpartition by hash(timestampdiff(day,5,col1)) subpartitions 2 
 
2917
(partition p0 values less than (15),
 
2918
partition p1 values less than (31));
 
2919
Got one of the listed errors
 
2920
alter table t55 
 
2921
partition by list(colint)
 
2922
subpartition by hash(timestampdiff(day,5,col1)) subpartitions 2 
 
2923
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2924
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2925
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2926
Got one of the listed errors
 
2927
alter table t66  
 
2928
partition by range(colint) 
 
2929
(partition p0 values less than (timestampdiff(YEAR,'2002-05-01','2001-01-01')),
 
2930
partition p1 values less than maxvalue);
 
2931
Got one of the listed errors
 
2932
drop table if exists t1 ;
 
2933
drop table if exists t2 ;
 
2934
drop table if exists t3 ;
 
2935
drop table if exists t4 ;
 
2936
drop table if exists t5 ;
 
2937
drop table if exists t6 ;
 
2938
drop table if exists t11 ;
 
2939
drop table if exists t22 ;
 
2940
drop table if exists t33 ;
 
2941
drop table if exists t44 ;
 
2942
drop table if exists t55 ;
 
2943
drop table if exists t66 ;
 
2944
-------------------------------------------------------------------------
 
2945
---  unix_timestamp(col1)  in partition with coltype  date
 
2946
-------------------------------------------------------------------------
 
2947
must all fail!
 
2948
drop table if exists t1 ;
 
2949
drop table if exists t2 ;
 
2950
drop table if exists t3 ;
 
2951
drop table if exists t4 ;
 
2952
drop table if exists t5 ;
 
2953
drop table if exists t6 ;
 
2954
create table t1 (col1 date) engine='INNODB' 
 
2955
partition by range(unix_timestamp(col1)) 
 
2956
(partition p0 values less than (15),
 
2957
partition p1 values less than (31));
 
2958
Got one of the listed errors
 
2959
create table t2 (col1 date) engine='INNODB' 
 
2960
partition by list(unix_timestamp(col1)) 
 
2961
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2962
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2963
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2964
Got one of the listed errors
 
2965
create table t3 (col1 date) engine='INNODB' 
 
2966
partition by hash(unix_timestamp(col1));
 
2967
Got one of the listed errors
 
2968
create table t4 (colint int, col1 date) engine='INNODB' 
 
2969
partition by range(colint) 
 
2970
subpartition by hash(unix_timestamp(col1)) subpartitions 2 
 
2971
(partition p0 values less than (15),
 
2972
partition p1 values less than (31));
 
2973
Got one of the listed errors
 
2974
create table t5 (colint int, col1 date) engine='INNODB' 
 
2975
partition by list(colint)
 
2976
subpartition by hash(unix_timestamp(col1)) subpartitions 2 
 
2977
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
2978
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
2979
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
2980
Got one of the listed errors
 
2981
create table t6 (colint int, col1 date) engine='INNODB' 
 
2982
partition by range(colint) 
 
2983
(partition p0 values less than (unix_timestamp ('2002-05-01')),
 
2984
partition p1 values less than maxvalue);
 
2985
Got one of the listed errors
 
2986
drop table if exists t11 ;
 
2987
drop table if exists t22 ;
 
2988
drop table if exists t33 ;
 
2989
drop table if exists t44 ;
 
2990
drop table if exists t55 ;
 
2991
drop table if exists t66 ;
 
2992
create table t11 (col1 date) engine='INNODB' ;
 
2993
create table t22 (col1 date) engine='INNODB' ;
 
2994
create table t33 (col1 date) engine='INNODB' ;
 
2995
create table t44 (colint int, col1 date) engine='INNODB' ;
 
2996
create table t55 (colint int, col1 date) engine='INNODB' ;
 
2997
create table t66 (colint int, col1 date) engine='INNODB' ;
 
2998
alter table t11  
 
2999
partition by range(unix_timestamp(col1)) 
 
3000
(partition p0 values less than (15),
 
3001
partition p1 values less than (31));
 
3002
Got one of the listed errors
 
3003
alter table t22 
 
3004
partition by list(unix_timestamp(col1)) 
 
3005
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3006
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3007
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3008
Got one of the listed errors
 
3009
alter table t33 
 
3010
partition by hash(unix_timestamp(col1));
 
3011
Got one of the listed errors
 
3012
alter table t44 
 
3013
partition by range(colint) 
 
3014
subpartition by hash(unix_timestamp(col1)) subpartitions 2 
 
3015
(partition p0 values less than (15),
 
3016
partition p1 values less than (31));
 
3017
Got one of the listed errors
 
3018
alter table t55 
 
3019
partition by list(colint)
 
3020
subpartition by hash(unix_timestamp(col1)) subpartitions 2 
 
3021
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3022
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3023
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3024
Got one of the listed errors
 
3025
alter table t66  
 
3026
partition by range(colint) 
 
3027
(partition p0 values less than (unix_timestamp ('2002-05-01')),
 
3028
partition p1 values less than maxvalue);
 
3029
Got one of the listed errors
 
3030
drop table if exists t1 ;
 
3031
drop table if exists t2 ;
 
3032
drop table if exists t3 ;
 
3033
drop table if exists t4 ;
 
3034
drop table if exists t5 ;
 
3035
drop table if exists t6 ;
 
3036
drop table if exists t11 ;
 
3037
drop table if exists t22 ;
 
3038
drop table if exists t33 ;
 
3039
drop table if exists t44 ;
 
3040
drop table if exists t55 ;
 
3041
drop table if exists t66 ;
 
3042
-------------------------------------------------------------------------
 
3043
---  week(col1)  in partition with coltype  datetime
 
3044
-------------------------------------------------------------------------
 
3045
must all fail!
 
3046
drop table if exists t1 ;
 
3047
drop table if exists t2 ;
 
3048
drop table if exists t3 ;
 
3049
drop table if exists t4 ;
 
3050
drop table if exists t5 ;
 
3051
drop table if exists t6 ;
 
3052
create table t1 (col1 datetime) engine='INNODB' 
 
3053
partition by range(week(col1)) 
 
3054
(partition p0 values less than (15),
 
3055
partition p1 values less than (31));
 
3056
Got one of the listed errors
 
3057
create table t2 (col1 datetime) engine='INNODB' 
 
3058
partition by list(week(col1)) 
 
3059
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3060
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3061
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3062
Got one of the listed errors
 
3063
create table t3 (col1 datetime) engine='INNODB' 
 
3064
partition by hash(week(col1));
 
3065
Got one of the listed errors
 
3066
create table t4 (colint int, col1 datetime) engine='INNODB' 
 
3067
partition by range(colint) 
 
3068
subpartition by hash(week(col1)) subpartitions 2 
 
3069
(partition p0 values less than (15),
 
3070
partition p1 values less than (31));
 
3071
Got one of the listed errors
 
3072
create table t5 (colint int, col1 datetime) engine='INNODB' 
 
3073
partition by list(colint)
 
3074
subpartition by hash(week(col1)) subpartitions 2 
 
3075
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3076
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3077
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3078
Got one of the listed errors
 
3079
create table t6 (colint int, col1 datetime) engine='INNODB' 
 
3080
partition by range(colint) 
 
3081
(partition p0 values less than (week('2002-05-01')),
 
3082
partition p1 values less than maxvalue);
 
3083
Got one of the listed errors
 
3084
drop table if exists t11 ;
 
3085
drop table if exists t22 ;
 
3086
drop table if exists t33 ;
 
3087
drop table if exists t44 ;
 
3088
drop table if exists t55 ;
 
3089
drop table if exists t66 ;
 
3090
create table t11 (col1 datetime) engine='INNODB' ;
 
3091
create table t22 (col1 datetime) engine='INNODB' ;
 
3092
create table t33 (col1 datetime) engine='INNODB' ;
 
3093
create table t44 (colint int, col1 datetime) engine='INNODB' ;
 
3094
create table t55 (colint int, col1 datetime) engine='INNODB' ;
 
3095
create table t66 (colint int, col1 datetime) engine='INNODB' ;
 
3096
alter table t11  
 
3097
partition by range(week(col1)) 
 
3098
(partition p0 values less than (15),
 
3099
partition p1 values less than (31));
 
3100
Got one of the listed errors
 
3101
alter table t22 
 
3102
partition by list(week(col1)) 
 
3103
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3104
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3105
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3106
Got one of the listed errors
 
3107
alter table t33 
 
3108
partition by hash(week(col1));
 
3109
Got one of the listed errors
 
3110
alter table t44 
 
3111
partition by range(colint) 
 
3112
subpartition by hash(week(col1)) subpartitions 2 
 
3113
(partition p0 values less than (15),
 
3114
partition p1 values less than (31));
 
3115
Got one of the listed errors
 
3116
alter table t55 
 
3117
partition by list(colint)
 
3118
subpartition by hash(week(col1)) subpartitions 2 
 
3119
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3120
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3121
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3122
Got one of the listed errors
 
3123
alter table t66  
 
3124
partition by range(colint) 
 
3125
(partition p0 values less than (week('2002-05-01')),
 
3126
partition p1 values less than maxvalue);
 
3127
Got one of the listed errors
 
3128
drop table if exists t1 ;
 
3129
drop table if exists t2 ;
 
3130
drop table if exists t3 ;
 
3131
drop table if exists t4 ;
 
3132
drop table if exists t5 ;
 
3133
drop table if exists t6 ;
 
3134
drop table if exists t11 ;
 
3135
drop table if exists t22 ;
 
3136
drop table if exists t33 ;
 
3137
drop table if exists t44 ;
 
3138
drop table if exists t55 ;
 
3139
drop table if exists t66 ;
 
3140
-------------------------------------------------------------------------
 
3141
---  weekofyear(col1)  in partition with coltype  datetime
 
3142
-------------------------------------------------------------------------
 
3143
must all fail!
 
3144
drop table if exists t1 ;
 
3145
drop table if exists t2 ;
 
3146
drop table if exists t3 ;
 
3147
drop table if exists t4 ;
 
3148
drop table if exists t5 ;
 
3149
drop table if exists t6 ;
 
3150
create table t1 (col1 datetime) engine='INNODB' 
 
3151
partition by range(weekofyear(col1)) 
 
3152
(partition p0 values less than (15),
 
3153
partition p1 values less than (31));
 
3154
Got one of the listed errors
 
3155
create table t2 (col1 datetime) engine='INNODB' 
 
3156
partition by list(weekofyear(col1)) 
 
3157
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3158
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3159
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3160
Got one of the listed errors
 
3161
create table t3 (col1 datetime) engine='INNODB' 
 
3162
partition by hash(weekofyear(col1));
 
3163
Got one of the listed errors
 
3164
create table t4 (colint int, col1 datetime) engine='INNODB' 
 
3165
partition by range(colint) 
 
3166
subpartition by hash(weekofyear(col1)) subpartitions 2 
 
3167
(partition p0 values less than (15),
 
3168
partition p1 values less than (31));
 
3169
Got one of the listed errors
 
3170
create table t5 (colint int, col1 datetime) engine='INNODB' 
 
3171
partition by list(colint)
 
3172
subpartition by hash(weekofyear(col1)) subpartitions 2 
 
3173
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3174
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3175
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3176
Got one of the listed errors
 
3177
create table t6 (colint int, col1 datetime) engine='INNODB' 
 
3178
partition by range(colint) 
 
3179
(partition p0 values less than (weekofyear('2002-05-01')),
 
3180
partition p1 values less than maxvalue);
 
3181
Got one of the listed errors
 
3182
drop table if exists t11 ;
 
3183
drop table if exists t22 ;
 
3184
drop table if exists t33 ;
 
3185
drop table if exists t44 ;
 
3186
drop table if exists t55 ;
 
3187
drop table if exists t66 ;
 
3188
create table t11 (col1 datetime) engine='INNODB' ;
 
3189
create table t22 (col1 datetime) engine='INNODB' ;
 
3190
create table t33 (col1 datetime) engine='INNODB' ;
 
3191
create table t44 (colint int, col1 datetime) engine='INNODB' ;
 
3192
create table t55 (colint int, col1 datetime) engine='INNODB' ;
 
3193
create table t66 (colint int, col1 datetime) engine='INNODB' ;
 
3194
alter table t11  
 
3195
partition by range(weekofyear(col1)) 
 
3196
(partition p0 values less than (15),
 
3197
partition p1 values less than (31));
 
3198
Got one of the listed errors
 
3199
alter table t22 
 
3200
partition by list(weekofyear(col1)) 
 
3201
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3202
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3203
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3204
Got one of the listed errors
 
3205
alter table t33 
 
3206
partition by hash(weekofyear(col1));
 
3207
Got one of the listed errors
 
3208
alter table t44 
 
3209
partition by range(colint) 
 
3210
subpartition by hash(weekofyear(col1)) subpartitions 2 
 
3211
(partition p0 values less than (15),
 
3212
partition p1 values less than (31));
 
3213
Got one of the listed errors
 
3214
alter table t55 
 
3215
partition by list(colint)
 
3216
subpartition by hash(weekofyear(col1)) subpartitions 2 
 
3217
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3218
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3219
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3220
Got one of the listed errors
 
3221
alter table t66  
 
3222
partition by range(colint) 
 
3223
(partition p0 values less than (weekofyear('2002-05-01')),
 
3224
partition p1 values less than maxvalue);
 
3225
Got one of the listed errors
 
3226
drop table if exists t1 ;
 
3227
drop table if exists t2 ;
 
3228
drop table if exists t3 ;
 
3229
drop table if exists t4 ;
 
3230
drop table if exists t5 ;
 
3231
drop table if exists t6 ;
 
3232
drop table if exists t11 ;
 
3233
drop table if exists t22 ;
 
3234
drop table if exists t33 ;
 
3235
drop table if exists t44 ;
 
3236
drop table if exists t55 ;
 
3237
drop table if exists t66 ;
 
3238
-------------------------------------------------------------------------
 
3239
---  cast(col1 as signed)  in partition with coltype  varchar(30)
 
3240
-------------------------------------------------------------------------
 
3241
must all fail!
 
3242
drop table if exists t1 ;
 
3243
drop table if exists t2 ;
 
3244
drop table if exists t3 ;
 
3245
drop table if exists t4 ;
 
3246
drop table if exists t5 ;
 
3247
drop table if exists t6 ;
 
3248
create table t1 (col1 varchar(30)) engine='INNODB' 
 
3249
partition by range(cast(col1 as signed)) 
 
3250
(partition p0 values less than (15),
 
3251
partition p1 values less than (31));
 
3252
Got one of the listed errors
 
3253
create table t2 (col1 varchar(30)) engine='INNODB' 
 
3254
partition by list(cast(col1 as signed)) 
 
3255
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3256
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3257
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3258
Got one of the listed errors
 
3259
create table t3 (col1 varchar(30)) engine='INNODB' 
 
3260
partition by hash(cast(col1 as signed));
 
3261
Got one of the listed errors
 
3262
create table t4 (colint int, col1 varchar(30)) engine='INNODB' 
 
3263
partition by range(colint) 
 
3264
subpartition by hash(cast(col1 as signed)) subpartitions 2 
 
3265
(partition p0 values less than (15),
 
3266
partition p1 values less than (31));
 
3267
Got one of the listed errors
 
3268
create table t5 (colint int, col1 varchar(30)) engine='INNODB' 
 
3269
partition by list(colint)
 
3270
subpartition by hash(cast(col1 as signed)) subpartitions 2 
 
3271
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3272
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3273
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3274
Got one of the listed errors
 
3275
create table t6 (colint int, col1 varchar(30)) engine='INNODB' 
 
3276
partition by range(colint) 
 
3277
(partition p0 values less than (cast(123 as signed)),
 
3278
partition p1 values less than maxvalue);
 
3279
Got one of the listed errors
 
3280
drop table if exists t11 ;
 
3281
drop table if exists t22 ;
 
3282
drop table if exists t33 ;
 
3283
drop table if exists t44 ;
 
3284
drop table if exists t55 ;
 
3285
drop table if exists t66 ;
 
3286
create table t11 (col1 varchar(30)) engine='INNODB' ;
 
3287
create table t22 (col1 varchar(30)) engine='INNODB' ;
 
3288
create table t33 (col1 varchar(30)) engine='INNODB' ;
 
3289
create table t44 (colint int, col1 varchar(30)) engine='INNODB' ;
 
3290
create table t55 (colint int, col1 varchar(30)) engine='INNODB' ;
 
3291
create table t66 (colint int, col1 varchar(30)) engine='INNODB' ;
 
3292
alter table t11  
 
3293
partition by range(cast(col1 as signed)) 
 
3294
(partition p0 values less than (15),
 
3295
partition p1 values less than (31));
 
3296
Got one of the listed errors
 
3297
alter table t22 
 
3298
partition by list(cast(col1 as signed)) 
 
3299
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3300
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3301
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3302
Got one of the listed errors
 
3303
alter table t33 
 
3304
partition by hash(cast(col1 as signed));
 
3305
Got one of the listed errors
 
3306
alter table t44 
 
3307
partition by range(colint) 
 
3308
subpartition by hash(cast(col1 as signed)) subpartitions 2 
 
3309
(partition p0 values less than (15),
 
3310
partition p1 values less than (31));
 
3311
Got one of the listed errors
 
3312
alter table t55 
 
3313
partition by list(colint)
 
3314
subpartition by hash(cast(col1 as signed)) subpartitions 2 
 
3315
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3316
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3317
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3318
Got one of the listed errors
 
3319
alter table t66  
 
3320
partition by range(colint) 
 
3321
(partition p0 values less than (cast(123 as signed)),
 
3322
partition p1 values less than maxvalue);
 
3323
Got one of the listed errors
 
3324
drop table if exists t1 ;
 
3325
drop table if exists t2 ;
 
3326
drop table if exists t3 ;
 
3327
drop table if exists t4 ;
 
3328
drop table if exists t5 ;
 
3329
drop table if exists t6 ;
 
3330
drop table if exists t11 ;
 
3331
drop table if exists t22 ;
 
3332
drop table if exists t33 ;
 
3333
drop table if exists t44 ;
 
3334
drop table if exists t55 ;
 
3335
drop table if exists t66 ;
 
3336
-------------------------------------------------------------------------
 
3337
---  convert(col1,unsigned)  in partition with coltype  varchar(30)
 
3338
-------------------------------------------------------------------------
 
3339
must all fail!
 
3340
drop table if exists t1 ;
 
3341
drop table if exists t2 ;
 
3342
drop table if exists t3 ;
 
3343
drop table if exists t4 ;
 
3344
drop table if exists t5 ;
 
3345
drop table if exists t6 ;
 
3346
create table t1 (col1 varchar(30)) engine='INNODB' 
 
3347
partition by range(convert(col1,unsigned)) 
 
3348
(partition p0 values less than (15),
 
3349
partition p1 values less than (31));
 
3350
Got one of the listed errors
 
3351
create table t2 (col1 varchar(30)) engine='INNODB' 
 
3352
partition by list(convert(col1,unsigned)) 
 
3353
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3354
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3355
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3356
Got one of the listed errors
 
3357
create table t3 (col1 varchar(30)) engine='INNODB' 
 
3358
partition by hash(convert(col1,unsigned));
 
3359
Got one of the listed errors
 
3360
create table t4 (colint int, col1 varchar(30)) engine='INNODB' 
 
3361
partition by range(colint) 
 
3362
subpartition by hash(convert(col1,unsigned)) subpartitions 2 
 
3363
(partition p0 values less than (15),
 
3364
partition p1 values less than (31));
 
3365
Got one of the listed errors
 
3366
create table t5 (colint int, col1 varchar(30)) engine='INNODB' 
 
3367
partition by list(colint)
 
3368
subpartition by hash(convert(col1,unsigned)) subpartitions 2 
 
3369
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3370
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3371
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3372
Got one of the listed errors
 
3373
create table t6 (colint int, col1 varchar(30)) engine='INNODB' 
 
3374
partition by range(colint) 
 
3375
(partition p0 values less than (convert(123,unsigned)),
 
3376
partition p1 values less than maxvalue);
 
3377
Got one of the listed errors
 
3378
drop table if exists t11 ;
 
3379
drop table if exists t22 ;
 
3380
drop table if exists t33 ;
 
3381
drop table if exists t44 ;
 
3382
drop table if exists t55 ;
 
3383
drop table if exists t66 ;
 
3384
create table t11 (col1 varchar(30)) engine='INNODB' ;
 
3385
create table t22 (col1 varchar(30)) engine='INNODB' ;
 
3386
create table t33 (col1 varchar(30)) engine='INNODB' ;
 
3387
create table t44 (colint int, col1 varchar(30)) engine='INNODB' ;
 
3388
create table t55 (colint int, col1 varchar(30)) engine='INNODB' ;
 
3389
create table t66 (colint int, col1 varchar(30)) engine='INNODB' ;
 
3390
alter table t11  
 
3391
partition by range(convert(col1,unsigned)) 
 
3392
(partition p0 values less than (15),
 
3393
partition p1 values less than (31));
 
3394
Got one of the listed errors
 
3395
alter table t22 
 
3396
partition by list(convert(col1,unsigned)) 
 
3397
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3398
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3399
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3400
Got one of the listed errors
 
3401
alter table t33 
 
3402
partition by hash(convert(col1,unsigned));
 
3403
Got one of the listed errors
 
3404
alter table t44 
 
3405
partition by range(colint) 
 
3406
subpartition by hash(convert(col1,unsigned)) subpartitions 2 
 
3407
(partition p0 values less than (15),
 
3408
partition p1 values less than (31));
 
3409
Got one of the listed errors
 
3410
alter table t55 
 
3411
partition by list(colint)
 
3412
subpartition by hash(convert(col1,unsigned)) subpartitions 2 
 
3413
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3414
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3415
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3416
Got one of the listed errors
 
3417
alter table t66  
 
3418
partition by range(colint) 
 
3419
(partition p0 values less than (convert(123,unsigned)),
 
3420
partition p1 values less than maxvalue);
 
3421
Got one of the listed errors
 
3422
drop table if exists t1 ;
 
3423
drop table if exists t2 ;
 
3424
drop table if exists t3 ;
 
3425
drop table if exists t4 ;
 
3426
drop table if exists t5 ;
 
3427
drop table if exists t6 ;
 
3428
drop table if exists t11 ;
 
3429
drop table if exists t22 ;
 
3430
drop table if exists t33 ;
 
3431
drop table if exists t44 ;
 
3432
drop table if exists t55 ;
 
3433
drop table if exists t66 ;
 
3434
-------------------------------------------------------------------------
 
3435
---  col1 | 20  in partition with coltype  int
 
3436
-------------------------------------------------------------------------
 
3437
must all fail!
 
3438
drop table if exists t1 ;
 
3439
drop table if exists t2 ;
 
3440
drop table if exists t3 ;
 
3441
drop table if exists t4 ;
 
3442
drop table if exists t5 ;
 
3443
drop table if exists t6 ;
 
3444
create table t1 (col1 int) engine='INNODB' 
 
3445
partition by range(col1 | 20) 
 
3446
(partition p0 values less than (15),
 
3447
partition p1 values less than (31));
 
3448
Got one of the listed errors
 
3449
create table t2 (col1 int) engine='INNODB' 
 
3450
partition by list(col1 | 20) 
 
3451
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3452
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3453
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3454
Got one of the listed errors
 
3455
create table t3 (col1 int) engine='INNODB' 
 
3456
partition by hash(col1 | 20);
 
3457
Got one of the listed errors
 
3458
create table t4 (colint int, col1 int) engine='INNODB' 
 
3459
partition by range(colint) 
 
3460
subpartition by hash(col1 | 20) subpartitions 2 
 
3461
(partition p0 values less than (15),
 
3462
partition p1 values less than (31));
 
3463
Got one of the listed errors
 
3464
create table t5 (colint int, col1 int) engine='INNODB' 
 
3465
partition by list(colint)
 
3466
subpartition by hash(col1 | 20) subpartitions 2 
 
3467
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3468
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3469
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3470
Got one of the listed errors
 
3471
create table t6 (colint int, col1 int) engine='INNODB' 
 
3472
partition by range(colint) 
 
3473
(partition p0 values less than (10 | 20),
 
3474
partition p1 values less than maxvalue);
 
3475
Got one of the listed errors
 
3476
drop table if exists t11 ;
 
3477
drop table if exists t22 ;
 
3478
drop table if exists t33 ;
 
3479
drop table if exists t44 ;
 
3480
drop table if exists t55 ;
 
3481
drop table if exists t66 ;
 
3482
create table t11 (col1 int) engine='INNODB' ;
 
3483
create table t22 (col1 int) engine='INNODB' ;
 
3484
create table t33 (col1 int) engine='INNODB' ;
 
3485
create table t44 (colint int, col1 int) engine='INNODB' ;
 
3486
create table t55 (colint int, col1 int) engine='INNODB' ;
 
3487
create table t66 (colint int, col1 int) engine='INNODB' ;
 
3488
alter table t11  
 
3489
partition by range(col1 | 20) 
 
3490
(partition p0 values less than (15),
 
3491
partition p1 values less than (31));
 
3492
Got one of the listed errors
 
3493
alter table t22 
 
3494
partition by list(col1 | 20) 
 
3495
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3496
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3497
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3498
Got one of the listed errors
 
3499
alter table t33 
 
3500
partition by hash(col1 | 20);
 
3501
Got one of the listed errors
 
3502
alter table t44 
 
3503
partition by range(colint) 
 
3504
subpartition by hash(col1 | 20) subpartitions 2 
 
3505
(partition p0 values less than (15),
 
3506
partition p1 values less than (31));
 
3507
Got one of the listed errors
 
3508
alter table t55 
 
3509
partition by list(colint)
 
3510
subpartition by hash(col1 | 20) subpartitions 2 
 
3511
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3512
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3513
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3514
Got one of the listed errors
 
3515
alter table t66  
 
3516
partition by range(colint) 
 
3517
(partition p0 values less than (10 | 20),
 
3518
partition p1 values less than maxvalue);
 
3519
Got one of the listed errors
 
3520
drop table if exists t1 ;
 
3521
drop table if exists t2 ;
 
3522
drop table if exists t3 ;
 
3523
drop table if exists t4 ;
 
3524
drop table if exists t5 ;
 
3525
drop table if exists t6 ;
 
3526
drop table if exists t11 ;
 
3527
drop table if exists t22 ;
 
3528
drop table if exists t33 ;
 
3529
drop table if exists t44 ;
 
3530
drop table if exists t55 ;
 
3531
drop table if exists t66 ;
 
3532
-------------------------------------------------------------------------
 
3533
---  col1 & 20  in partition with coltype  int
 
3534
-------------------------------------------------------------------------
 
3535
must all fail!
 
3536
drop table if exists t1 ;
 
3537
drop table if exists t2 ;
 
3538
drop table if exists t3 ;
 
3539
drop table if exists t4 ;
 
3540
drop table if exists t5 ;
 
3541
drop table if exists t6 ;
 
3542
create table t1 (col1 int) engine='INNODB' 
 
3543
partition by range(col1 & 20) 
 
3544
(partition p0 values less than (15),
 
3545
partition p1 values less than (31));
 
3546
Got one of the listed errors
 
3547
create table t2 (col1 int) engine='INNODB' 
 
3548
partition by list(col1 & 20) 
 
3549
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3550
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3551
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3552
Got one of the listed errors
 
3553
create table t3 (col1 int) engine='INNODB' 
 
3554
partition by hash(col1 & 20);
 
3555
Got one of the listed errors
 
3556
create table t4 (colint int, col1 int) engine='INNODB' 
 
3557
partition by range(colint) 
 
3558
subpartition by hash(col1 & 20) subpartitions 2 
 
3559
(partition p0 values less than (15),
 
3560
partition p1 values less than (31));
 
3561
Got one of the listed errors
 
3562
create table t5 (colint int, col1 int) engine='INNODB' 
 
3563
partition by list(colint)
 
3564
subpartition by hash(col1 & 20) subpartitions 2 
 
3565
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3566
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3567
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3568
Got one of the listed errors
 
3569
create table t6 (colint int, col1 int) engine='INNODB' 
 
3570
partition by range(colint) 
 
3571
(partition p0 values less than (10 & 20),
 
3572
partition p1 values less than maxvalue);
 
3573
Got one of the listed errors
 
3574
drop table if exists t11 ;
 
3575
drop table if exists t22 ;
 
3576
drop table if exists t33 ;
 
3577
drop table if exists t44 ;
 
3578
drop table if exists t55 ;
 
3579
drop table if exists t66 ;
 
3580
create table t11 (col1 int) engine='INNODB' ;
 
3581
create table t22 (col1 int) engine='INNODB' ;
 
3582
create table t33 (col1 int) engine='INNODB' ;
 
3583
create table t44 (colint int, col1 int) engine='INNODB' ;
 
3584
create table t55 (colint int, col1 int) engine='INNODB' ;
 
3585
create table t66 (colint int, col1 int) engine='INNODB' ;
 
3586
alter table t11  
 
3587
partition by range(col1 & 20) 
 
3588
(partition p0 values less than (15),
 
3589
partition p1 values less than (31));
 
3590
Got one of the listed errors
 
3591
alter table t22 
 
3592
partition by list(col1 & 20) 
 
3593
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3594
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3595
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3596
Got one of the listed errors
 
3597
alter table t33 
 
3598
partition by hash(col1 & 20);
 
3599
Got one of the listed errors
 
3600
alter table t44 
 
3601
partition by range(colint) 
 
3602
subpartition by hash(col1 & 20) subpartitions 2 
 
3603
(partition p0 values less than (15),
 
3604
partition p1 values less than (31));
 
3605
Got one of the listed errors
 
3606
alter table t55 
 
3607
partition by list(colint)
 
3608
subpartition by hash(col1 & 20) subpartitions 2 
 
3609
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3610
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3611
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3612
Got one of the listed errors
 
3613
alter table t66  
 
3614
partition by range(colint) 
 
3615
(partition p0 values less than (10 & 20),
 
3616
partition p1 values less than maxvalue);
 
3617
Got one of the listed errors
 
3618
drop table if exists t1 ;
 
3619
drop table if exists t2 ;
 
3620
drop table if exists t3 ;
 
3621
drop table if exists t4 ;
 
3622
drop table if exists t5 ;
 
3623
drop table if exists t6 ;
 
3624
drop table if exists t11 ;
 
3625
drop table if exists t22 ;
 
3626
drop table if exists t33 ;
 
3627
drop table if exists t44 ;
 
3628
drop table if exists t55 ;
 
3629
drop table if exists t66 ;
 
3630
-------------------------------------------------------------------------
 
3631
---  col1 ^ 20  in partition with coltype  int
 
3632
-------------------------------------------------------------------------
 
3633
must all fail!
 
3634
drop table if exists t1 ;
 
3635
drop table if exists t2 ;
 
3636
drop table if exists t3 ;
 
3637
drop table if exists t4 ;
 
3638
drop table if exists t5 ;
 
3639
drop table if exists t6 ;
 
3640
create table t1 (col1 int) engine='INNODB' 
 
3641
partition by range(col1 ^ 20) 
 
3642
(partition p0 values less than (15),
 
3643
partition p1 values less than (31));
 
3644
Got one of the listed errors
 
3645
create table t2 (col1 int) engine='INNODB' 
 
3646
partition by list(col1 ^ 20) 
 
3647
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3648
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3649
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3650
Got one of the listed errors
 
3651
create table t3 (col1 int) engine='INNODB' 
 
3652
partition by hash(col1 ^ 20);
 
3653
Got one of the listed errors
 
3654
create table t4 (colint int, col1 int) engine='INNODB' 
 
3655
partition by range(colint) 
 
3656
subpartition by hash(col1 ^ 20) subpartitions 2 
 
3657
(partition p0 values less than (15),
 
3658
partition p1 values less than (31));
 
3659
Got one of the listed errors
 
3660
create table t5 (colint int, col1 int) engine='INNODB' 
 
3661
partition by list(colint)
 
3662
subpartition by hash(col1 ^ 20) subpartitions 2 
 
3663
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3664
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3665
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3666
Got one of the listed errors
 
3667
create table t6 (colint int, col1 int) engine='INNODB' 
 
3668
partition by range(colint) 
 
3669
(partition p0 values less than (10 ^ 20),
 
3670
partition p1 values less than maxvalue);
 
3671
Got one of the listed errors
 
3672
drop table if exists t11 ;
 
3673
drop table if exists t22 ;
 
3674
drop table if exists t33 ;
 
3675
drop table if exists t44 ;
 
3676
drop table if exists t55 ;
 
3677
drop table if exists t66 ;
 
3678
create table t11 (col1 int) engine='INNODB' ;
 
3679
create table t22 (col1 int) engine='INNODB' ;
 
3680
create table t33 (col1 int) engine='INNODB' ;
 
3681
create table t44 (colint int, col1 int) engine='INNODB' ;
 
3682
create table t55 (colint int, col1 int) engine='INNODB' ;
 
3683
create table t66 (colint int, col1 int) engine='INNODB' ;
 
3684
alter table t11  
 
3685
partition by range(col1 ^ 20) 
 
3686
(partition p0 values less than (15),
 
3687
partition p1 values less than (31));
 
3688
Got one of the listed errors
 
3689
alter table t22 
 
3690
partition by list(col1 ^ 20) 
 
3691
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3692
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3693
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3694
Got one of the listed errors
 
3695
alter table t33 
 
3696
partition by hash(col1 ^ 20);
 
3697
Got one of the listed errors
 
3698
alter table t44 
 
3699
partition by range(colint) 
 
3700
subpartition by hash(col1 ^ 20) subpartitions 2 
 
3701
(partition p0 values less than (15),
 
3702
partition p1 values less than (31));
 
3703
Got one of the listed errors
 
3704
alter table t55 
 
3705
partition by list(colint)
 
3706
subpartition by hash(col1 ^ 20) subpartitions 2 
 
3707
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3708
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3709
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3710
Got one of the listed errors
 
3711
alter table t66  
 
3712
partition by range(colint) 
 
3713
(partition p0 values less than (10 ^ 20),
 
3714
partition p1 values less than maxvalue);
 
3715
Got one of the listed errors
 
3716
drop table if exists t1 ;
 
3717
drop table if exists t2 ;
 
3718
drop table if exists t3 ;
 
3719
drop table if exists t4 ;
 
3720
drop table if exists t5 ;
 
3721
drop table if exists t6 ;
 
3722
drop table if exists t11 ;
 
3723
drop table if exists t22 ;
 
3724
drop table if exists t33 ;
 
3725
drop table if exists t44 ;
 
3726
drop table if exists t55 ;
 
3727
drop table if exists t66 ;
 
3728
-------------------------------------------------------------------------
 
3729
---  col1 << 20  in partition with coltype  int
 
3730
-------------------------------------------------------------------------
 
3731
must all fail!
 
3732
drop table if exists t1 ;
 
3733
drop table if exists t2 ;
 
3734
drop table if exists t3 ;
 
3735
drop table if exists t4 ;
 
3736
drop table if exists t5 ;
 
3737
drop table if exists t6 ;
 
3738
create table t1 (col1 int) engine='INNODB' 
 
3739
partition by range(col1 << 20) 
 
3740
(partition p0 values less than (15),
 
3741
partition p1 values less than (31));
 
3742
Got one of the listed errors
 
3743
create table t2 (col1 int) engine='INNODB' 
 
3744
partition by list(col1 << 20) 
 
3745
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3746
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3747
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3748
Got one of the listed errors
 
3749
create table t3 (col1 int) engine='INNODB' 
 
3750
partition by hash(col1 << 20);
 
3751
Got one of the listed errors
 
3752
create table t4 (colint int, col1 int) engine='INNODB' 
 
3753
partition by range(colint) 
 
3754
subpartition by hash(col1 << 20) subpartitions 2 
 
3755
(partition p0 values less than (15),
 
3756
partition p1 values less than (31));
 
3757
Got one of the listed errors
 
3758
create table t5 (colint int, col1 int) engine='INNODB' 
 
3759
partition by list(colint)
 
3760
subpartition by hash(col1 << 20) subpartitions 2 
 
3761
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3762
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3763
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3764
Got one of the listed errors
 
3765
create table t6 (colint int, col1 int) engine='INNODB' 
 
3766
partition by range(colint) 
 
3767
(partition p0 values less than (10 << 20),
 
3768
partition p1 values less than maxvalue);
 
3769
Got one of the listed errors
 
3770
drop table if exists t11 ;
 
3771
drop table if exists t22 ;
 
3772
drop table if exists t33 ;
 
3773
drop table if exists t44 ;
 
3774
drop table if exists t55 ;
 
3775
drop table if exists t66 ;
 
3776
create table t11 (col1 int) engine='INNODB' ;
 
3777
create table t22 (col1 int) engine='INNODB' ;
 
3778
create table t33 (col1 int) engine='INNODB' ;
 
3779
create table t44 (colint int, col1 int) engine='INNODB' ;
 
3780
create table t55 (colint int, col1 int) engine='INNODB' ;
 
3781
create table t66 (colint int, col1 int) engine='INNODB' ;
 
3782
alter table t11  
 
3783
partition by range(col1 << 20) 
 
3784
(partition p0 values less than (15),
 
3785
partition p1 values less than (31));
 
3786
Got one of the listed errors
 
3787
alter table t22 
 
3788
partition by list(col1 << 20) 
 
3789
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3790
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3791
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3792
Got one of the listed errors
 
3793
alter table t33 
 
3794
partition by hash(col1 << 20);
 
3795
Got one of the listed errors
 
3796
alter table t44 
 
3797
partition by range(colint) 
 
3798
subpartition by hash(col1 << 20) subpartitions 2 
 
3799
(partition p0 values less than (15),
 
3800
partition p1 values less than (31));
 
3801
Got one of the listed errors
 
3802
alter table t55 
 
3803
partition by list(colint)
 
3804
subpartition by hash(col1 << 20) subpartitions 2 
 
3805
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3806
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3807
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3808
Got one of the listed errors
 
3809
alter table t66  
 
3810
partition by range(colint) 
 
3811
(partition p0 values less than (10 << 20),
 
3812
partition p1 values less than maxvalue);
 
3813
Got one of the listed errors
 
3814
drop table if exists t1 ;
 
3815
drop table if exists t2 ;
 
3816
drop table if exists t3 ;
 
3817
drop table if exists t4 ;
 
3818
drop table if exists t5 ;
 
3819
drop table if exists t6 ;
 
3820
drop table if exists t11 ;
 
3821
drop table if exists t22 ;
 
3822
drop table if exists t33 ;
 
3823
drop table if exists t44 ;
 
3824
drop table if exists t55 ;
 
3825
drop table if exists t66 ;
 
3826
-------------------------------------------------------------------------
 
3827
---  col1 >> 20  in partition with coltype  int
 
3828
-------------------------------------------------------------------------
 
3829
must all fail!
 
3830
drop table if exists t1 ;
 
3831
drop table if exists t2 ;
 
3832
drop table if exists t3 ;
 
3833
drop table if exists t4 ;
 
3834
drop table if exists t5 ;
 
3835
drop table if exists t6 ;
 
3836
create table t1 (col1 int) engine='INNODB' 
 
3837
partition by range(col1 >> 20) 
 
3838
(partition p0 values less than (15),
 
3839
partition p1 values less than (31));
 
3840
Got one of the listed errors
 
3841
create table t2 (col1 int) engine='INNODB' 
 
3842
partition by list(col1 >> 20) 
 
3843
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3844
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3845
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3846
Got one of the listed errors
 
3847
create table t3 (col1 int) engine='INNODB' 
 
3848
partition by hash(col1 >> 20);
 
3849
Got one of the listed errors
 
3850
create table t4 (colint int, col1 int) engine='INNODB' 
 
3851
partition by range(colint) 
 
3852
subpartition by hash(col1 >> 20) subpartitions 2 
 
3853
(partition p0 values less than (15),
 
3854
partition p1 values less than (31));
 
3855
Got one of the listed errors
 
3856
create table t5 (colint int, col1 int) engine='INNODB' 
 
3857
partition by list(colint)
 
3858
subpartition by hash(col1 >> 20) subpartitions 2 
 
3859
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3860
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3861
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3862
Got one of the listed errors
 
3863
create table t6 (colint int, col1 int) engine='INNODB' 
 
3864
partition by range(colint) 
 
3865
(partition p0 values less than (10 >> 20),
 
3866
partition p1 values less than maxvalue);
 
3867
Got one of the listed errors
 
3868
drop table if exists t11 ;
 
3869
drop table if exists t22 ;
 
3870
drop table if exists t33 ;
 
3871
drop table if exists t44 ;
 
3872
drop table if exists t55 ;
 
3873
drop table if exists t66 ;
 
3874
create table t11 (col1 int) engine='INNODB' ;
 
3875
create table t22 (col1 int) engine='INNODB' ;
 
3876
create table t33 (col1 int) engine='INNODB' ;
 
3877
create table t44 (colint int, col1 int) engine='INNODB' ;
 
3878
create table t55 (colint int, col1 int) engine='INNODB' ;
 
3879
create table t66 (colint int, col1 int) engine='INNODB' ;
 
3880
alter table t11  
 
3881
partition by range(col1 >> 20) 
 
3882
(partition p0 values less than (15),
 
3883
partition p1 values less than (31));
 
3884
Got one of the listed errors
 
3885
alter table t22 
 
3886
partition by list(col1 >> 20) 
 
3887
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3888
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3889
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3890
Got one of the listed errors
 
3891
alter table t33 
 
3892
partition by hash(col1 >> 20);
 
3893
Got one of the listed errors
 
3894
alter table t44 
 
3895
partition by range(colint) 
 
3896
subpartition by hash(col1 >> 20) subpartitions 2 
 
3897
(partition p0 values less than (15),
 
3898
partition p1 values less than (31));
 
3899
Got one of the listed errors
 
3900
alter table t55 
 
3901
partition by list(colint)
 
3902
subpartition by hash(col1 >> 20) subpartitions 2 
 
3903
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3904
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3905
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3906
Got one of the listed errors
 
3907
alter table t66  
 
3908
partition by range(colint) 
 
3909
(partition p0 values less than (10 >> 20),
 
3910
partition p1 values less than maxvalue);
 
3911
Got one of the listed errors
 
3912
drop table if exists t1 ;
 
3913
drop table if exists t2 ;
 
3914
drop table if exists t3 ;
 
3915
drop table if exists t4 ;
 
3916
drop table if exists t5 ;
 
3917
drop table if exists t6 ;
 
3918
drop table if exists t11 ;
 
3919
drop table if exists t22 ;
 
3920
drop table if exists t33 ;
 
3921
drop table if exists t44 ;
 
3922
drop table if exists t55 ;
 
3923
drop table if exists t66 ;
 
3924
-------------------------------------------------------------------------
 
3925
---  ~col1  in partition with coltype  int
 
3926
-------------------------------------------------------------------------
 
3927
must all fail!
 
3928
drop table if exists t1 ;
 
3929
drop table if exists t2 ;
 
3930
drop table if exists t3 ;
 
3931
drop table if exists t4 ;
 
3932
drop table if exists t5 ;
 
3933
drop table if exists t6 ;
 
3934
create table t1 (col1 int) engine='INNODB' 
 
3935
partition by range(~col1) 
 
3936
(partition p0 values less than (15),
 
3937
partition p1 values less than (31));
 
3938
Got one of the listed errors
 
3939
create table t2 (col1 int) engine='INNODB' 
 
3940
partition by list(~col1) 
 
3941
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3942
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3943
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3944
Got one of the listed errors
 
3945
create table t3 (col1 int) engine='INNODB' 
 
3946
partition by hash(~col1);
 
3947
Got one of the listed errors
 
3948
create table t4 (colint int, col1 int) engine='INNODB' 
 
3949
partition by range(colint) 
 
3950
subpartition by hash(~col1) subpartitions 2 
 
3951
(partition p0 values less than (15),
 
3952
partition p1 values less than (31));
 
3953
Got one of the listed errors
 
3954
create table t5 (colint int, col1 int) engine='INNODB' 
 
3955
partition by list(colint)
 
3956
subpartition by hash(~col1) subpartitions 2 
 
3957
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3958
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3959
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3960
Got one of the listed errors
 
3961
create table t6 (colint int, col1 int) engine='INNODB' 
 
3962
partition by range(colint) 
 
3963
(partition p0 values less than (~20),
 
3964
partition p1 values less than maxvalue);
 
3965
Got one of the listed errors
 
3966
drop table if exists t11 ;
 
3967
drop table if exists t22 ;
 
3968
drop table if exists t33 ;
 
3969
drop table if exists t44 ;
 
3970
drop table if exists t55 ;
 
3971
drop table if exists t66 ;
 
3972
create table t11 (col1 int) engine='INNODB' ;
 
3973
create table t22 (col1 int) engine='INNODB' ;
 
3974
create table t33 (col1 int) engine='INNODB' ;
 
3975
create table t44 (colint int, col1 int) engine='INNODB' ;
 
3976
create table t55 (colint int, col1 int) engine='INNODB' ;
 
3977
create table t66 (colint int, col1 int) engine='INNODB' ;
 
3978
alter table t11  
 
3979
partition by range(~col1) 
 
3980
(partition p0 values less than (15),
 
3981
partition p1 values less than (31));
 
3982
Got one of the listed errors
 
3983
alter table t22 
 
3984
partition by list(~col1) 
 
3985
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
3986
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
3987
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
3988
Got one of the listed errors
 
3989
alter table t33 
 
3990
partition by hash(~col1);
 
3991
Got one of the listed errors
 
3992
alter table t44 
 
3993
partition by range(colint) 
 
3994
subpartition by hash(~col1) subpartitions 2 
 
3995
(partition p0 values less than (15),
 
3996
partition p1 values less than (31));
 
3997
Got one of the listed errors
 
3998
alter table t55 
 
3999
partition by list(colint)
 
4000
subpartition by hash(~col1) subpartitions 2 
 
4001
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4002
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4003
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4004
Got one of the listed errors
 
4005
alter table t66  
 
4006
partition by range(colint) 
 
4007
(partition p0 values less than (~20),
 
4008
partition p1 values less than maxvalue);
 
4009
Got one of the listed errors
 
4010
drop table if exists t1 ;
 
4011
drop table if exists t2 ;
 
4012
drop table if exists t3 ;
 
4013
drop table if exists t4 ;
 
4014
drop table if exists t5 ;
 
4015
drop table if exists t6 ;
 
4016
drop table if exists t11 ;
 
4017
drop table if exists t22 ;
 
4018
drop table if exists t33 ;
 
4019
drop table if exists t44 ;
 
4020
drop table if exists t55 ;
 
4021
drop table if exists t66 ;
 
4022
-------------------------------------------------------------------------
 
4023
---  bit_count(col1)  in partition with coltype  int
 
4024
-------------------------------------------------------------------------
 
4025
must all fail!
 
4026
drop table if exists t1 ;
 
4027
drop table if exists t2 ;
 
4028
drop table if exists t3 ;
 
4029
drop table if exists t4 ;
 
4030
drop table if exists t5 ;
 
4031
drop table if exists t6 ;
 
4032
create table t1 (col1 int) engine='INNODB' 
 
4033
partition by range(bit_count(col1)) 
 
4034
(partition p0 values less than (15),
 
4035
partition p1 values less than (31));
 
4036
Got one of the listed errors
 
4037
create table t2 (col1 int) engine='INNODB' 
 
4038
partition by list(bit_count(col1)) 
 
4039
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4040
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4041
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4042
Got one of the listed errors
 
4043
create table t3 (col1 int) engine='INNODB' 
 
4044
partition by hash(bit_count(col1));
 
4045
Got one of the listed errors
 
4046
create table t4 (colint int, col1 int) engine='INNODB' 
 
4047
partition by range(colint) 
 
4048
subpartition by hash(bit_count(col1)) subpartitions 2 
 
4049
(partition p0 values less than (15),
 
4050
partition p1 values less than (31));
 
4051
Got one of the listed errors
 
4052
create table t5 (colint int, col1 int) engine='INNODB' 
 
4053
partition by list(colint)
 
4054
subpartition by hash(bit_count(col1)) subpartitions 2 
 
4055
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4056
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4057
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4058
Got one of the listed errors
 
4059
create table t6 (colint int, col1 int) engine='INNODB' 
 
4060
partition by range(colint) 
 
4061
(partition p0 values less than (bit_count(20)),
 
4062
partition p1 values less than maxvalue);
 
4063
Got one of the listed errors
 
4064
drop table if exists t11 ;
 
4065
drop table if exists t22 ;
 
4066
drop table if exists t33 ;
 
4067
drop table if exists t44 ;
 
4068
drop table if exists t55 ;
 
4069
drop table if exists t66 ;
 
4070
create table t11 (col1 int) engine='INNODB' ;
 
4071
create table t22 (col1 int) engine='INNODB' ;
 
4072
create table t33 (col1 int) engine='INNODB' ;
 
4073
create table t44 (colint int, col1 int) engine='INNODB' ;
 
4074
create table t55 (colint int, col1 int) engine='INNODB' ;
 
4075
create table t66 (colint int, col1 int) engine='INNODB' ;
 
4076
alter table t11  
 
4077
partition by range(bit_count(col1)) 
 
4078
(partition p0 values less than (15),
 
4079
partition p1 values less than (31));
 
4080
Got one of the listed errors
 
4081
alter table t22 
 
4082
partition by list(bit_count(col1)) 
 
4083
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4084
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4085
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4086
Got one of the listed errors
 
4087
alter table t33 
 
4088
partition by hash(bit_count(col1));
 
4089
Got one of the listed errors
 
4090
alter table t44 
 
4091
partition by range(colint) 
 
4092
subpartition by hash(bit_count(col1)) subpartitions 2 
 
4093
(partition p0 values less than (15),
 
4094
partition p1 values less than (31));
 
4095
Got one of the listed errors
 
4096
alter table t55 
 
4097
partition by list(colint)
 
4098
subpartition by hash(bit_count(col1)) subpartitions 2 
 
4099
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4100
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4101
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4102
Got one of the listed errors
 
4103
alter table t66  
 
4104
partition by range(colint) 
 
4105
(partition p0 values less than (bit_count(20)),
 
4106
partition p1 values less than maxvalue);
 
4107
Got one of the listed errors
 
4108
drop table if exists t1 ;
 
4109
drop table if exists t2 ;
 
4110
drop table if exists t3 ;
 
4111
drop table if exists t4 ;
 
4112
drop table if exists t5 ;
 
4113
drop table if exists t6 ;
 
4114
drop table if exists t11 ;
 
4115
drop table if exists t22 ;
 
4116
drop table if exists t33 ;
 
4117
drop table if exists t44 ;
 
4118
drop table if exists t55 ;
 
4119
drop table if exists t66 ;
 
4120
-------------------------------------------------------------------------
 
4121
---  inet_aton(col1)  in partition with coltype  int
 
4122
-------------------------------------------------------------------------
 
4123
must all fail!
 
4124
drop table if exists t1 ;
 
4125
drop table if exists t2 ;
 
4126
drop table if exists t3 ;
 
4127
drop table if exists t4 ;
 
4128
drop table if exists t5 ;
 
4129
drop table if exists t6 ;
 
4130
create table t1 (col1 int) engine='INNODB' 
 
4131
partition by range(inet_aton(col1)) 
 
4132
(partition p0 values less than (15),
 
4133
partition p1 values less than (31));
 
4134
Got one of the listed errors
 
4135
create table t2 (col1 int) engine='INNODB' 
 
4136
partition by list(inet_aton(col1)) 
 
4137
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4138
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4139
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4140
Got one of the listed errors
 
4141
create table t3 (col1 int) engine='INNODB' 
 
4142
partition by hash(inet_aton(col1));
 
4143
Got one of the listed errors
 
4144
create table t4 (colint int, col1 int) engine='INNODB' 
 
4145
partition by range(colint) 
 
4146
subpartition by hash(inet_aton(col1)) subpartitions 2 
 
4147
(partition p0 values less than (15),
 
4148
partition p1 values less than (31));
 
4149
Got one of the listed errors
 
4150
create table t5 (colint int, col1 int) engine='INNODB' 
 
4151
partition by list(colint)
 
4152
subpartition by hash(inet_aton(col1)) subpartitions 2 
 
4153
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4154
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4155
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4156
Got one of the listed errors
 
4157
create table t6 (colint int, col1 int) engine='INNODB' 
 
4158
partition by range(colint) 
 
4159
(partition p0 values less than (inet_aton('192.168.1.1')),
 
4160
partition p1 values less than maxvalue);
 
4161
Got one of the listed errors
 
4162
drop table if exists t11 ;
 
4163
drop table if exists t22 ;
 
4164
drop table if exists t33 ;
 
4165
drop table if exists t44 ;
 
4166
drop table if exists t55 ;
 
4167
drop table if exists t66 ;
 
4168
create table t11 (col1 int) engine='INNODB' ;
 
4169
create table t22 (col1 int) engine='INNODB' ;
 
4170
create table t33 (col1 int) engine='INNODB' ;
 
4171
create table t44 (colint int, col1 int) engine='INNODB' ;
 
4172
create table t55 (colint int, col1 int) engine='INNODB' ;
 
4173
create table t66 (colint int, col1 int) engine='INNODB' ;
 
4174
alter table t11  
 
4175
partition by range(inet_aton(col1)) 
 
4176
(partition p0 values less than (15),
 
4177
partition p1 values less than (31));
 
4178
Got one of the listed errors
 
4179
alter table t22 
 
4180
partition by list(inet_aton(col1)) 
 
4181
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4182
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4183
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4184
Got one of the listed errors
 
4185
alter table t33 
 
4186
partition by hash(inet_aton(col1));
 
4187
Got one of the listed errors
 
4188
alter table t44 
 
4189
partition by range(colint) 
 
4190
subpartition by hash(inet_aton(col1)) subpartitions 2 
 
4191
(partition p0 values less than (15),
 
4192
partition p1 values less than (31));
 
4193
Got one of the listed errors
 
4194
alter table t55 
 
4195
partition by list(colint)
 
4196
subpartition by hash(inet_aton(col1)) subpartitions 2 
 
4197
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4198
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4199
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4200
Got one of the listed errors
 
4201
alter table t66  
 
4202
partition by range(colint) 
 
4203
(partition p0 values less than (inet_aton('192.168.1.1')),
 
4204
partition p1 values less than maxvalue);
 
4205
Got one of the listed errors
 
4206
drop table if exists t1 ;
 
4207
drop table if exists t2 ;
 
4208
drop table if exists t3 ;
 
4209
drop table if exists t4 ;
 
4210
drop table if exists t5 ;
 
4211
drop table if exists t6 ;
 
4212
drop table if exists t11 ;
 
4213
drop table if exists t22 ;
 
4214
drop table if exists t33 ;
 
4215
drop table if exists t44 ;
 
4216
drop table if exists t55 ;
 
4217
drop table if exists t66 ;
 
4218
set @var =20;
 
4219
-------------------------------------------------------------------------
 
4220
---  bit_length(col1)+@var-@var  in partition with coltype  int
 
4221
-------------------------------------------------------------------------
 
4222
must all fail!
 
4223
drop table if exists t1 ;
 
4224
drop table if exists t2 ;
 
4225
drop table if exists t3 ;
 
4226
drop table if exists t4 ;
 
4227
drop table if exists t5 ;
 
4228
drop table if exists t6 ;
 
4229
create table t1 (col1 int) engine='INNODB' 
 
4230
partition by range(bit_length(col1)+@var-@var) 
 
4231
(partition p0 values less than (15),
 
4232
partition p1 values less than (31));
 
4233
Got one of the listed errors
 
4234
create table t2 (col1 int) engine='INNODB' 
 
4235
partition by list(bit_length(col1)+@var-@var) 
 
4236
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4237
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4238
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4239
Got one of the listed errors
 
4240
create table t3 (col1 int) engine='INNODB' 
 
4241
partition by hash(bit_length(col1)+@var-@var);
 
4242
Got one of the listed errors
 
4243
create table t4 (colint int, col1 int) engine='INNODB' 
 
4244
partition by range(colint) 
 
4245
subpartition by hash(bit_length(col1)+@var-@var) subpartitions 2 
 
4246
(partition p0 values less than (15),
 
4247
partition p1 values less than (31));
 
4248
Got one of the listed errors
 
4249
create table t5 (colint int, col1 int) engine='INNODB' 
 
4250
partition by list(colint)
 
4251
subpartition by hash(bit_length(col1)+@var-@var) subpartitions 2 
 
4252
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4253
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4254
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4255
Got one of the listed errors
 
4256
create table t6 (colint int, col1 int) engine='INNODB' 
 
4257
partition by range(colint) 
 
4258
(partition p0 values less than (bit_length(20)+@var-@var),
 
4259
partition p1 values less than maxvalue);
 
4260
Got one of the listed errors
 
4261
drop table if exists t11 ;
 
4262
drop table if exists t22 ;
 
4263
drop table if exists t33 ;
 
4264
drop table if exists t44 ;
 
4265
drop table if exists t55 ;
 
4266
drop table if exists t66 ;
 
4267
create table t11 (col1 int) engine='INNODB' ;
 
4268
create table t22 (col1 int) engine='INNODB' ;
 
4269
create table t33 (col1 int) engine='INNODB' ;
 
4270
create table t44 (colint int, col1 int) engine='INNODB' ;
 
4271
create table t55 (colint int, col1 int) engine='INNODB' ;
 
4272
create table t66 (colint int, col1 int) engine='INNODB' ;
 
4273
alter table t11  
 
4274
partition by range(bit_length(col1)+@var-@var) 
 
4275
(partition p0 values less than (15),
 
4276
partition p1 values less than (31));
 
4277
Got one of the listed errors
 
4278
alter table t22 
 
4279
partition by list(bit_length(col1)+@var-@var) 
 
4280
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4281
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4282
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4283
Got one of the listed errors
 
4284
alter table t33 
 
4285
partition by hash(bit_length(col1)+@var-@var);
 
4286
Got one of the listed errors
 
4287
alter table t44 
 
4288
partition by range(colint) 
 
4289
subpartition by hash(bit_length(col1)+@var-@var) subpartitions 2 
 
4290
(partition p0 values less than (15),
 
4291
partition p1 values less than (31));
 
4292
Got one of the listed errors
 
4293
alter table t55 
 
4294
partition by list(colint)
 
4295
subpartition by hash(bit_length(col1)+@var-@var) subpartitions 2 
 
4296
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4297
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4298
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4299
Got one of the listed errors
 
4300
alter table t66  
 
4301
partition by range(colint) 
 
4302
(partition p0 values less than (bit_length(20)+@var-@var),
 
4303
partition p1 values less than maxvalue);
 
4304
Got one of the listed errors
 
4305
drop table if exists t1 ;
 
4306
drop table if exists t2 ;
 
4307
drop table if exists t3 ;
 
4308
drop table if exists t4 ;
 
4309
drop table if exists t5 ;
 
4310
drop table if exists t6 ;
 
4311
drop table if exists t11 ;
 
4312
drop table if exists t22 ;
 
4313
drop table if exists t33 ;
 
4314
drop table if exists t44 ;
 
4315
drop table if exists t55 ;
 
4316
drop table if exists t66 ;
 
4317
create function getmaxsigned_t1(col int) returns int
 
4318
begin
 
4319
declare done int default 0;
 
4320
declare v4 int;
 
4321
declare max int;
 
4322
declare cur1 cursor for 
 
4323
select col from t1; 
 
4324
declare continue handler for sqlstate '01000' set done = 1;
 
4325
declare continue handler for sqlstate '02000' set done = 1;
 
4326
open cur1;
 
4327
set max = 0;
 
4328
fetch cur1 into v4;
 
4329
wl_loop: WHILE NOT done DO
 
4330
fetch cur1 into v4;
 
4331
IF v4 > max
 
4332
then set max = v4;
 
4333
END IF;
 
4334
END WHILE wl_loop;
 
4335
close cur1;
 
4336
return max;
 
4337
end//
 
4338
-------------------------------------------------------------------------
 
4339
---  getmaxsigned_t1(col1)  in partition with coltype  int
 
4340
-------------------------------------------------------------------------
 
4341
must all fail!
 
4342
drop table if exists t1 ;
 
4343
drop table if exists t2 ;
 
4344
drop table if exists t3 ;
 
4345
drop table if exists t4 ;
 
4346
drop table if exists t5 ;
 
4347
drop table if exists t6 ;
 
4348
create table t1 (col1 int) engine='INNODB' 
 
4349
partition by range(getmaxsigned_t1(col1)) 
 
4350
(partition p0 values less than (15),
 
4351
partition p1 values less than (31));
 
4352
Got one of the listed errors
 
4353
create table t2 (col1 int) engine='INNODB' 
 
4354
partition by list(getmaxsigned_t1(col1)) 
 
4355
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4356
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4357
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4358
Got one of the listed errors
 
4359
create table t3 (col1 int) engine='INNODB' 
 
4360
partition by hash(getmaxsigned_t1(col1));
 
4361
Got one of the listed errors
 
4362
create table t4 (colint int, col1 int) engine='INNODB' 
 
4363
partition by range(colint) 
 
4364
subpartition by hash(getmaxsigned_t1(col1)) subpartitions 2 
 
4365
(partition p0 values less than (15),
 
4366
partition p1 values less than (31));
 
4367
Got one of the listed errors
 
4368
create table t5 (colint int, col1 int) engine='INNODB' 
 
4369
partition by list(colint)
 
4370
subpartition by hash(getmaxsigned_t1(col1)) subpartitions 2 
 
4371
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4372
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4373
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4374
Got one of the listed errors
 
4375
create table t6 (colint int, col1 int) engine='INNODB' 
 
4376
partition by range(colint) 
 
4377
(partition p0 values less than (getmaxsigned(10)),
 
4378
partition p1 values less than maxvalue);
 
4379
Got one of the listed errors
 
4380
drop table if exists t11 ;
 
4381
drop table if exists t22 ;
 
4382
drop table if exists t33 ;
 
4383
drop table if exists t44 ;
 
4384
drop table if exists t55 ;
 
4385
drop table if exists t66 ;
 
4386
create table t11 (col1 int) engine='INNODB' ;
 
4387
create table t22 (col1 int) engine='INNODB' ;
 
4388
create table t33 (col1 int) engine='INNODB' ;
 
4389
create table t44 (colint int, col1 int) engine='INNODB' ;
 
4390
create table t55 (colint int, col1 int) engine='INNODB' ;
 
4391
create table t66 (colint int, col1 int) engine='INNODB' ;
 
4392
alter table t11  
 
4393
partition by range(getmaxsigned_t1(col1)) 
 
4394
(partition p0 values less than (15),
 
4395
partition p1 values less than (31));
 
4396
Got one of the listed errors
 
4397
alter table t22 
 
4398
partition by list(getmaxsigned_t1(col1)) 
 
4399
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4400
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4401
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4402
Got one of the listed errors
 
4403
alter table t33 
 
4404
partition by hash(getmaxsigned_t1(col1));
 
4405
Got one of the listed errors
 
4406
alter table t44 
 
4407
partition by range(colint) 
 
4408
subpartition by hash(getmaxsigned_t1(col1)) subpartitions 2 
 
4409
(partition p0 values less than (15),
 
4410
partition p1 values less than (31));
 
4411
Got one of the listed errors
 
4412
alter table t55 
 
4413
partition by list(colint)
 
4414
subpartition by hash(getmaxsigned_t1(col1)) subpartitions 2 
 
4415
(partition p0 values in (1,2,3,4,5,6,7,8,9,10),
 
4416
partition p1 values in (11,12,13,14,15,16,17,18,19,20),
 
4417
partition p2 values in (21,22,23,24,25,26,27,28,29,30));
 
4418
Got one of the listed errors
 
4419
alter table t66  
 
4420
partition by range(colint) 
 
4421
(partition p0 values less than (getmaxsigned(10)),
 
4422
partition p1 values less than maxvalue);
 
4423
Got one of the listed errors
 
4424
drop table if exists t1 ;
 
4425
drop table if exists t2 ;
 
4426
drop table if exists t3 ;
 
4427
drop table if exists t4 ;
 
4428
drop table if exists t5 ;
 
4429
drop table if exists t6 ;
 
4430
drop table if exists t11 ;
 
4431
drop table if exists t22 ;
 
4432
drop table if exists t33 ;
 
4433
drop table if exists t44 ;
 
4434
drop table if exists t55 ;
 
4435
drop table if exists t66 ;
 
4436
drop function if exists getmaxsigned_t1;