~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/r/ndb_restore_partition.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use test;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
 
4
CREATE TABLE `t1_c` (
 
5
`capgoaledatta` smallint(5) unsigned NOT NULL auto_increment,
 
6
`goaledatta` char(2) NOT NULL default '',
 
7
`maturegarbagefa` varchar(32) NOT NULL default '',
 
8
PRIMARY KEY  (`capgoaledatta`,`goaledatta`,`maturegarbagefa`)
 
9
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
10
INSERT INTO `t1_c` VALUES (2,'3','q3plus.qt'),(4,'4','q3plus.qt'),(1,'3','q3.net'),(3,'4','q3.net'),(3,'20','threetrees.qt');
 
11
CREATE TABLE `t2_c` (
 
12
`capgotod` smallint(5) unsigned NOT NULL auto_increment,
 
13
`gotod` smallint(5) unsigned NOT NULL default '0',
 
14
`goaledatta` char(2) default NULL,
 
15
`maturegarbagefa` varchar(32) default NULL,
 
16
`descrpooppo` varchar(64) default NULL,
 
17
`svcutonsa` varchar(64) NOT NULL default '',
 
18
PRIMARY KEY  (`capgotod`),
 
19
KEY `i_quadaddsvr` (`gotod`)
 
20
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
21
INSERT INTO `t2_c` VALUES (5,4,'','q3.net','addavp:MK_CASELECTOR=1','postorod rattoaa'),(2,1,'4','','addavp:MK_BRANDTAD=345','REDS Brandtad'),(3,2,'4','q3.net','execorder','fixedRatediPO REDS'),(1,1,'3','','addavp:MK_BRANDTAD=123','TEST Brandtad'),(6,5,'','told.q3.net','addavp:MK_BRANDTAD=123','Brandtad Toldzone'),(4,3,'3','q3.net','addavp:MK_POOLHINT=2','ratedi PO TEST');
 
22
CREATE TABLE `t3_c` (
 
23
`CapGoaledatta` smallint(5) unsigned NOT NULL default '0',
 
24
`capgotod` smallint(5) unsigned NOT NULL default '0',
 
25
PRIMARY KEY  (`capgotod`,`CapGoaledatta`)
 
26
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
27
INSERT INTO `t3_c` VALUES (5,3),(2,4),(5,4),(1,3);
 
28
CREATE TABLE `t4_c` (
 
29
`capfa` bigint(20) unsigned NOT NULL auto_increment,
 
30
`realm` varchar(32) NOT NULL default '',
 
31
`authpwchap` varchar(32) default NULL,
 
32
`fa` varchar(32) NOT NULL default '',
 
33
`payyingatta` tinyint(4) NOT NULL default '0',
 
34
`status` char(1) default NULL,
 
35
PRIMARY KEY  (`fa`,`realm`),
 
36
KEY `capfa` (`capfa`),
 
37
KEY `i_quadentity` (`fa`,`realm`)
 
38
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
39
INSERT INTO `t4_c` VALUES (18,'john.smith','q3.net','dessjohn.smith',0,NULL),(21,'quad_katt_with_brandtad','q3.net','acne',0,NULL),(22,'quad_katt_carattoaa','q3.net','acne',0,NULL),(26,'436462612809','sqasdt.q3.net','N/A',0,'6'),(19,'john','smith.qt','dessjohn',0,NULL),(33,'436643196120','sqasdt.q3.net','N/A',1,'6'),(28,'436642900019','sqasdt.q3.net','N/A',0,'6'),(30,'436462900209','sqasdt.q3.net','N/A',0,'6'),(16,'436640006666','sqasdt.q3.net','',0,NULL),(19,'dette','el-redun.com','dessdette',0,NULL),(12,'quad_kattPP','q3.net','acne',2,NULL),(14,'436640008888','sqasdt.q3.net','',0,NULL),(29,'463624900028','sqasdt.q3.net','N/A',0,'6'),(15,'436640099099','sqasdt.q3.net','',0,NULL),(13,'pap','q3plus.qt','acne',1,NULL),(19,'436642612091','sqasdt.q3.net','N/A',0,'6'),(12,'quad_katt','q3.net','acne',0,NULL),(11,'quad_kattVK','q3.net','acne',1,NULL),(32,'463641969502','sqasdt.q3.net','N/A',1,'6'),(20,'joe','q3.net','joedesswd',0,NULL),(29,'436642900034','sqasdt.q3.net','N/A',0,'6'),(25,'contind','armerde.qt','acne',1,NULL);
 
40
CREATE TABLE `t5_c` (
 
41
`capfa` bigint(20) unsigned NOT NULL default '0',
 
42
`gotod` smallint(5) unsigned NOT NULL default '0',
 
43
`orderutonsa` varchar(64) NOT NULL default '',
 
44
PRIMARY KEY  (`capfa`,`gotod`,`orderutonsa`)
 
45
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
46
INSERT INTO `t5_c` VALUES (21,2,''),(21,1,''),(22,4,'');
 
47
CREATE TABLE `t6_c` (
 
48
`capfa_parent` bigint(20) unsigned NOT NULL default '0',
 
49
`capfa_child` bigint(20) unsigned NOT NULL default '0',
 
50
`relatta` smallint(5) unsigned NOT NULL default '0',
 
51
PRIMARY KEY  (`capfa_child`,`capfa_parent`,`relatta`)
 
52
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
53
INSERT INTO `t6_c` VALUES (15,16,0),(19,20,0),(18326932092909551615,30,0),(26,29,0),(18326932092909551615,29,0),(19,18,0),(26,28,0),(12,14,0);
 
54
CREATE TABLE `t7_c` (
 
55
`dardpo` char(15) NOT NULL default '',
 
56
`dardtestard` tinyint(3) unsigned NOT NULL default '0',
 
57
`FastFA` char(5) NOT NULL default '',
 
58
`FastCode` char(6) NOT NULL default '',
 
59
`Fastca` char(1) NOT NULL default '',
 
60
`Fastmag` char(1) NOT NULL default '',
 
61
`Beareratta` char(2) NOT NULL default '',
 
62
PRIMARY KEY  (`dardpo`,`dardtestard`)
 
63
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
64
INSERT INTO `t7_c` VALUES ('2.6.2.4',24,'CECHP','54545','0','0','5'),('2.2.5.4',26,'CANFA','33223','1','1','4'),('4.3.2.4',28,'ITALD','54222','1','0','5'),('129..0.0.eins',28,'G','99999','1','1','5'),('1.1.1.1',24,'AUTPT','32323','0','1','3');
 
65
CREATE TABLE `t8_c` (
 
66
`kattjame` varchar(32) NOT NULL default '',
 
67
`realm` varchar(32) NOT NULL default '',
 
68
`realm_entered` varchar(32) NOT NULL default '',
 
69
`maturegarbagefa` varchar(32) NOT NULL default '',
 
70
`hunderaaarbagefa_parent` varchar(32) NOT NULL default '',
 
71
`kattjame_entered` varchar(32) NOT NULL default '',
 
72
`hunderaaarbagefa` varchar(32) NOT NULL default '',
 
73
`gest` varchar(16) default NULL,
 
74
`hassetino` varchar(16) NOT NULL default '',
 
75
`aaaproxysessfa` varchar(255) default NULL,
 
76
`autologonallowed` char(1) default NULL,
 
77
`squardporoot` varchar(15) NOT NULL default '',
 
78
`naspo` varchar(15) default NULL,
 
79
`beareratta` char(2) default NULL,
 
80
`fastCode` varchar(6) default NULL,
 
81
`fastFA` varchar(5) default NULL,
 
82
`fastca` char(1) default NULL,
 
83
`fastmag` char(1) default NULL,
 
84
`lastupdate` datetime default NULL,
 
85
`hassetistart` datetime NOT NULL default '0000-00-00 00:00:00',
 
86
`accthassetitime` int(10) unsigned default NULL,
 
87
`acctoutputoctets` bigint(20) unsigned default NULL,
 
88
`acctinputoctets` bigint(20) unsigned default NULL,
 
89
PRIMARY KEY  (`kattjame`,`hunderaaarbagefa`,`hassetistart`,`hassetino`),
 
90
KEY `squardporoot` (`squardporoot`)
 
91
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
92
INSERT INTO `t8_c` VALUES ('4tt45345235','pap','q3plus.qt','q3plus.qt','q3.net','436643196120','436643196929','8956234534568968','5524595699','uxasmt21.net.acne.qt/481889229462692422','','1.1.1.1','2.2.4.6','4','86989','34','x','x','2012-03-12 12:55:34','2012-12-05 11:20:04',3223433,3369,9565),('4545435545','john','q3.net','q3.net','acne.li','436643196120','436643196929','45345234568968','995696699','uxasmt21.net.acne.qt/481889229462692423','','1.1.1.1','2.2.9.8','2','86989','34','x','x','2012-03-12 11:35:03','2012-12-05 08:50:04',8821923,169,3565),('versteckter_q3net_katt','joe','q3.net','elredun.com','q3.net','436643196120','436643196939','91341234568968','695595699','uxasmt21.net.acne.qt/481889229462692421','','1.1.1.1','2.5.2.5','3','86989','34','x','x','2012-03-12 18:35:04','2012-12-05 12:35:04',1923123,9569,6565);
 
93
CREATE TABLE `t9_c` (
 
94
`kattjame` varchar(32) NOT NULL default '',
 
95
`kattjame_entered` varchar(32) NOT NULL default '',
 
96
`realm` varchar(32) NOT NULL default '',
 
97
`realm_entered` varchar(32) NOT NULL default '',
 
98
`maturegarbagefa` varchar(32) NOT NULL default '',
 
99
`hunderaaarbagefa` varchar(32) NOT NULL default '',
 
100
`hunderaaarbagefa_parent` varchar(32) NOT NULL default '',
 
101
`gest` varchar(16) default NULL,
 
102
`hassetino` varchar(16) NOT NULL default '',
 
103
`squardporoot` varchar(15) NOT NULL default '',
 
104
`naspo` varchar(15) default NULL,
 
105
`beareratta` char(2) default NULL,
 
106
`fastCode` varchar(6) default NULL,
 
107
`fastFA` varchar(5) default NULL,
 
108
`fastca` char(1) default NULL,
 
109
`fastmag` char(1) default NULL,
 
110
`lastupdate` datetime default NULL,
 
111
`hassetistart` datetime NOT NULL default '0000-00-00 00:00:00',
 
112
`accthassetitime` int(10) unsigned default NULL,
 
113
`actcoutpuocttets` bigint(20) unsigned default NULL,
 
114
`actinputocctets` bigint(20) unsigned default NULL,
 
115
`terminateraste` tinyint(3) unsigned default NULL,
 
116
PRIMARY KEY  (`kattjame`,`hunderaaarbagefa`,`hassetistart`,`hassetino`)
 
117
) ENGINE=ndbcluster DEFAULT CHARSET=latin1;
 
118
INSERT INTO `t9_c` VALUES ('3g4jh8gar2t','joe','q3.net','elredun.com','q3.net','436643316120','436643316939','91341234568968','695595699','1.1.1.1','2.2.6.2','3','86989','34','x','x','2012-03-12 18:35:04','2012-12-05 12:35:04',3123123,9569,6565,1),('4tt45345235','pap','q3plus.qt','q3plus.qt','q3.net','436643316120','436643316939','8956234534568968','5254595969','1.1.1.1','8.6.2.2','4','86989','34','x','x','2012-03-12 12:55:34','2012-12-05 11:20:04',3223433,3369,9565,2),('4545435545','john','q3.net','q3.net','acne.li','436643316120','436643316939','45345234568968','995696699','1.1.1.1','2.9.9.2','2','86998','34','x','x','2012-03-12 11:35:03','2012-12-05 08:50:04',8823123,169,3565,3);
 
119
create table t1 engine=myisam as select * from t1_c;
 
120
create table t2 engine=myisam as select * from t2_c;
 
121
create table t3 engine=myisam as select * from t3_c;
 
122
create table t4 engine=myisam as select * from t4_c;
 
123
create table t5 engine=myisam as select * from t5_c;
 
124
create table t6 engine=myisam as select * from t6_c;
 
125
create table t7 engine=myisam as select * from t7_c;
 
126
create table t8 engine=myisam as select * from t8_c;
 
127
create table t9 engine=myisam as select * from t9_c;
 
128
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info
 
129
(id INT, backup_id INT) ENGINE = MEMORY;
 
130
LOAD DATA INFILE '<MYSQLTEST_VARDIR>/tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
 
131
DROP TABLE test.backup_info;
 
132
drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
 
133
select count(*) from t1;
 
134
count(*)
 
135
5
 
136
select count(*) from t1_c;
 
137
count(*)
 
138
5
 
139
select count(*)
 
140
from (select * from t1 union 
 
141
select * from t1_c) a;
 
142
count(*)
 
143
5
 
144
select count(*) from t2;
 
145
count(*)
 
146
6
 
147
select count(*) from t2_c;
 
148
count(*)
 
149
6
 
150
select count(*)
 
151
from (select * from t2 union 
 
152
select * from t2_c) a;
 
153
count(*)
 
154
6
 
155
select count(*) from t3;
 
156
count(*)
 
157
4
 
158
select count(*) from t3_c;
 
159
count(*)
 
160
4
 
161
select count(*)
 
162
from (select * from t3 union 
 
163
select * from t3_c) a;
 
164
count(*)
 
165
4
 
166
select count(*) from t4;
 
167
count(*)
 
168
22
 
169
select count(*) from t4_c;
 
170
count(*)
 
171
22
 
172
select count(*)
 
173
from (select * from t4 union 
 
174
select * from t4_c) a;
 
175
count(*)
 
176
22
 
177
select count(*) from t5;
 
178
count(*)
 
179
3
 
180
select count(*) from t5_c;
 
181
count(*)
 
182
3
 
183
select count(*)
 
184
from (select * from t5 union 
 
185
select * from t5_c) a;
 
186
count(*)
 
187
3
 
188
select count(*) from t6;
 
189
count(*)
 
190
8
 
191
select count(*) from t6_c;
 
192
count(*)
 
193
8
 
194
select count(*)
 
195
from (select * from t6 union 
 
196
select * from t6_c) a;
 
197
count(*)
 
198
8
 
199
select count(*) from t7;
 
200
count(*)
 
201
5
 
202
select count(*) from t7_c;
 
203
count(*)
 
204
5
 
205
select count(*)
 
206
from (select * from t7 union 
 
207
select * from t7_c) a;
 
208
count(*)
 
209
5
 
210
select count(*) from t8;
 
211
count(*)
 
212
3
 
213
select count(*) from t8_c;
 
214
count(*)
 
215
3
 
216
select count(*)
 
217
from (select * from t8 union 
 
218
select * from t8_c) a;
 
219
count(*)
 
220
3
 
221
select count(*) from t9;
 
222
count(*)
 
223
3
 
224
select count(*) from t9_c;
 
225
count(*)
 
226
3
 
227
select count(*)
 
228
from (select * from t9 union 
 
229
select * from t9_c) a;
 
230
count(*)
 
231
3
 
232
ALTER TABLE t1_c
 
233
PARTITION BY RANGE (`capgoaledatta`)
 
234
(PARTITION p0 VALUES LESS THAN MAXVALUE);
 
235
ALTER TABLE t2_c
 
236
PARTITION BY LIST(`capgotod`)
 
237
(PARTITION p0 VALUES IN (0,1,2,3,4,5,6));
 
238
ALTER TABLE t3_c
 
239
PARTITION BY HASH (`CapGoaledatta`);
 
240
ALTER TABLE t5_c
 
241
PARTITION BY HASH (`capfa`)
 
242
PARTITIONS 4;
 
243
ALTER TABLE t6_c
 
244
PARTITION BY LINEAR HASH (`relatta`)
 
245
PARTITIONS 4;
 
246
ALTER TABLE t7_c
 
247
PARTITION BY LINEAR KEY (`dardtestard`);
 
248
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info
 
249
(id INT, backup_id INT) ENGINE = MEMORY;
 
250
LOAD DATA INFILE '<MYSQLTEST_VARDIR>/tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
 
251
DROP TABLE test.backup_info;
 
252
drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
 
253
select count(*) from t1;
 
254
count(*)
 
255
5
 
256
select count(*) from t1_c;
 
257
count(*)
 
258
5
 
259
select count(*)
 
260
from (select * from t1 union 
 
261
select * from t1_c) a;
 
262
count(*)
 
263
5
 
264
select count(*) from t2;
 
265
count(*)
 
266
6
 
267
select count(*) from t2_c;
 
268
count(*)
 
269
6
 
270
select count(*)
 
271
from (select * from t2 union 
 
272
select * from t2_c) a;
 
273
count(*)
 
274
6
 
275
select count(*) from t3;
 
276
count(*)
 
277
4
 
278
select count(*) from t3_c;
 
279
count(*)
 
280
4
 
281
select count(*)
 
282
from (select * from t3 union 
 
283
select * from t3_c) a;
 
284
count(*)
 
285
4
 
286
select count(*) from t4;
 
287
count(*)
 
288
22
 
289
select count(*) from t4_c;
 
290
count(*)
 
291
22
 
292
select count(*)
 
293
from (select * from t4 union 
 
294
select * from t4_c) a;
 
295
count(*)
 
296
22
 
297
select count(*) from t5;
 
298
count(*)
 
299
3
 
300
select count(*) from t5_c;
 
301
count(*)
 
302
3
 
303
select count(*)
 
304
from (select * from t5 union 
 
305
select * from t5_c) a;
 
306
count(*)
 
307
3
 
308
select count(*) from t6;
 
309
count(*)
 
310
8
 
311
select count(*) from t6_c;
 
312
count(*)
 
313
8
 
314
select count(*)
 
315
from (select * from t6 union 
 
316
select * from t6_c) a;
 
317
count(*)
 
318
8
 
319
select count(*) from t7;
 
320
count(*)
 
321
5
 
322
select count(*) from t7_c;
 
323
count(*)
 
324
5
 
325
select count(*)
 
326
from (select * from t7 union 
 
327
select * from t7_c) a;
 
328
count(*)
 
329
5
 
330
select count(*) from t8;
 
331
count(*)
 
332
3
 
333
select count(*) from t8_c;
 
334
count(*)
 
335
3
 
336
select count(*)
 
337
from (select * from t8 union 
 
338
select * from t8_c) a;
 
339
count(*)
 
340
3
 
341
select count(*) from t9;
 
342
count(*)
 
343
3
 
344
select count(*) from t9_c;
 
345
count(*)
 
346
3
 
347
select count(*)
 
348
from (select * from t9 union 
 
349
select * from t9_c) a;
 
350
count(*)
 
351
3
 
352
drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
 
353
select count(*) from t1;
 
354
count(*)
 
355
5
 
356
select count(*) from t1_c;
 
357
count(*)
 
358
5
 
359
select count(*)
 
360
from (select * from t1 union 
 
361
select * from t1_c) a;
 
362
count(*)
 
363
5
 
364
select count(*) from t2;
 
365
count(*)
 
366
6
 
367
select count(*) from t2_c;
 
368
count(*)
 
369
6
 
370
select count(*)
 
371
from (select * from t2 union 
 
372
select * from t2_c) a;
 
373
count(*)
 
374
6
 
375
select count(*) from t3;
 
376
count(*)
 
377
4
 
378
select count(*) from t3_c;
 
379
count(*)
 
380
4
 
381
select count(*)
 
382
from (select * from t3 union 
 
383
select * from t3_c) a;
 
384
count(*)
 
385
4
 
386
select count(*) from t4;
 
387
count(*)
 
388
22
 
389
select count(*) from t4_c;
 
390
count(*)
 
391
22
 
392
select count(*)
 
393
from (select * from t4 union 
 
394
select * from t4_c) a;
 
395
count(*)
 
396
22
 
397
select count(*) from t5;
 
398
count(*)
 
399
3
 
400
select count(*) from t5_c;
 
401
count(*)
 
402
3
 
403
select count(*)
 
404
from (select * from t5 union 
 
405
select * from t5_c) a;
 
406
count(*)
 
407
3
 
408
select count(*) from t6;
 
409
count(*)
 
410
8
 
411
select count(*) from t6_c;
 
412
count(*)
 
413
8
 
414
select count(*)
 
415
from (select * from t6 union 
 
416
select * from t6_c) a;
 
417
count(*)
 
418
8
 
419
select count(*) from t7;
 
420
count(*)
 
421
5
 
422
select count(*) from t7_c;
 
423
count(*)
 
424
5
 
425
select count(*)
 
426
from (select * from t7 union 
 
427
select * from t7_c) a;
 
428
count(*)
 
429
5
 
430
select count(*) from t8;
 
431
count(*)
 
432
3
 
433
select count(*) from t8_c;
 
434
count(*)
 
435
3
 
436
select count(*)
 
437
from (select * from t8 union 
 
438
select * from t8_c) a;
 
439
count(*)
 
440
3
 
441
select count(*) from t9;
 
442
count(*)
 
443
3
 
444
select count(*) from t9_c;
 
445
count(*)
 
446
3
 
447
select count(*)
 
448
from (select * from t9 union 
 
449
select * from t9_c) a;
 
450
count(*)
 
451
3
 
452
drop table t1_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
 
453
CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info
 
454
(id INT, backup_id INT) ENGINE = MEMORY;
 
455
LOAD DATA INFILE '<MYSQLTEST_VARDIR>/tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
 
456
DROP TABLE test.backup_info;
 
457
Create table test/def/t2_c failed: Translate frm error
 
458
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
459
drop table if exists t2_c;
 
460
520093696,<the_backup_id>