~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/r/partition_int_ndb.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
create table t1 (a tinyint unsigned not null, primary key(a)) engine='InnoDB' 
 
2
partition by key (a) (
 
3
partition pa1 DATA DIRECTORY =
 
4
'/tmp' INDEX DIRECTORY =
 
5
'/tmp' max_rows=20 min_rows=2,
 
6
partition pa2 DATA DIRECTORY =
 
7
'/tmp' INDEX DIRECTORY =
 
8
'/tmp' max_rows=30 min_rows=3,
 
9
partition pa3 DATA DIRECTORY =
 
10
'/tmp' INDEX DIRECTORY =
 
11
'/tmp' max_rows=30 min_rows=4,
 
12
partition pa4 DATA DIRECTORY =
 
13
'/tmp' INDEX DIRECTORY =
 
14
'/tmp' max_rows=40 min_rows=2);
 
15
show create table t1;
 
16
Table   Create Table
 
17
t1      CREATE TABLE `t1` (
 
18
  `a` tinyint(3) unsigned NOT NULL,
 
19
  PRIMARY KEY (`a`)
 
20
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB) */
 
21
insert into t1 values (255), (254), (253), (252), (1), (2), (128);
 
22
select * from t1;
 
23
a
 
24
1
 
25
2
 
26
128
 
27
252
 
28
253
 
29
254
 
30
255
 
31
select * from t1 where a=253;
 
32
a
 
33
253
 
34
delete from t1 where a=253;
 
35
select * from t1;
 
36
a
 
37
1
 
38
2
 
39
128
 
40
252
 
41
254
 
42
255
 
43
drop table t1;
 
44
create table t2 (a tinyint unsigned not null, primary key(a)) engine='InnoDB' 
 
45
partition by key (a) partitions 8;
 
46
show create table t2;
 
47
Table   Create Table
 
48
t2      CREATE TABLE `t2` (
 
49
  `a` tinyint(3) unsigned NOT NULL,
 
50
  PRIMARY KEY (`a`)
 
51
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 8  */
 
52
insert into t2 values (255), (254), (253), (252);
 
53
select * from t2;
 
54
a
 
55
252
 
56
253
 
57
254
 
58
255
 
59
select * from t2 where a=253;
 
60
a
 
61
253
 
62
delete from t2 where a=253;
 
63
select * from t2;
 
64
a
 
65
252
 
66
254
 
67
255
 
68
delete from t2;
 
69
255 inserts;
 
70
select count(*) from t2;
 
71
count(*)
 
72
255
 
73
drop table t2;
 
74
create table t3 (a tinyint not null, primary key(a)) engine='InnoDB' 
 
75
partition by key (a) partitions 10;
 
76
show create table t3;
 
77
Table   Create Table
 
78
t3      CREATE TABLE `t3` (
 
79
  `a` tinyint(4) NOT NULL,
 
80
  PRIMARY KEY (`a`)
 
81
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
82
insert into t3 values (127), (126), (125), (124), (-128), (-127), (1), (-1), (0);
 
83
select * from t3;
 
84
a
 
85
-128
 
86
-127
 
87
-1
 
88
0
 
89
1
 
90
124
 
91
125
 
92
126
 
93
127
 
94
select * from t3 where a=125;
 
95
a
 
96
125
 
97
delete from t3 where a=125;
 
98
select * from t3;
 
99
a
 
100
-128
 
101
-127
 
102
-1
 
103
0
 
104
1
 
105
124
 
106
126
 
107
127
 
108
drop table t3;
 
109
create table t1 (a smallint unsigned not null, primary key(a)) engine='InnoDB' 
 
110
partition by key (a) (
 
111
partition pa1 DATA DIRECTORY =
 
112
'/tmp' INDEX DIRECTORY =
 
113
'/tmp' max_rows=20 min_rows=2,
 
114
partition pa2 DATA DIRECTORY =
 
115
'/tmp' INDEX DIRECTORY =
 
116
'/tmp' max_rows=30 min_rows=3,
 
117
partition pa3 DATA DIRECTORY =
 
118
'/tmp' INDEX DIRECTORY =
 
119
'/tmp' max_rows=30 min_rows=4,
 
120
partition pa4 DATA DIRECTORY =
 
121
'/tmp' INDEX DIRECTORY =
 
122
'/tmp' max_rows=40 min_rows=2);
 
123
show create table t1;
 
124
Table   Create Table
 
125
t1      CREATE TABLE `t1` (
 
126
  `a` smallint(5) unsigned NOT NULL,
 
127
  PRIMARY KEY (`a`)
 
128
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB) */
 
129
insert into t1 values (65535), (65534), (65533), (65532), (1), (2), (256);
 
130
select * from t1;
 
131
a
 
132
1
 
133
2
 
134
256
 
135
65532
 
136
65533
 
137
65534
 
138
65535
 
139
select * from t1 where a=65533;
 
140
a
 
141
65533
 
142
delete from t1 where a=65533;
 
143
select * from t1;
 
144
a
 
145
1
 
146
2
 
147
256
 
148
65532
 
149
65534
 
150
65535
 
151
drop table t1;
 
152
create table t2 (a smallint unsigned not null, primary key(a)) engine='InnoDB' 
 
153
partition by key (a) partitions 8;
 
154
show create table t2;
 
155
Table   Create Table
 
156
t2      CREATE TABLE `t2` (
 
157
  `a` smallint(5) unsigned NOT NULL,
 
158
  PRIMARY KEY (`a`)
 
159
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 8  */
 
160
insert into t2 values (65535), (65534), (65533), (65532);
 
161
select * from t2;
 
162
a
 
163
65532
 
164
65533
 
165
65534
 
166
65535
 
167
select * from t2 where a=65533;
 
168
a
 
169
65533
 
170
delete from t2 where a=65533;
 
171
select * from t2;
 
172
a
 
173
65532
 
174
65534
 
175
65535
 
176
delete from t2;
 
177
1024 inserts;
 
178
select count(*) from t2;
 
179
count(*)
 
180
1024
 
181
drop table t2;
 
182
create table t3 (a smallint not null, primary key(a)) engine='InnoDB' 
 
183
partition by key (a) partitions 10;
 
184
show create table t3;
 
185
Table   Create Table
 
186
t3      CREATE TABLE `t3` (
 
187
  `a` smallint(6) NOT NULL,
 
188
  PRIMARY KEY (`a`)
 
189
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
190
insert into t3 values (32767), (32766), (32765), (32764), (-32768), (-32767), (1), (-1), (0);
 
191
select * from t3;
 
192
a
 
193
-32768
 
194
-32767
 
195
-1
 
196
0
 
197
1
 
198
32764
 
199
32765
 
200
32766
 
201
32767
 
202
select * from t3 where a=32765;
 
203
a
 
204
32765
 
205
delete from t3 where a=32765;
 
206
select * from t3;
 
207
a
 
208
-32768
 
209
-32767
 
210
-1
 
211
0
 
212
1
 
213
32764
 
214
32766
 
215
32767
 
216
drop table t3;
 
217
create table t1 (a int unsigned not null, primary key(a)) engine='InnoDB' 
 
218
partition by key (a) (
 
219
partition pa1 DATA DIRECTORY =
 
220
'/tmp' INDEX DIRECTORY =
 
221
'/tmp' max_rows=20 min_rows=2,
 
222
partition pa2 DATA DIRECTORY =
 
223
'/tmp' INDEX DIRECTORY =
 
224
'/tmp' max_rows=30 min_rows=3,
 
225
partition pa3 DATA DIRECTORY =
 
226
'/tmp' INDEX DIRECTORY =
 
227
'/tmp' max_rows=30 min_rows=4,
 
228
partition pa4 DATA DIRECTORY =
 
229
'/tmp' INDEX DIRECTORY =
 
230
'/tmp' max_rows=40 min_rows=2);
 
231
show create table t1;
 
232
Table   Create Table
 
233
t1      CREATE TABLE `t1` (
 
234
  `a` int(10) unsigned NOT NULL,
 
235
  PRIMARY KEY (`a`)
 
236
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB) */
 
237
insert into t1 values (4294967295), (4294967294), (4294967293), (4294967292), (1), (2), (65535);
 
238
select * from t1;
 
239
a
 
240
1
 
241
2
 
242
65535
 
243
4294967292
 
244
4294967293
 
245
4294967294
 
246
4294967295
 
247
select * from t1 where a=4294967293;
 
248
a
 
249
4294967293
 
250
delete from t1 where a=4294967293;
 
251
select * from t1;
 
252
a
 
253
1
 
254
2
 
255
65535
 
256
4294967292
 
257
4294967294
 
258
4294967295
 
259
drop table t1;
 
260
create table t2 (a int unsigned not null, primary key(a)) engine='InnoDB' 
 
261
partition by key (a) partitions 10;
 
262
show create table t2;
 
263
Table   Create Table
 
264
t2      CREATE TABLE `t2` (
 
265
  `a` int(10) unsigned NOT NULL,
 
266
  PRIMARY KEY (`a`)
 
267
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
268
insert into t2 values (4294967295), (4294967294), (4294967293), (4294967292);
 
269
select * from t2;
 
270
a
 
271
4294967292
 
272
4294967293
 
273
4294967294
 
274
4294967295
 
275
select * from t2 where a=4294967293;
 
276
a
 
277
4294967293
 
278
delete from t2 where a=4294967293;
 
279
select * from t2;
 
280
a
 
281
4294967292
 
282
4294967294
 
283
4294967295
 
284
delete from t2;
 
285
1024 inserts;
 
286
select count(*) from t2;
 
287
count(*)
 
288
1024
 
289
drop table t2;
 
290
create table t3 (a int not null, primary key(a)) engine='InnoDB' 
 
291
partition by key (a) partitions 10;
 
292
show create table t3;
 
293
Table   Create Table
 
294
t3      CREATE TABLE `t3` (
 
295
  `a` int(11) NOT NULL,
 
296
  PRIMARY KEY (`a`)
 
297
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
298
insert into t3 values (2147483647), (2147483646), (2147483645), (2147483644), (-2147483648), (-2147483647), (1), (-1), (0);
 
299
select * from t3;
 
300
a
 
301
-2147483648
 
302
-2147483647
 
303
-1
 
304
0
 
305
1
 
306
2147483644
 
307
2147483645
 
308
2147483646
 
309
2147483647
 
310
select * from t3 where a=2147483645;
 
311
a
 
312
2147483645
 
313
delete from t3 where a=2147483645;
 
314
select * from t3;
 
315
a
 
316
-2147483648
 
317
-2147483647
 
318
-1
 
319
0
 
320
1
 
321
2147483644
 
322
2147483646
 
323
2147483647
 
324
drop table t3;
 
325
create table t1 (a mediumint unsigned not null, primary key(a)) engine='InnoDB' 
 
326
partition by key (a) (
 
327
partition pa1 DATA DIRECTORY =
 
328
'/tmp' INDEX DIRECTORY =
 
329
'/tmp' max_rows=20 min_rows=2,
 
330
partition pa2 DATA DIRECTORY =
 
331
'/tmp' INDEX DIRECTORY =
 
332
'/tmp' max_rows=30 min_rows=3,
 
333
partition pa3 DATA DIRECTORY =
 
334
'/tmp' INDEX DIRECTORY =
 
335
'/tmp' max_rows=30 min_rows=4,
 
336
partition pa4 DATA DIRECTORY =
 
337
'/tmp' INDEX DIRECTORY =
 
338
'/tmp' max_rows=40 min_rows=2);
 
339
show create table t1;
 
340
Table   Create Table
 
341
t1      CREATE TABLE `t1` (
 
342
  `a` mediumint(8) unsigned NOT NULL,
 
343
  PRIMARY KEY (`a`)
 
344
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB) */
 
345
insert into t1 values (16777215), (16777214), (16777213), (16777212), (1), (2), (65535);
 
346
select * from t1;
 
347
a
 
348
1
 
349
2
 
350
65535
 
351
16777212
 
352
16777213
 
353
16777214
 
354
16777215
 
355
select * from t1 where a=16777213;
 
356
a
 
357
16777213
 
358
delete from t1 where a=16777213;
 
359
select * from t1;
 
360
a
 
361
1
 
362
2
 
363
65535
 
364
16777212
 
365
16777214
 
366
16777215
 
367
drop table t1;
 
368
create table t2 (a mediumint unsigned not null, primary key(a)) engine='InnoDB' 
 
369
partition by key (a) partitions 8;
 
370
show create table t2;
 
371
Table   Create Table
 
372
t2      CREATE TABLE `t2` (
 
373
  `a` mediumint(8) unsigned NOT NULL,
 
374
  PRIMARY KEY (`a`)
 
375
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 8  */
 
376
insert into t2 values (16777215), (16777214), (16777213), (16777212);
 
377
select * from t2;
 
378
a
 
379
16777212
 
380
16777213
 
381
16777214
 
382
16777215
 
383
select * from t2 where a=16777213;
 
384
a
 
385
16777213
 
386
delete from t2 where a=16777213;
 
387
select * from t2;
 
388
a
 
389
16777212
 
390
16777214
 
391
16777215
 
392
delete from t2;
 
393
1024 inserts;
 
394
select count(*) from t2;
 
395
count(*)
 
396
1024
 
397
drop table t2;
 
398
create table t3 (a mediumint not null, primary key(a)) engine='InnoDB' 
 
399
partition by key (a) partitions 10;
 
400
show create table t3;
 
401
Table   Create Table
 
402
t3      CREATE TABLE `t3` (
 
403
  `a` mediumint(9) NOT NULL,
 
404
  PRIMARY KEY (`a`)
 
405
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
406
insert into t3 values (8388607), (8388606), (8388605), (8388604), (-8388608), (-8388607), (1), (-1), (0);
 
407
select * from t3;
 
408
a
 
409
-8388608
 
410
-8388607
 
411
-1
 
412
0
 
413
1
 
414
8388604
 
415
8388605
 
416
8388606
 
417
8388607
 
418
select * from t3 where a=8388605;
 
419
a
 
420
8388605
 
421
delete from t3 where a=8388605;
 
422
select * from t3;
 
423
a
 
424
-8388608
 
425
-8388607
 
426
-1
 
427
0
 
428
1
 
429
8388604
 
430
8388606
 
431
8388607
 
432
drop table t3;
 
433
create table t1 (a bigint unsigned not null, primary key(a)) engine='InnoDB' 
 
434
partition by key (a) (
 
435
partition pa1 DATA DIRECTORY =
 
436
'/tmp' INDEX DIRECTORY =
 
437
'/tmp' max_rows=20 min_rows=2,
 
438
partition pa2 DATA DIRECTORY =
 
439
'/tmp' INDEX DIRECTORY =
 
440
'/tmp' max_rows=30 min_rows=3,
 
441
partition pa3 DATA DIRECTORY =
 
442
'/tmp' INDEX DIRECTORY =
 
443
'/tmp' max_rows=30 min_rows=4,
 
444
partition pa4 DATA DIRECTORY =
 
445
'/tmp' INDEX DIRECTORY =
 
446
'/tmp' max_rows=40 min_rows=2);
 
447
show create table t1;
 
448
Table   Create Table
 
449
t1      CREATE TABLE `t1` (
 
450
  `a` bigint(20) unsigned NOT NULL,
 
451
  PRIMARY KEY (`a`)
 
452
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION pa1 MAX_ROWS = 20 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa2 MAX_ROWS = 30 MIN_ROWS = 3 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa3 MAX_ROWS = 30 MIN_ROWS = 4 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB, PARTITION pa4 MAX_ROWS = 40 MIN_ROWS = 2 DATA DIRECTORY = '/tmp' INDEX DIRECTORY = '/tmp' ENGINE = InnoDB) */
 
453
insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612), (1), (2), (65535);
 
454
select * from t1;
 
455
a
 
456
1
 
457
2
 
458
65535
 
459
18446744073709551612
 
460
18446744073709551613
 
461
18446744073709551614
 
462
18446744073709551615
 
463
select * from t1 where a=-2;
 
464
a
 
465
delete from t1 where a=-2;
 
466
select * from t1;
 
467
a
 
468
1
 
469
2
 
470
65535
 
471
18446744073709551612
 
472
18446744073709551613
 
473
18446744073709551614
 
474
18446744073709551615
 
475
select * from t1 where a=18446744073709551615;
 
476
a
 
477
18446744073709551615
 
478
delete from t1 where a=18446744073709551615;
 
479
select * from t1;
 
480
a
 
481
1
 
482
2
 
483
65535
 
484
18446744073709551612
 
485
18446744073709551613
 
486
18446744073709551614
 
487
drop table t1;
 
488
create table t2 (a bigint unsigned not null, primary key(a)) engine='InnoDB' 
 
489
partition by key (a) partitions 10;
 
490
show create table t2;
 
491
Table   Create Table
 
492
t2      CREATE TABLE `t2` (
 
493
  `a` bigint(20) unsigned NOT NULL,
 
494
  PRIMARY KEY (`a`)
 
495
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
496
insert into t2 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612);
 
497
select * from t2;
 
498
a
 
499
18446744073709551612
 
500
18446744073709551613
 
501
18446744073709551614
 
502
18446744073709551615
 
503
select * from t2 where a=18446744073709551615;
 
504
a
 
505
18446744073709551615
 
506
delete from t2 where a=18446744073709551615;
 
507
select * from t2;
 
508
a
 
509
18446744073709551612
 
510
18446744073709551613
 
511
18446744073709551614
 
512
delete from t2;
 
513
1024 inserts;
 
514
select count(*) from t2;
 
515
count(*)
 
516
1024
 
517
drop table t2;
 
518
create table t3 (a bigint not null, primary key(a)) engine='InnoDB' 
 
519
partition by key (a) partitions 10;
 
520
show create table t3;
 
521
Table   Create Table
 
522
t3      CREATE TABLE `t3` (
 
523
  `a` bigint(20) NOT NULL,
 
524
  PRIMARY KEY (`a`)
 
525
) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10  */
 
526
insert into t3 values (9223372036854775807), (9223372036854775806), (9223372036854775805), (9223372036854775804), (-9223372036854775808), (-9223372036854775807), (1), (-1), (0);
 
527
select * from t3;
 
528
a
 
529
-9223372036854775808
 
530
-9223372036854775807
 
531
-1
 
532
0
 
533
1
 
534
9223372036854775804
 
535
9223372036854775805
 
536
9223372036854775806
 
537
9223372036854775807
 
538
select * from t3 where a=9223372036854775806;
 
539
a
 
540
9223372036854775806
 
541
delete from t3 where a=9223372036854775806;
 
542
select * from t3;
 
543
a
 
544
-9223372036854775808
 
545
-9223372036854775807
 
546
-1
 
547
0
 
548
1
 
549
9223372036854775804
 
550
9223372036854775805
 
551
9223372036854775807
 
552
drop table t3;