2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
8
DROP DATABASE IF EXISTS federated;
9
CREATE DATABASE federated;
10
DROP DATABASE IF EXISTS federated;
11
CREATE DATABASE federated;
12
DROP TABLE IF EXISTS federated.t1;
14
Note 1051 Unknown table 't1'
15
CREATE TABLE federated.t1 (
16
`id` int(20) NOT NULL,
17
`group` int NOT NULL default 0,
18
`a\\b` int NOT NULL default 0,
19
`a\\` int NOT NULL default 0,
20
`name` varchar(32) NOT NULL default ''
22
DEFAULT CHARSET=latin1;
23
DROP TABLE IF EXISTS federated.t1;
25
Note 1051 Unknown table 't1'
26
CREATE TABLE federated.t1 (
27
`id` int(20) NOT NULL,
28
`group` int NOT NULL default 0,
29
`a\\b` inT NOT NULL default 0,
30
`a\\` int NOT NULL default 0,
31
`name` varchar(32) NOT NULL default ''
33
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
34
CONNECTION='mysql://root@127.0.0.1:@/too/many/items/federated/t1';
35
ERROR HY000: Can't create federated table. The data source connection string 'mysql://root@127.0.0.1:@/too/many/items/federated/t1' is not in the correct format
36
CREATE TABLE federated.t1 (
37
`id` int(20) NOT NULL,
38
`group` int NOT NULL default 0,
39
`a\\b` iNt NOT NULL default 0,
40
`a\\` int NOT NULL default 0,
41
`name` varchar(32) NOT NULL default ''
43
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
44
CONNECTION='mysql://root@127.0.0.1';
45
ERROR HY000: Can't create federated table. The data source connection string 'mysql://root@127.0.0.1' is not in the correct format
46
CREATE TABLE federated.t1 (
47
`id` int(20) NOT NULL,
48
`group` int NOT NULL default 0,
49
`a\\b` iNT NOT NULL default 0,
50
`a\\` int NOT NULL default 0,
51
`name` varchar(32) NOT NULL default ''
53
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
54
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t3';
55
SELECT * FROM federated.t1;
56
ERROR HY000: The foreign data source you are trying to reference does not exist. Data source error: error: 1146 'Table 'federated.t3' doesn't exist'
57
DROP TABLE federated.t1;
58
CREATE TABLE federated.t1 (
59
`id` int(20) NOT NULL,
60
`group` int NOT NULL default 0,
61
`a\\b` Int NOT NULL default 0,
62
`a\\` int NOT NULL default 0,
63
`name` varchar(32) NOT NULL default ''
65
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
66
CONNECTION='mysql://user:pass@127.0.0.1:SLAVE_PORT/federated/t1';
67
SELECT * FROM federated.t1;
68
ERROR HY000: Unable to connect to foreign data source: Access denied for user 'user'@'localhost' (using password: YES)
69
DROP TABLE federated.t1;
70
CREATE TABLE federated.t1 (
71
`id` int(20) NOT NULL,
72
`group` int NOT NULL default 0,
73
`a\\b` InT NOT NULL default 0,
74
`a\\` int NOT NULL default 0,
75
`name` varchar(32) NOT NULL default ''
77
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
78
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
79
INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
80
INSERT INTO federated.t1 (id, name) VALUES (2, 'fee');
81
INSERT INTO federated.t1 (id, `group`) VALUES (3, 42);
82
INSERT INTO federated.t1 (id, `a\\b`) VALUES (4, 23);
83
INSERT INTO federated.t1 (id, `a\\`) VALUES (5, 1);
84
SELECT * FROM federated.t1;
85
id group a\\b a\\ name
91
DELETE FROM federated.t1;
92
DROP TABLE federated.t1;
93
DROP TABLE IF EXISTS federated.t2;
95
Note 1051 Unknown table 't2'
96
CREATE TABLE federated.t2 (
97
`id` int(20) NOT NULL,
98
`name` varchar(32) NOT NULL default ''
100
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
101
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
102
SHOW CREATE TABLE federated.t2;
104
t2 CREATE TABLE `t2` (
105
`id` int(20) NOT NULL,
106
`name` varchar(32) NOT NULL DEFAULT ''
107
) ENGINE=FEDERATED DEFAULT CHARSET=latin1 CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'
108
INSERT INTO federated.t2 (id, name) VALUES (1, 'foo');
109
INSERT INTO federated.t2 (id, name) VALUES (2, 'fee');
110
SELECT * FROM federated.t2 ORDER BY id, name;
114
DROP TABLE federated.t2;
115
DROP TABLE IF EXISTS federated.t1;
116
DROP TABLE IF EXISTS federated.`t1%`;
118
Note 1051 Unknown table 't1%'
119
CREATE TABLE federated.`t1%` (
120
`id` int(20) NOT NULL,
121
`name` varchar(32) NOT NULL default ''
123
DEFAULT CHARSET=latin1;
124
DROP TABLE IF EXISTS federated.t1;
126
Note 1051 Unknown table 't1'
127
CREATE TABLE federated.t1 (
128
`id` int(20) NOT NULL,
129
`name` varchar(32) NOT NULL default ''
131
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
132
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1%';
133
INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
134
INSERT INTO federated.t1 (id, name) VALUES (2, 'fee');
135
SELECT * FROM federated.t1 ORDER BY id,name;
139
DELETE FROM federated.t1;
140
DROP TABLE IF EXISTS federated.t1;
141
CREATE TABLE federated.`t1%` (
142
`id` int(20) NOT NULL,
143
`name` varchar(32) NOT NULL default ''
145
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
146
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1%';
147
INSERT INTO federated.`t1%` (id, name) VALUES (1, 'foo');
148
INSERT INTO federated.`t1%` (id, name) VALUES (2, 'fee');
149
SELECT * FROM federated.`t1%` ORDER BY id, name;
153
DELETE FROM federated.`t1%`;
154
DROP TABLE IF EXISTS federated.`t1%`;
155
DROP TABLE IF EXISTS federated.`t1%`;
156
DROP TABLE IF EXISTS federated.t1;
158
Note 1051 Unknown table 't1'
159
CREATE TABLE federated.t1 (
160
`id` int(20) NOT NULL auto_increment,
161
`name` varchar(32) NOT NULL default '',
162
`other` int(20) NOT NULL default '0',
163
`created` datetime default '2004-04-04 04:04:04',
165
DEFAULT CHARSET=latin1;
166
CREATE TABLE federated.t1 (
167
`id` int(20) NOT NULL auto_increment,
168
`name` varchar(32) NOT NULL default '',
169
`other` int(20) NOT NULL default '0',
170
`created` datetime default '2004-04-04 04:04:04',
172
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
173
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
174
INSERT INTO federated.t1 (name, other) VALUES ('First Name', 11111);
175
INSERT INTO federated.t1 (name, other) VALUES ('Second Name', 22222);
176
INSERT INTO federated.t1 (name, other) VALUES ('Third Name', 33333);
177
INSERT INTO federated.t1 (name, other) VALUES ('Fourth Name', 44444);
178
INSERT INTO federated.t1 (name, other) VALUES ('Fifth Name', 55555);
179
INSERT INTO federated.t1 (name, other) VALUES ('Sixth Name', 66666);
180
INSERT INTO federated.t1 (name, other) VALUES ('Seventh Name', 77777);
181
INSERT INTO federated.t1 (name, other) VALUES ('Eigth Name', 88888);
182
INSERT INTO federated.t1 (name, other) VALUES ('Ninth Name', 99999);
183
INSERT INTO federated.t1 (name, other) VALUES ('Tenth Name', 101010);
184
SELECT * FROM federated.t1;
185
id name other created
186
1 First Name 11111 2004-04-04 04:04:04
187
2 Second Name 22222 2004-04-04 04:04:04
188
3 Third Name 33333 2004-04-04 04:04:04
189
4 Fourth Name 44444 2004-04-04 04:04:04
190
5 Fifth Name 55555 2004-04-04 04:04:04
191
6 Sixth Name 66666 2004-04-04 04:04:04
192
7 Seventh Name 77777 2004-04-04 04:04:04
193
8 Eigth Name 88888 2004-04-04 04:04:04
194
9 Ninth Name 99999 2004-04-04 04:04:04
195
10 Tenth Name 101010 2004-04-04 04:04:04
196
SELECT * FROM federated.t1 WHERE id = 5;
197
id name other created
198
5 Fifth Name 55555 2004-04-04 04:04:04
199
SELECT * FROM federated.t1 WHERE name = 'Sixth Name';
200
id name other created
201
6 Sixth Name 66666 2004-04-04 04:04:04
202
SELECT * FROM federated.t1 WHERE id = 6 and name = 'Sixth Name';
203
id name other created
204
6 Sixth Name 66666 2004-04-04 04:04:04
205
SELECT * FROM federated.t1 WHERE name = 'Sixth Name' AND other = 44444;
206
id name other created
207
SELECT * FROM federated.t1 WHERE name like '%th%';
208
id name other created
209
3 Third Name 33333 2004-04-04 04:04:04
210
4 Fourth Name 44444 2004-04-04 04:04:04
211
5 Fifth Name 55555 2004-04-04 04:04:04
212
6 Sixth Name 66666 2004-04-04 04:04:04
213
7 Seventh Name 77777 2004-04-04 04:04:04
214
8 Eigth Name 88888 2004-04-04 04:04:04
215
9 Ninth Name 99999 2004-04-04 04:04:04
216
10 Tenth Name 101010 2004-04-04 04:04:04
217
UPDATE federated.t1 SET name = '3rd name' WHERE id = 3;
218
SELECT * FROM federated.t1 WHERE name = '3rd name';
219
id name other created
220
3 3rd name 33333 2004-04-04 04:04:04
221
UPDATE federated.t1 SET name = 'Third name' WHERE name = '3rd name';
222
SELECT * FROM federated.t1 WHERE name = 'Third name';
223
id name other created
224
3 Third name 33333 2004-04-04 04:04:04
225
SELECT * FROM federated.t1 ORDER BY id DESC;
226
id name other created
227
10 Tenth Name 101010 2004-04-04 04:04:04
228
9 Ninth Name 99999 2004-04-04 04:04:04
229
8 Eigth Name 88888 2004-04-04 04:04:04
230
7 Seventh Name 77777 2004-04-04 04:04:04
231
6 Sixth Name 66666 2004-04-04 04:04:04
232
5 Fifth Name 55555 2004-04-04 04:04:04
233
4 Fourth Name 44444 2004-04-04 04:04:04
234
3 Third name 33333 2004-04-04 04:04:04
235
2 Second Name 22222 2004-04-04 04:04:04
236
1 First Name 11111 2004-04-04 04:04:04
237
SELECT * FROM federated.t1 ORDER BY name;
238
id name other created
239
8 Eigth Name 88888 2004-04-04 04:04:04
240
5 Fifth Name 55555 2004-04-04 04:04:04
241
1 First Name 11111 2004-04-04 04:04:04
242
4 Fourth Name 44444 2004-04-04 04:04:04
243
9 Ninth Name 99999 2004-04-04 04:04:04
244
2 Second Name 22222 2004-04-04 04:04:04
245
7 Seventh Name 77777 2004-04-04 04:04:04
246
6 Sixth Name 66666 2004-04-04 04:04:04
247
10 Tenth Name 101010 2004-04-04 04:04:04
248
3 Third name 33333 2004-04-04 04:04:04
249
SELECT * FROM federated.t1 ORDER BY name DESC;
250
id name other created
251
3 Third name 33333 2004-04-04 04:04:04
252
10 Tenth Name 101010 2004-04-04 04:04:04
253
6 Sixth Name 66666 2004-04-04 04:04:04
254
7 Seventh Name 77777 2004-04-04 04:04:04
255
2 Second Name 22222 2004-04-04 04:04:04
256
9 Ninth Name 99999 2004-04-04 04:04:04
257
4 Fourth Name 44444 2004-04-04 04:04:04
258
1 First Name 11111 2004-04-04 04:04:04
259
5 Fifth Name 55555 2004-04-04 04:04:04
260
8 Eigth Name 88888 2004-04-04 04:04:04
261
SELECT * FROM federated.t1 ORDER BY name ASC;
262
id name other created
263
8 Eigth Name 88888 2004-04-04 04:04:04
264
5 Fifth Name 55555 2004-04-04 04:04:04
265
1 First Name 11111 2004-04-04 04:04:04
266
4 Fourth Name 44444 2004-04-04 04:04:04
267
9 Ninth Name 99999 2004-04-04 04:04:04
268
2 Second Name 22222 2004-04-04 04:04:04
269
7 Seventh Name 77777 2004-04-04 04:04:04
270
6 Sixth Name 66666 2004-04-04 04:04:04
271
10 Tenth Name 101010 2004-04-04 04:04:04
272
3 Third name 33333 2004-04-04 04:04:04
273
SELECT * FROM federated.t1 GROUP BY other;
274
id name other created
275
1 First Name 11111 2004-04-04 04:04:04
276
2 Second Name 22222 2004-04-04 04:04:04
277
3 Third name 33333 2004-04-04 04:04:04
278
4 Fourth Name 44444 2004-04-04 04:04:04
279
5 Fifth Name 55555 2004-04-04 04:04:04
280
6 Sixth Name 66666 2004-04-04 04:04:04
281
7 Seventh Name 77777 2004-04-04 04:04:04
282
8 Eigth Name 88888 2004-04-04 04:04:04
283
9 Ninth Name 99999 2004-04-04 04:04:04
284
10 Tenth Name 101010 2004-04-04 04:04:04
285
DELETE FROM federated.t1 WHERE id = 5;
286
SELECT * FROM federated.t1 WHERE id = 5;
287
id name other created
288
DELETE FROM federated.t1;
289
SELECT * FROM federated.t1 WHERE id = 5;
290
id name other created
291
DROP TABLE IF EXISTS federated.t1;
292
CREATE TABLE federated.t1 (
293
`id` int(20) NOT NULL auto_increment,
294
`name` varchar(32) NOT NULL default '',
295
`other` int(20) NOT NULL default '0',
296
`created` datetime NOT NULL,
300
key created(`created`))
301
DEFAULT CHARSET=latin1;
302
DROP TABLE IF EXISTS federated.t1;
303
CREATE TABLE federated.t1 (
304
`id` int(20) NOT NULL auto_increment,
305
`name` varchar(32) NOT NULL default '',
306
`other` int(20) NOT NULL default '0',
307
`created` datetime NOT NULL,
311
key created(`created`))
312
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
313
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
314
INSERT INTO federated.t1 (name, other, created)
315
VALUES ('First Name', 11111, '2004-01-01 01:01:01');
316
INSERT INTO federated.t1 (name, other, created)
317
VALUES ('Second Name', 22222, '2004-01-23 02:43:00');
318
INSERT INTO federated.t1 (name, other, created)
319
VALUES ('Third Name', 33333, '2004-02-14 02:14:00');
320
INSERT INTO federated.t1 (name, other, created)
321
VALUES ('Fourth Name', 44444, '2003-04-05 00:00:00');
322
INSERT INTO federated.t1 (name, other, created)
323
VALUES ('Fifth Name', 55555, '2001-02-02 02:02:02');
324
INSERT INTO federated.t1 (name, other, created)
325
VALUES ('Sixth Name', 66666, '2005-06-06 15:30:00');
326
INSERT INTO federated.t1 (name, other, created)
327
VALUES ('Seventh Name', 77777, '2003-12-12 18:32:00');
328
INSERT INTO federated.t1 (name, other, created)
329
VALUES ('Eigth Name', 88888, '2005-03-12 11:00:00');
330
INSERT INTO federated.t1 (name, other, created)
331
VALUES ('Ninth Name', 99999, '2005-03-12 11:00:01');
332
INSERT INTO federated.t1 (name, other, created)
333
VALUES ('Tenth Name', 101010, '2005-03-12 12:00:01');
334
SELECT * FROM federated.t1;
335
id name other created
336
1 First Name 11111 2004-01-01 01:01:01
337
2 Second Name 22222 2004-01-23 02:43:00
338
3 Third Name 33333 2004-02-14 02:14:00
339
4 Fourth Name 44444 2003-04-05 00:00:00
340
5 Fifth Name 55555 2001-02-02 02:02:02
341
6 Sixth Name 66666 2005-06-06 15:30:00
342
7 Seventh Name 77777 2003-12-12 18:32:00
343
8 Eigth Name 88888 2005-03-12 11:00:00
344
9 Ninth Name 99999 2005-03-12 11:00:01
345
10 Tenth Name 101010 2005-03-12 12:00:01
346
SELECT * FROM federated.t1 WHERE id = 5;
347
id name other created
348
5 Fifth Name 55555 2001-02-02 02:02:02
349
SELECT * FROM federated.t1 WHERE id = 6 and name = 'Sixth Name';
350
id name other created
351
6 Sixth Name 66666 2005-06-06 15:30:00
352
SELECT * FROM federated.t1 WHERE other = 44444;
353
id name other created
354
4 Fourth Name 44444 2003-04-05 00:00:00
355
SELECT * FROM federated.t1 WHERE name like '%th%';
356
id name other created
357
3 Third Name 33333 2004-02-14 02:14:00
358
4 Fourth Name 44444 2003-04-05 00:00:00
359
5 Fifth Name 55555 2001-02-02 02:02:02
360
6 Sixth Name 66666 2005-06-06 15:30:00
361
7 Seventh Name 77777 2003-12-12 18:32:00
362
8 Eigth Name 88888 2005-03-12 11:00:00
363
9 Ninth Name 99999 2005-03-12 11:00:01
364
10 Tenth Name 101010 2005-03-12 12:00:01
365
UPDATE federated.t1 SET name = '3rd name' WHERE id = 3;
366
SELECT * FROM federated.t1 WHERE name = '3rd name';
367
id name other created
368
3 3rd name 33333 2004-02-14 02:14:00
369
UPDATE federated.t1 SET name = 'Third name' WHERE name = '3rd name';
370
SELECT * FROM federated.t1 WHERE name = 'Third name';
371
id name other created
372
3 Third name 33333 2004-02-14 02:14:00
373
SELECT * FROM federated.t1 ORDER BY id DESC;
374
id name other created
375
10 Tenth Name 101010 2005-03-12 12:00:01
376
9 Ninth Name 99999 2005-03-12 11:00:01
377
8 Eigth Name 88888 2005-03-12 11:00:00
378
7 Seventh Name 77777 2003-12-12 18:32:00
379
6 Sixth Name 66666 2005-06-06 15:30:00
380
5 Fifth Name 55555 2001-02-02 02:02:02
381
4 Fourth Name 44444 2003-04-05 00:00:00
382
3 Third name 33333 2004-02-14 02:14:00
383
2 Second Name 22222 2004-01-23 02:43:00
384
1 First Name 11111 2004-01-01 01:01:01
385
SELECT * FROM federated.t1 ORDER BY name;
386
id name other created
387
8 Eigth Name 88888 2005-03-12 11:00:00
388
5 Fifth Name 55555 2001-02-02 02:02:02
389
1 First Name 11111 2004-01-01 01:01:01
390
4 Fourth Name 44444 2003-04-05 00:00:00
391
9 Ninth Name 99999 2005-03-12 11:00:01
392
2 Second Name 22222 2004-01-23 02:43:00
393
7 Seventh Name 77777 2003-12-12 18:32:00
394
6 Sixth Name 66666 2005-06-06 15:30:00
395
10 Tenth Name 101010 2005-03-12 12:00:01
396
3 Third name 33333 2004-02-14 02:14:00
397
SELECT * FROM federated.t1 ORDER BY name DESC;
398
id name other created
399
3 Third name 33333 2004-02-14 02:14:00
400
10 Tenth Name 101010 2005-03-12 12:00:01
401
6 Sixth Name 66666 2005-06-06 15:30:00
402
7 Seventh Name 77777 2003-12-12 18:32:00
403
2 Second Name 22222 2004-01-23 02:43:00
404
9 Ninth Name 99999 2005-03-12 11:00:01
405
4 Fourth Name 44444 2003-04-05 00:00:00
406
1 First Name 11111 2004-01-01 01:01:01
407
5 Fifth Name 55555 2001-02-02 02:02:02
408
8 Eigth Name 88888 2005-03-12 11:00:00
409
SELECT * FROM federated.t1 ORDER BY name ASC;
410
id name other created
411
8 Eigth Name 88888 2005-03-12 11:00:00
412
5 Fifth Name 55555 2001-02-02 02:02:02
413
1 First Name 11111 2004-01-01 01:01:01
414
4 Fourth Name 44444 2003-04-05 00:00:00
415
9 Ninth Name 99999 2005-03-12 11:00:01
416
2 Second Name 22222 2004-01-23 02:43:00
417
7 Seventh Name 77777 2003-12-12 18:32:00
418
6 Sixth Name 66666 2005-06-06 15:30:00
419
10 Tenth Name 101010 2005-03-12 12:00:01
420
3 Third name 33333 2004-02-14 02:14:00
421
SELECT * FROM federated.t1 GROUP BY other;
422
id name other created
423
1 First Name 11111 2004-01-01 01:01:01
424
2 Second Name 22222 2004-01-23 02:43:00
425
3 Third name 33333 2004-02-14 02:14:00
426
4 Fourth Name 44444 2003-04-05 00:00:00
427
5 Fifth Name 55555 2001-02-02 02:02:02
428
6 Sixth Name 66666 2005-06-06 15:30:00
429
7 Seventh Name 77777 2003-12-12 18:32:00
430
8 Eigth Name 88888 2005-03-12 11:00:00
431
9 Ninth Name 99999 2005-03-12 11:00:01
432
10 Tenth Name 101010 2005-03-12 12:00:01
433
DELETE FROM federated.t1 WHERE id = 5;
434
SELECT * FROM federated.t1 WHERE id = 5;
435
id name other created
436
DELETE FROM federated.t1;
437
SELECT * FROM federated.t1 WHERE id = 5;
438
id name other created
439
DROP TABLE IF EXISTS federated.t1;
440
CREATE TABLE federated.t1 (
441
`id` int(20) NOT NULL auto_increment,
444
PRIMARY KEY (`id`) );
445
DROP TABLE IF EXISTS federated.t1;
446
CREATE TABLE federated.t1 (
447
`id` int(20) NOT NULL auto_increment,
452
DEFAULT CHARSET=latin1
453
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
454
INSERT INTO federated.t1 (name, other) VALUES ('First Name', 11111);
455
INSERT INTO federated.t1 (name, other) VALUES ('Second Name', NULL);
456
INSERT INTO federated.t1 (name, other) VALUES ('Third Name', 33333);
457
INSERT INTO federated.t1 (name, other) VALUES (NULL, NULL);
458
INSERT INTO federated.t1 (name, other) VALUES ('Fifth Name', 55555);
459
INSERT INTO federated.t1 (name, other) VALUES ('Sixth Name', 66666);
460
INSERT INTO federated.t1 (name) VALUES ('Seventh Name');
461
INSERT INTO federated.t1 (name, other) VALUES ('Eigth Name', 88888);
462
INSERT INTO federated.t1 (name, other) VALUES ('Ninth Name', 99999);
463
INSERT INTO federated.t1 (other) VALUES ('fee fie foe fum');
464
SELECT * FROM federated.t1 WHERE other IS NULL;
469
SELECT * FROM federated.t1 WHERE name IS NULL;
472
10 NULL fee fie foe fum
473
SELECT * FROM federated.t1 WHERE name IS NULL and other IS NULL;
476
SELECT * FROM federated.t1 WHERE name IS NULL or other IS NULL;
481
10 NULL fee fie foe fum
483
SET name = 'Fourth Name', other = 'four four four'
484
WHERE name IS NULL AND other IS NULL;
485
UPDATE federated.t1 SET other = 'two two two two' WHERE name = 'Second Name';
486
UPDATE federated.t1 SET other = 'seven seven' WHERE name like 'Sev%';
487
UPDATE federated.t1 SET name = 'Tenth Name' WHERE other like 'fee fie%';
488
SELECT * FROM federated.t1 WHERE name IS NULL OR other IS NULL ;
490
SELECT * FROM federated.t1;
493
2 Second Name two two two two
495
4 Fourth Name four four four
498
7 Seventh Name seven seven
501
10 Tenth Name fee fie foe fum
502
DROP TABLE IF EXISTS federated.t1;
503
CREATE TABLE federated.t1 (
504
`id` int(20) NOT NULL auto_increment,
505
`name` varchar(32) NOT NULL DEFAULT '',
506
`other` varchar(20) NOT NULL DEFAULT '',
508
KEY nameoth (name, other) );
509
DROP TABLE IF EXISTS federated.t1;
510
CREATE TABLE federated.t1 (
511
`id` int(20) NOT NULL auto_increment,
512
`name` varchar(32) NOT NULL DEFAULT '',
513
`other` varchar(20) NOT NULL DEFAULT '',
515
KEY nameoth (name, other))
516
ENGINE="FEDERATED" DEFAULT
518
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
519
INSERT INTO federated.t1 (name, other) VALUES ('First Name', '1111');
520
INSERT INTO federated.t1 (name, other) VALUES ('Second Name', '2222');
521
INSERT INTO federated.t1 (name, other) VALUES ('Third Name', '3333');
522
SELECT * FROM federated.t1 WHERE name = 'Second Name';
525
SELECT * FROM federated.t1 WHERE other = '2222';
528
SELECT * FROM federated.t1 WHERE name = 'Third Name';
531
SELECT * FROM federated.t1 WHERE name = 'Third Name' AND other = '3333';
534
DROP TABLE IF EXISTS federated.t1;
535
CREATE TABLE federated.t1 (
536
`id` int NOT NULL auto_increment,
537
`name` char(32) NOT NULL DEFAULT '',
538
`bincol` binary(1) NOT NULL,
539
`floatval` decimal(5,2) NOT NULL DEFAULT 0.0,
540
`other` int NOT NULL DEFAULT 0,
542
KEY nameoth(name, other),
544
KEY floatval(floatval));
545
DROP TABLE IF EXISTS federated.t1;
546
CREATE TABLE federated.t1 (
547
`id` int NOT NULL auto_increment,
548
`name` char(32) NOT NULL DEFAULT '',
549
`bincol` binary(1) NOT NULL,
550
`floatval` decimal(5,2) NOT NULL DEFAULT 0.0,
551
`other` int NOT NULL DEFAULT 0,
553
KEY nameoth(name,other),
555
KEY floatval(floatval))
557
DEFAULT CHARSET=latin1
558
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
559
INSERT INTO federated.t1 (name, bincol, floatval, other)
560
VALUES ('first', 0x65, 11.11, 1111);
561
INSERT INTO federated.t1 (name, bincol, floatval, other)
562
VALUES ('second', 0x66, 22.22, 2222);
563
INSERT INTO federated.t1 (name, bincol, floatval, other)
564
VALUES ('third', 'g', 22.22, 2222);
565
SELECT * FROM federated.t1;
566
id name bincol floatval other
568
2 second f 22.22 2222
570
SELECT * FROM federated.t1 WHERE name = 'second';
571
id name bincol floatval other
572
2 second f 22.22 2222
573
SELECT * FROM federated.t1 WHERE bincol= 'f';
574
id name bincol floatval other
575
2 second f 22.22 2222
576
SELECT * FROM federated.t1 WHERE bincol= 0x66;
577
id name bincol floatval other
578
2 second f 22.22 2222
579
SELECT * FROM federated.t1 WHERE bincol= 0x67;
580
id name bincol floatval other
582
SELECT * FROM federated.t1 WHERE bincol= 'g';
583
id name bincol floatval other
585
SELECT * FROM federated.t1 WHERE floatval=11.11;
586
id name bincol floatval other
588
SELECT * FROM federated.t1 WHERE name='third';
589
id name bincol floatval other
591
SELECT * FROM federated.t1 WHERE other=2222;
592
id name bincol floatval other
593
2 second f 22.22 2222
595
SELECT * FROM federated.t1 WHERE name='third' and other=2222;
596
id name bincol floatval other
598
DROP TABLE IF EXISTS federated.t1;
599
CREATE TABLE federated.t1 (
600
`id` int NOT NULL auto_increment,
601
`col1` int(10) NOT NULL DEFAULT 0,
602
`col2` varchar(64) NOT NULL DEFAULT '',
603
`col3` int(20) NOT NULL,
604
`col4` int(40) NOT NULL,
605
primary key (`id`, `col1`, `col2`, `col3`, `col4`),
610
DROP TABLE IF EXISTS federated.t1;
611
CREATE TABLE federated.t1 (
612
`id` int NOT NULL auto_increment,
613
`col1` int(10) NOT NULL DEFAULT 0,
614
`col2` varchar(64) NOT NULL DEFAULT '',
615
`col3` int(20) NOT NULL,
616
`col4` int(40) NOT NULL,
617
primary key (`id`, `col1`, `col2`, `col3`, `col4`),
623
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
624
INSERT INTO federated.t1 (col1, col2, col3, col4)
625
VALUES (1, 'one One', 11, 1111);
626
INSERT INTO federated.t1 (col1, col2, col3, col4)
627
VALUES (2, 'Two two', 22, 2222);
628
INSERT INTO federated.t1 (col1, col2, col3, col4)
629
VALUES (3, 'three Three', 33, 33333);
630
INSERT INTO federated.t1 (col1, col2, col3, col4)
631
VALUES (4, 'fourfourfour', 444, 4444444);
632
INSERT INTO federated.t1 (col1, col2, col3, col4)
633
VALUES (5, 'five 5 five five 5', 5, 55555);
634
INSERT INTO federated.t1 (col1, col2, col3, col4)
635
VALUES (6, 'six six Sixsix', 6666, 6);
636
INSERT INTO federated.t1 (col1, col2, col3, col4)
637
VALUES (7, 'seven Sevenseven', 77777, 7777);
638
INSERT INTO federated.t1 (col1, col2, col3, col4)
639
VALUES (8, 'eight eight eight', 88888, 88);
640
INSERT INTO federated.t1 (col1, col2, col3, col4)
641
VALUES (9, 'nine Nine', 999999, 999999);
642
INSERT INTO federated.t1 (col1, col2, col3, col4)
643
VALUES (10, 'Tenth ten TEN', 1010101, 1010);
644
SELECT * FROM federated.t1 WHERE col2 = 'two two';
645
id col1 col2 col3 col4
647
SELECT * FROM federated.t1 WHERE col2 = 'two Two';
648
id col1 col2 col3 col4
650
SELECT * FROM federated.t1 WHERE id = 3;
651
id col1 col2 col3 col4
652
3 3 three Three 33 33333
653
SELECT * FROM federated.t1 WHERE id = 3 AND col1 = 3;
654
id col1 col2 col3 col4
655
3 3 three Three 33 33333
656
SELECT * FROM federated.t1 WHERE id = 4 AND col1 = 4 AND col2 = 'Two two';
657
id col1 col2 col3 col4
658
SELECT * FROM federated.t1 WHERE id = 4 AND col1 = 4 AND col2 = 'fourfourfour';
659
id col1 col2 col3 col4
660
4 4 fourfourfour 444 4444444
661
SELECT * FROM federated.t1 WHERE id = 5 AND col2 = 'five 5 five five 5'
663
id col1 col2 col3 col4
664
5 5 five 5 five five 5 5 55555
665
SELECT * FROM federated.t1 WHERE id = 5 AND col2 = 'five 5 five five 5'
668
id col1 col2 col3 col4
669
5 5 five 5 five five 5 5 55555
670
SELECT * FROM federated.t1 WHERE id = 5
671
AND col2 = 'Two two' AND col3 = 22
673
id col1 col2 col3 col4
674
SELECT * FROM federated.t1 WHERE id = 5
675
AND col2 = 'five 5 five five 5' AND col3 = 5
677
id col1 col2 col3 col4
678
5 5 five 5 five five 5 5 55555
679
SELECT * FROM federated.t1 WHERE (id = 5 AND col2 = 'five 5 five five 5')
680
OR (col2 = 'three Three' AND col3 = 33);
681
id col1 col2 col3 col4
682
5 5 five 5 five five 5 5 55555
683
3 3 three Three 33 33333
684
SELECT * FROM federated.t1 WHERE (id = 5 AND col2 = 'Two two')
685
OR (col2 = 444 AND col3 = 4444444);
686
id col1 col2 col3 col4
687
SELECT * FROM federated.t1 WHERE id = 1
692
id col1 col2 col3 col4
695
3 3 three Three 33 33333
696
4 4 fourfourfour 444 4444444
697
10 10 Tenth ten TEN 1010101 1010
698
SELECT * FROM federated.t1 WHERE id > 5;
699
id col1 col2 col3 col4
700
6 6 six six Sixsix 6666 6
701
7 7 seven Sevenseven 77777 7777
702
8 8 eight eight eight 88888 88
703
9 9 nine Nine 999999 999999
704
10 10 Tenth ten TEN 1010101 1010
705
SELECT * FROM federated.t1 WHERE id >= 5;
706
id col1 col2 col3 col4
707
5 5 five 5 five five 5 5 55555
708
6 6 six six Sixsix 6666 6
709
7 7 seven Sevenseven 77777 7777
710
8 8 eight eight eight 88888 88
711
9 9 nine Nine 999999 999999
712
10 10 Tenth ten TEN 1010101 1010
713
SELECT * FROM federated.t1 WHERE id < 5;
714
id col1 col2 col3 col4
717
3 3 three Three 33 33333
718
4 4 fourfourfour 444 4444444
719
SELECT * FROM federated.t1 WHERE id <= 5;
720
id col1 col2 col3 col4
723
3 3 three Three 33 33333
724
4 4 fourfourfour 444 4444444
725
5 5 five 5 five five 5 5 55555
726
SELECT * FROM federated.t1 WHERE id != 5;
727
id col1 col2 col3 col4
730
3 3 three Three 33 33333
731
4 4 fourfourfour 444 4444444
732
6 6 six six Sixsix 6666 6
733
7 7 seven Sevenseven 77777 7777
734
8 8 eight eight eight 88888 88
735
9 9 nine Nine 999999 999999
736
10 10 Tenth ten TEN 1010101 1010
737
SELECT * FROM federated.t1 WHERE id > 3 AND id < 7;
738
id col1 col2 col3 col4
739
4 4 fourfourfour 444 4444444
740
5 5 five 5 five five 5 5 55555
741
6 6 six six Sixsix 6666 6
742
SELECT * FROM federated.t1 WHERE id > 3 AND id <= 7;
743
id col1 col2 col3 col4
744
4 4 fourfourfour 444 4444444
745
5 5 five 5 five five 5 5 55555
746
6 6 six six Sixsix 6666 6
747
7 7 seven Sevenseven 77777 7777
748
SELECT * FROM federated.t1 WHERE id >= 3 AND id <= 7;
749
id col1 col2 col3 col4
750
3 3 three Three 33 33333
751
4 4 fourfourfour 444 4444444
752
5 5 five 5 five five 5 5 55555
753
6 6 six six Sixsix 6666 6
754
7 7 seven Sevenseven 77777 7777
755
SELECT * FROM federated.t1 WHERE id < 3 AND id <= 7;
756
id col1 col2 col3 col4
759
SELECT * FROM federated.t1 WHERE id < 3 AND id > 7;
760
id col1 col2 col3 col4
761
SELECT * FROM federated.t1 WHERE id < 3 OR id > 7;
762
id col1 col2 col3 col4
765
8 8 eight eight eight 88888 88
766
9 9 nine Nine 999999 999999
767
10 10 Tenth ten TEN 1010101 1010
768
SELECT * FROM federated.t1 WHERE col2 = 'three Three';
769
id col1 col2 col3 col4
770
3 3 three Three 33 33333
771
SELECT * FROM federated.t1 WHERE col2 > 'one';
772
id col1 col2 col3 col4
775
3 3 three Three 33 33333
776
6 6 six six Sixsix 6666 6
777
7 7 seven Sevenseven 77777 7777
778
10 10 Tenth ten TEN 1010101 1010
779
SELECT * FROM federated.t1 WHERE col2 LIKE 's%';
780
id col1 col2 col3 col4
781
6 6 six six Sixsix 6666 6
782
7 7 seven Sevenseven 77777 7777
783
SELECT * FROM federated.t1 WHERE col2 LIKE 'si%';
784
id col1 col2 col3 col4
785
6 6 six six Sixsix 6666 6
786
SELECT * FROM federated.t1 WHERE col2 LIKE 'se%';
787
id col1 col2 col3 col4
788
7 7 seven Sevenseven 77777 7777
789
SELECT * FROM federated.t1 WHERE col2 NOT LIKE 'e%';
790
id col1 col2 col3 col4
793
3 3 three Three 33 33333
794
4 4 fourfourfour 444 4444444
795
5 5 five 5 five five 5 5 55555
796
6 6 six six Sixsix 6666 6
797
7 7 seven Sevenseven 77777 7777
798
9 9 nine Nine 999999 999999
799
10 10 Tenth ten TEN 1010101 1010
800
SELECT * FROM federated.t1 WHERE col2 <> 'one One';
801
id col1 col2 col3 col4
802
4 4 fourfourfour 444 4444444
803
5 5 five 5 five five 5 5 55555
804
8 8 eight eight eight 88888 88
805
9 9 nine Nine 999999 999999
807
3 3 three Three 33 33333
808
6 6 six six Sixsix 6666 6
809
7 7 seven Sevenseven 77777 7777
810
10 10 Tenth ten TEN 1010101 1010
811
DROP TABLE IF EXISTS federated.t1;
812
CREATE TABLE federated.t1 (
813
`col1` varchar(8) NOT NULL DEFAULT '',
814
`col2` varchar(128) NOT NULL DEFAULT '',
815
`col3` varchar(20) NOT NULL DEFAULT '',
816
`col4` varchar(40) NOT NULL DEFAULT '',
817
primary key (`col1`, `col2`, `col3`, `col4`),
818
key 3key(`col2`,`col3`,`col4`),
819
key 2key (`col3`,`col4`),
821
DROP TABLE IF EXISTS federated.t1;
822
CREATE TABLE federated.t1 (
823
`col1` varchar(8) NOT NULL DEFAULT '',
824
`col2` varchar(128) NOT NULL DEFAULT '',
825
`col3` varchar(20) NOT NULL DEFAULT '',
826
`col4` varchar(40) NOT NULL DEFAULT '',
827
primary key (`col1`, `col2`, `col3`, `col4`),
828
key 3key(`col2`,`col3`,`col4`),
829
key 2key (`col3`,`col4`),
832
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
833
INSERT INTO federated.t1 (col1, col2, col3, col4)
834
VALUES ('aaaa', 'aaaaaaaaaaaaaaaaaaa', 'ababababab', 'acacacacacacacac');
835
INSERT INTO federated.t1 (col1, col2, col3, col4)
836
VALUES ('bbbb', 'bbbbbbbbbbbbbbbbbbb', 'bababababa', 'bcbcbcbcbcbcbcbc');
837
INSERT INTO federated.t1 (col1, col2, col3, col4)
838
VALUES ('cccc', 'ccccccccccccccccccc', 'cacacacaca', 'cbcbcbcbcbcbcbcb');
839
INSERT INTO federated.t1 (col1, col2, col3, col4)
840
VALUES ('dddd', 'ddddddddddddddddddd', 'dadadadada', 'dcdcdcdcdcdcdcdc');
841
INSERT INTO federated.t1 (col1, col2, col3, col4)
842
VALUES ('eeee', 'eeeeeeeeeeeeeeeeeee', 'eaeaeaeaea', 'ecececececececec');
843
INSERT INTO federated.t1 (col1, col2, col3, col4)
844
VALUES ('ffff', 'fffffffffffffffffff', 'fafafafafa', 'fcfcfcfcfcfcfcfc');
845
INSERT INTO federated.t1 (col1, col2, col3, col4)
846
VALUES ('gggg', 'ggggggggggggggggggg', 'gagagagaga', 'gcgcgcgcgcgcgcgc');
847
INSERT INTO federated.t1 (col1, col2, col3, col4)
848
VALUES ('hhhh', 'hhhhhhhhhhhhhhhhhhh', 'hahahahaha', 'hchchchchchchchc');
849
SELECT * FROM federated.t1 WHERE col1 = 'cccc';
851
cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
852
SELECT * FROM federated.t1 WHERE col2 = 'eeeeeeeeeeeeeeeeeee';
854
eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
855
SELECT * FROM federated.t1 WHERE col3 = 'bababababa';
857
bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
858
SELECT * FROM federated.t1 WHERE col1 = 'gggg' AND col2 = 'ggggggggggggggggggg';
860
gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
861
SELECT * FROM federated.t1 WHERE col1 = 'gggg' AND col3 = 'gagagagaga';
863
gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
864
SELECT * FROM federated.t1 WHERE col1 = 'ffff' AND col4 = 'fcfcfcfcfcfcfcfc';
866
ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
867
SELECT * FROM federated.t1 WHERE col1 > 'bbbb';
869
cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
870
dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
871
eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
872
ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
873
gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
874
hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
875
SELECT * FROM federated.t1 WHERE col1 >= 'bbbb';
877
bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
878
cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
879
dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
880
eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
881
ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
882
gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
883
hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
884
SELECT * FROM federated.t1 WHERE col1 < 'bbbb';
886
aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
887
SELECT * FROM federated.t1 WHERE col1 <= 'bbbb';
889
aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
890
bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
891
SELECT * FROM federated.t1 WHERE col1 <> 'bbbb';
893
aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
894
cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
895
dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
896
eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
897
ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
898
gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
899
hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
900
SELECT * FROM federated.t1 WHERE col1 LIKE 'b%';
902
bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
903
SELECT * FROM federated.t1 WHERE col4 LIKE '%b%';
905
bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
906
cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
907
SELECT * FROM federated.t1 WHERE col1 NOT LIKE 'c%';
909
aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
910
bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
911
dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
912
eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
913
ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
914
gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
915
hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
916
SELECT * FROM federated.t1 WHERE col4 NOT LIKE '%c%';
918
DROP TABLE IF EXISTS federated.t1;
919
CREATE TABLE federated.t1 (
920
`col1` varchar(8) NOT NULL DEFAULT '',
921
`col2` int(8) NOT NULL DEFAULT 0,
922
`col3` varchar(8) NOT NULL DEFAULT '',
923
primary key (`col1`, `col2`, `col3`));
924
DROP TABLE IF EXISTS federated.t1;
925
CREATE TABLE federated.t1 (
926
`col1` varchar(8) NOT NULL DEFAULT '',
927
`col2` varchar(8) NOT NULL DEFAULT '',
928
`col3` varchar(8) NOT NULL DEFAULT '',
929
primary key (`col1`, `col2`, `col3`))
931
DEFAULT CHARSET=latin1
932
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
933
INSERT INTO federated.t1 VALUES ('a00', '110', 'cc0');
934
INSERT INTO federated.t1 VALUES ('aaa', '111', 'ccc');
935
INSERT INTO federated.t1 VALUES ('bbb', '222', 'yyy');
936
INSERT INTO federated.t1 VALUES ('ccc', '111', 'zzz');
937
INSERT INTO federated.t1 VALUES ('ccd', '112', 'zzzz');
938
SELECT col3 FROM federated.t1 WHERE (
939
(col1 = 'aaa' AND col2 >= '111') OR col1 > 'aaa') AND
940
(col1 < 'ccc' OR ( col1 = 'ccc' AND col2 <= '111'));
945
SELECT col3 FROM federated.t1 WHERE (
946
(col1 = 'aaa' AND col2 >= '111') OR col1 > 'aaa') AND
947
(col1 < 'ccc' OR ( col1 = 'ccc' AND col2 <= '111'));
952
DROP TABLE IF EXISTS federated.t1;
953
CREATE TABLE federated.t1 (
958
DEFAULT CHARSET=latin1;
959
DROP TABLE IF EXISTS federated.t1;
960
CREATE TABLE federated.t1 (
966
DEFAULT CHARSET=latin1
967
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
968
INSERT INTO federated.t1 values (NULL, NULL, NULL, NULL);
969
INSERT INTO federated.t1 values ();
970
INSERT INTO federated.t1 (id) VALUES (1);
971
INSERT INTO federated.t1 (name, floatval, other)
972
VALUES ('foo', 33.33333332, NULL);
973
INSERT INTO federated.t1 (name, floatval, other)
974
VALUES (0, 00.3333, NULL);
975
SELECT * FROM federated.t1;
976
id name floatval other
980
NULL foo 33.3333 NULL
982
SELECT count(*) FROM federated.t1
989
DROP TABLE IF EXISTS federated.t1;
990
CREATE TABLE federated.t1 (
991
`blurb_id` int NOT NULL DEFAULT 0,
992
`blurb` text default '',
993
PRIMARY KEY (blurb_id))
994
DEFAULT CHARSET=latin1;
996
Warning 1101 BLOB/TEXT column 'blurb' can't have a default value
997
DROP TABLE IF EXISTS federated.t1;
998
CREATE TABLE federated.t1 (
999
`blurb_id` int NOT NULL DEFAULT 0,
1000
`blurb` text default '',
1001
PRIMARY KEY (blurb_id))
1003
DEFAULT CHARSET=latin1
1004
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1006
Warning 1101 BLOB/TEXT column 'blurb' can't have a default value
1007
INSERT INTO federated.t1 VALUES (1, " MySQL supports a number of column types in several categories: numeric types, date and time types, and string (character) types. This chapter first gives an overview of these column types, and then provides a more detailed description of the properties of the types in each category, and a summary of the column type storage requirements. The overview is intentionally brief. The more detailed descriptions should be consulted for additional information about particular column types, such as the allowable formats in which you can specify values.");
1008
INSERT INTO federated.t1 VALUES (2, "All arithmetic is done using signed BIGINT or DOUBLE values, so you should not use unsigned big integers larger than 9223372036854775807 (63 bits) except with bit functions! If you do that, some of the last digits in the result may be wrong because of rounding errors when converting a BIGINT value to a DOUBLE.");
1009
INSERT INTO federated.t1 VALUES (3, " A floating-point number. p represents the precision. It can be from 0 to 24 for a single-precision floating-point number and from 25 to 53 for a double-precision floating-point number. These types are like the FLOAT and DOUBLE types described immediately following. FLOAT(p) has the same range as the corresponding FLOAT and DOUBLE types, but the display size and number of decimals are undefined. ");
1010
INSERT INTO federated.t1 VALUES(4, "Die �bersetzung einer so umfangreichen technischen Dokumentation wie des MySQL-Referenzhandbuchs ist schon eine besondere Herausforderung. Zumindest f�r jemanden, der seine Zielsprache ernst nimmt:");
1011
SELECT * FROM federated.t1;
1013
1 MySQL supports a number of column types in several categories: numeric types, date and time types, and string (character) types. This chapter first gives an overview of these column types, and then provides a more detailed description of the properties of the types in each category, and a summary of the column type storage requirements. The overview is intentionally brief. The more detailed descriptions should be consulted for additional information about particular column types, such as the allowable formats in which you can specify values.
1014
2 All arithmetic is done using signed BIGINT or DOUBLE values, so you should not use unsigned big integers larger than 9223372036854775807 (63 bits) except with bit functions! If you do that, some of the last digits in the result may be wrong because of rounding errors when converting a BIGINT value to a DOUBLE.
1015
3 A floating-point number. p represents the precision. It can be from 0 to 24 for a single-precision floating-point number and from 25 to 53 for a double-precision floating-point number. These types are like the FLOAT and DOUBLE types described immediately following. FLOAT(p) has the same range as the corresponding FLOAT and DOUBLE types, but the display size and number of decimals are undefined.
1016
4 Die �bersetzung einer so umfangreichen technischen Dokumentation wie des MySQL-Referenzhandbuchs ist schon eine besondere Herausforderung. Zumindest f�r jemanden, der seine Zielsprache ernst nimmt:
1017
DROP TABLE IF EXISTS federated.t1;
1018
CREATE TABLE federated.t1 (
1022
PRIMARY KEY (a),key(b));
1023
DROP TABLE IF EXISTS federated.t1;
1024
CREATE TABLE federated.t1 (
1031
DEFAULT CHARSET=latin1
1032
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1033
INSERT INTO federated.t1 VALUES (3,3,3),(1,1,1),(2,2,2),(4,4,4);
1034
DROP TABLE IF EXISTS federated.t1;
1035
CREATE TABLE federated.t1 (i1 int, i2 int, i3 int, i4 int, i5 int, i6 int, i7 int, i8
1036
int, i9 int, i10 int, i11 int, i12 int, i13 int, i14 int, i15 int, i16 int, i17
1037
int, i18 int, i19 int, i20 int, i21 int, i22 int, i23 int, i24 int, i25 int,
1038
i26 int, i27 int, i28 int, i29 int, i30 int, i31 int, i32 int, i33 int, i34
1039
int, i35 int, i36 int, i37 int, i38 int, i39 int, i40 int, i41 int, i42 int,
1040
i43 int, i44 int, i45 int, i46 int, i47 int, i48 int, i49 int, i50 int, i51
1041
int, i52 int, i53 int, i54 int, i55 int, i56 int, i57 int, i58 int, i59 int,
1042
i60 int, i61 int, i62 int, i63 int, i64 int, i65 int, i66 int, i67 int, i68
1043
int, i69 int, i70 int, i71 int, i72 int, i73 int, i74 int, i75 int, i76 int,
1044
i77 int, i78 int, i79 int, i80 int, i81 int, i82 int, i83 int, i84 int, i85
1045
int, i86 int, i87 int, i88 int, i89 int, i90 int, i91 int, i92 int, i93 int,
1046
i94 int, i95 int, i96 int, i97 int, i98 int, i99 int, i100 int, i101 int, i102
1047
int, i103 int, i104 int, i105 int, i106 int, i107 int, i108 int, i109 int, i110
1048
int, i111 int, i112 int, i113 int, i114 int, i115 int, i116 int, i117 int, i118
1049
int, i119 int, i120 int, i121 int, i122 int, i123 int, i124 int, i125 int, i126
1050
int, i127 int, i128 int, i129 int, i130 int, i131 int, i132 int, i133 int, i134
1051
int, i135 int, i136 int, i137 int, i138 int, i139 int, i140 int, i141 int, i142
1052
int, i143 int, i144 int, i145 int, i146 int, i147 int, i148 int, i149 int, i150
1053
int, i151 int, i152 int, i153 int, i154 int, i155 int, i156 int, i157 int, i158
1054
int, i159 int, i160 int, i161 int, i162 int, i163 int, i164 int, i165 int, i166
1055
int, i167 int, i168 int, i169 int, i170 int, i171 int, i172 int, i173 int, i174
1056
int, i175 int, i176 int, i177 int, i178 int, i179 int, i180 int, i181 int, i182
1057
int, i183 int, i184 int, i185 int, i186 int, i187 int, i188 int, i189 int, i190
1058
int, i191 int, i192 int, i193 int, i194 int, i195 int, i196 int, i197 int, i198
1059
int, i199 int, i200 int, i201 int, i202 int, i203 int, i204 int, i205 int, i206
1060
int, i207 int, i208 int, i209 int, i210 int, i211 int, i212 int, i213 int, i214
1061
int, i215 int, i216 int, i217 int, i218 int, i219 int, i220 int, i221 int, i222
1062
int, i223 int, i224 int, i225 int, i226 int, i227 int, i228 int, i229 int, i230
1063
int, i231 int, i232 int, i233 int, i234 int, i235 int, i236 int, i237 int, i238
1064
int, i239 int, i240 int, i241 int, i242 int, i243 int, i244 int, i245 int, i246
1065
int, i247 int, i248 int, i249 int, i250 int, i251 int, i252 int, i253 int, i254
1066
int, i255 int, i256 int, i257 int, i258 int, i259 int, i260 int, i261 int, i262
1067
int, i263 int, i264 int, i265 int, i266 int, i267 int, i268 int, i269 int, i270
1068
int, i271 int, i272 int, i273 int, i274 int, i275 int, i276 int, i277 int, i278
1069
int, i279 int, i280 int, i281 int, i282 int, i283 int, i284 int, i285 int, i286
1070
int, i287 int, i288 int, i289 int, i290 int, i291 int, i292 int, i293 int, i294
1071
int, i295 int, i296 int, i297 int, i298 int, i299 int, i300 int, i301 int, i302
1072
int, i303 int, i304 int, i305 int, i306 int, i307 int, i308 int, i309 int, i310
1073
int, i311 int, i312 int, i313 int, i314 int, i315 int, i316 int, i317 int, i318
1074
int, i319 int, i320 int, i321 int, i322 int, i323 int, i324 int, i325 int, i326
1075
int, i327 int, i328 int, i329 int, i330 int, i331 int, i332 int, i333 int, i334
1076
int, i335 int, i336 int, i337 int, i338 int, i339 int, i340 int, i341 int, i342
1077
int, i343 int, i344 int, i345 int, i346 int, i347 int, i348 int, i349 int, i350
1078
int, i351 int, i352 int, i353 int, i354 int, i355 int, i356 int, i357 int, i358
1079
int, i359 int, i360 int, i361 int, i362 int, i363 int, i364 int, i365 int, i366
1080
int, i367 int, i368 int, i369 int, i370 int, i371 int, i372 int, i373 int, i374
1081
int, i375 int, i376 int, i377 int, i378 int, i379 int, i380 int, i381 int, i382
1082
int, i383 int, i384 int, i385 int, i386 int, i387 int, i388 int, i389 int, i390
1083
int, i391 int, i392 int, i393 int, i394 int, i395 int, i396 int, i397 int, i398
1084
int, i399 int, i400 int, i401 int, i402 int, i403 int, i404 int, i405 int, i406
1085
int, i407 int, i408 int, i409 int, i410 int, i411 int, i412 int, i413 int, i414
1086
int, i415 int, i416 int, i417 int, i418 int, i419 int, i420 int, i421 int, i422
1087
int, i423 int, i424 int, i425 int, i426 int, i427 int, i428 int, i429 int, i430
1088
int, i431 int, i432 int, i433 int, i434 int, i435 int, i436 int, i437 int, i438
1089
int, i439 int, i440 int, i441 int, i442 int, i443 int, i444 int, i445 int, i446
1090
int, i447 int, i448 int, i449 int, i450 int, i451 int, i452 int, i453 int, i454
1091
int, i455 int, i456 int, i457 int, i458 int, i459 int, i460 int, i461 int, i462
1092
int, i463 int, i464 int, i465 int, i466 int, i467 int, i468 int, i469 int, i470
1093
int, i471 int, i472 int, i473 int, i474 int, i475 int, i476 int, i477 int, i478
1094
int, i479 int, i480 int, i481 int, i482 int, i483 int, i484 int, i485 int, i486
1095
int, i487 int, i488 int, i489 int, i490 int, i491 int, i492 int, i493 int, i494
1096
int, i495 int, i496 int, i497 int, i498 int, i499 int, i500 int, i501 int, i502
1097
int, i503 int, i504 int, i505 int, i506 int, i507 int, i508 int, i509 int, i510
1098
int, i511 int, i512 int, i513 int, i514 int, i515 int, i516 int, i517 int, i518
1099
int, i519 int, i520 int, i521 int, i522 int, i523 int, i524 int, i525 int, i526
1100
int, i527 int, i528 int, i529 int, i530 int, i531 int, i532 int, i533 int, i534
1101
int, i535 int, i536 int, i537 int, i538 int, i539 int, i540 int, i541 int, i542
1102
int, i543 int, i544 int, i545 int, i546 int, i547 int, i548 int, i549 int, i550
1103
int, i551 int, i552 int, i553 int, i554 int, i555 int, i556 int, i557 int, i558
1104
int, i559 int, i560 int, i561 int, i562 int, i563 int, i564 int, i565 int, i566
1105
int, i567 int, i568 int, i569 int, i570 int, i571 int, i572 int, i573 int, i574
1106
int, i575 int, i576 int, i577 int, i578 int, i579 int, i580 int, i581 int, i582
1107
int, i583 int, i584 int, i585 int, i586 int, i587 int, i588 int, i589 int, i590
1108
int, i591 int, i592 int, i593 int, i594 int, i595 int, i596 int, i597 int, i598
1109
int, i599 int, i600 int, i601 int, i602 int, i603 int, i604 int, i605 int, i606
1110
int, i607 int, i608 int, i609 int, i610 int, i611 int, i612 int, i613 int, i614
1111
int, i615 int, i616 int, i617 int, i618 int, i619 int, i620 int, i621 int, i622
1112
int, i623 int, i624 int, i625 int, i626 int, i627 int, i628 int, i629 int, i630
1113
int, i631 int, i632 int, i633 int, i634 int, i635 int, i636 int, i637 int, i638
1114
int, i639 int, i640 int, i641 int, i642 int, i643 int, i644 int, i645 int, i646
1115
int, i647 int, i648 int, i649 int, i650 int, i651 int, i652 int, i653 int, i654
1116
int, i655 int, i656 int, i657 int, i658 int, i659 int, i660 int, i661 int, i662
1117
int, i663 int, i664 int, i665 int, i666 int, i667 int, i668 int, i669 int, i670
1118
int, i671 int, i672 int, i673 int, i674 int, i675 int, i676 int, i677 int, i678
1119
int, i679 int, i680 int, i681 int, i682 int, i683 int, i684 int, i685 int, i686
1120
int, i687 int, i688 int, i689 int, i690 int, i691 int, i692 int, i693 int, i694
1121
int, i695 int, i696 int, i697 int, i698 int, i699 int, i700 int, i701 int, i702
1122
int, i703 int, i704 int, i705 int, i706 int, i707 int, i708 int, i709 int, i710
1123
int, i711 int, i712 int, i713 int, i714 int, i715 int, i716 int, i717 int, i718
1124
int, i719 int, i720 int, i721 int, i722 int, i723 int, i724 int, i725 int, i726
1125
int, i727 int, i728 int, i729 int, i730 int, i731 int, i732 int, i733 int, i734
1126
int, i735 int, i736 int, i737 int, i738 int, i739 int, i740 int, i741 int, i742
1127
int, i743 int, i744 int, i745 int, i746 int, i747 int, i748 int, i749 int, i750
1128
int, i751 int, i752 int, i753 int, i754 int, i755 int, i756 int, i757 int, i758
1129
int, i759 int, i760 int, i761 int, i762 int, i763 int, i764 int, i765 int, i766
1130
int, i767 int, i768 int, i769 int, i770 int, i771 int, i772 int, i773 int, i774
1131
int, i775 int, i776 int, i777 int, i778 int, i779 int, i780 int, i781 int, i782
1132
int, i783 int, i784 int, i785 int, i786 int, i787 int, i788 int, i789 int, i790
1133
int, i791 int, i792 int, i793 int, i794 int, i795 int, i796 int, i797 int, i798
1134
int, i799 int, i800 int, i801 int, i802 int, i803 int, i804 int, i805 int, i806
1135
int, i807 int, i808 int, i809 int, i810 int, i811 int, i812 int, i813 int, i814
1136
int, i815 int, i816 int, i817 int, i818 int, i819 int, i820 int, i821 int, i822
1137
int, i823 int, i824 int, i825 int, i826 int, i827 int, i828 int, i829 int, i830
1138
int, i831 int, i832 int, i833 int, i834 int, i835 int, i836 int, i837 int, i838
1139
int, i839 int, i840 int, i841 int, i842 int, i843 int, i844 int, i845 int, i846
1140
int, i847 int, i848 int, i849 int, i850 int, i851 int, i852 int, i853 int, i854
1141
int, i855 int, i856 int, i857 int, i858 int, i859 int, i860 int, i861 int, i862
1142
int, i863 int, i864 int, i865 int, i866 int, i867 int, i868 int, i869 int, i870
1143
int, i871 int, i872 int, i873 int, i874 int, i875 int, i876 int, i877 int, i878
1144
int, i879 int, i880 int, i881 int, i882 int, i883 int, i884 int, i885 int, i886
1145
int, i887 int, i888 int, i889 int, i890 int, i891 int, i892 int, i893 int, i894
1146
int, i895 int, i896 int, i897 int, i898 int, i899 int, i900 int, i901 int, i902
1147
int, i903 int, i904 int, i905 int, i906 int, i907 int, i908 int, i909 int, i910
1148
int, i911 int, i912 int, i913 int, i914 int, i915 int, i916 int, i917 int, i918
1149
int, i919 int, i920 int, i921 int, i922 int, i923 int, i924 int, i925 int, i926
1150
int, i927 int, i928 int, i929 int, i930 int, i931 int, i932 int, i933 int, i934
1151
int, i935 int, i936 int, i937 int, i938 int, i939 int, i940 int, i941 int, i942
1152
int, i943 int, i944 int, i945 int, i946 int, i947 int, i948 int, i949 int, i950
1153
int, i951 int, i952 int, i953 int, i954 int, i955 int, i956 int, i957 int, i958
1154
int, i959 int, i960 int, i961 int, i962 int, i963 int, i964 int, i965 int, i966
1155
int, i967 int, i968 int, i969 int, i970 int, i971 int, i972 int, i973 int, i974
1156
int, i975 int, i976 int, i977 int, i978 int, i979 int, i980 int, i981 int, i982
1157
int, i983 int, i984 int, i985 int, i986 int, i987 int, i988 int, i989 int, i990
1158
int, i991 int, i992 int, i993 int, i994 int, i995 int, i996 int, i997 int, i998
1159
int, i999 int, i1000 int, b varchar(256)) row_format=dynamic;
1160
DROP TABLE IF EXISTS federated.t1;
1161
CREATE TABLE federated.t1
1162
(i1 int, i2 int, i3 int, i4 int, i5 int, i6 int, i7 int, i8
1163
int, i9 int, i10 int, i11 int, i12 int, i13 int, i14 int, i15 int, i16 int,
1164
i17 int, i18 int, i19 int, i20 int, i21 int, i22 int, i23 int, i24 int, i25 int,
1165
i26 int, i27 int, i28 int, i29 int, i30 int, i31 int, i32 int, i33 int, i34
1166
int, i35 int, i36 int, i37 int, i38 int, i39 int, i40 int, i41 int, i42 int,
1167
i43 int, i44 int, i45 int, i46 int, i47 int, i48 int, i49 int, i50 int, i51
1168
int, i52 int, i53 int, i54 int, i55 int, i56 int, i57 int, i58 int, i59 int,
1169
i60 int, i61 int, i62 int, i63 int, i64 int, i65 int, i66 int, i67 int, i68
1170
int, i69 int, i70 int, i71 int, i72 int, i73 int, i74 int, i75 int, i76 int,
1171
i77 int, i78 int, i79 int, i80 int, i81 int, i82 int, i83 int, i84 int, i85
1172
int, i86 int, i87 int, i88 int, i89 int, i90 int, i91 int, i92 int, i93 int,
1173
i94 int, i95 int, i96 int, i97 int, i98 int, i99 int, i100 int, i101 int, i102
1174
int, i103 int, i104 int, i105 int, i106 int, i107 int, i108 int, i109 int, i110
1175
int, i111 int, i112 int, i113 int, i114 int, i115 int, i116 int, i117 int, i118
1176
int, i119 int, i120 int, i121 int, i122 int, i123 int, i124 int, i125 int, i126
1177
int, i127 int, i128 int, i129 int, i130 int, i131 int, i132 int, i133 int, i134
1178
int, i135 int, i136 int, i137 int, i138 int, i139 int, i140 int, i141 int, i142
1179
int, i143 int, i144 int, i145 int, i146 int, i147 int, i148 int, i149 int, i150
1180
int, i151 int, i152 int, i153 int, i154 int, i155 int, i156 int, i157 int, i158
1181
int, i159 int, i160 int, i161 int, i162 int, i163 int, i164 int, i165 int, i166
1182
int, i167 int, i168 int, i169 int, i170 int, i171 int, i172 int, i173 int, i174
1183
int, i175 int, i176 int, i177 int, i178 int, i179 int, i180 int, i181 int, i182
1184
int, i183 int, i184 int, i185 int, i186 int, i187 int, i188 int, i189 int, i190
1185
int, i191 int, i192 int, i193 int, i194 int, i195 int, i196 int, i197 int, i198
1186
int, i199 int, i200 int, i201 int, i202 int, i203 int, i204 int, i205 int, i206
1187
int, i207 int, i208 int, i209 int, i210 int, i211 int, i212 int, i213 int, i214
1188
int, i215 int, i216 int, i217 int, i218 int, i219 int, i220 int, i221 int, i222
1189
int, i223 int, i224 int, i225 int, i226 int, i227 int, i228 int, i229 int, i230
1190
int, i231 int, i232 int, i233 int, i234 int, i235 int, i236 int, i237 int, i238
1191
int, i239 int, i240 int, i241 int, i242 int, i243 int, i244 int, i245 int, i246
1192
int, i247 int, i248 int, i249 int, i250 int, i251 int, i252 int, i253 int, i254
1193
int, i255 int, i256 int, i257 int, i258 int, i259 int, i260 int, i261 int, i262
1194
int, i263 int, i264 int, i265 int, i266 int, i267 int, i268 int, i269 int, i270
1195
int, i271 int, i272 int, i273 int, i274 int, i275 int, i276 int, i277 int, i278
1196
int, i279 int, i280 int, i281 int, i282 int, i283 int, i284 int, i285 int, i286
1197
int, i287 int, i288 int, i289 int, i290 int, i291 int, i292 int, i293 int, i294
1198
int, i295 int, i296 int, i297 int, i298 int, i299 int, i300 int, i301 int, i302
1199
int, i303 int, i304 int, i305 int, i306 int, i307 int, i308 int, i309 int, i310
1200
int, i311 int, i312 int, i313 int, i314 int, i315 int, i316 int, i317 int, i318
1201
int, i319 int, i320 int, i321 int, i322 int, i323 int, i324 int, i325 int, i326
1202
int, i327 int, i328 int, i329 int, i330 int, i331 int, i332 int, i333 int, i334
1203
int, i335 int, i336 int, i337 int, i338 int, i339 int, i340 int, i341 int, i342
1204
int, i343 int, i344 int, i345 int, i346 int, i347 int, i348 int, i349 int, i350
1205
int, i351 int, i352 int, i353 int, i354 int, i355 int, i356 int, i357 int, i358
1206
int, i359 int, i360 int, i361 int, i362 int, i363 int, i364 int, i365 int, i366
1207
int, i367 int, i368 int, i369 int, i370 int, i371 int, i372 int, i373 int, i374
1208
int, i375 int, i376 int, i377 int, i378 int, i379 int, i380 int, i381 int, i382
1209
int, i383 int, i384 int, i385 int, i386 int, i387 int, i388 int, i389 int, i390
1210
int, i391 int, i392 int, i393 int, i394 int, i395 int, i396 int, i397 int, i398
1211
int, i399 int, i400 int, i401 int, i402 int, i403 int, i404 int, i405 int, i406
1212
int, i407 int, i408 int, i409 int, i410 int, i411 int, i412 int, i413 int, i414
1213
int, i415 int, i416 int, i417 int, i418 int, i419 int, i420 int, i421 int, i422
1214
int, i423 int, i424 int, i425 int, i426 int, i427 int, i428 int, i429 int, i430
1215
int, i431 int, i432 int, i433 int, i434 int, i435 int, i436 int, i437 int, i438
1216
int, i439 int, i440 int, i441 int, i442 int, i443 int, i444 int, i445 int, i446
1217
int, i447 int, i448 int, i449 int, i450 int, i451 int, i452 int, i453 int, i454
1218
int, i455 int, i456 int, i457 int, i458 int, i459 int, i460 int, i461 int, i462
1219
int, i463 int, i464 int, i465 int, i466 int, i467 int, i468 int, i469 int, i470
1220
int, i471 int, i472 int, i473 int, i474 int, i475 int, i476 int, i477 int, i478
1221
int, i479 int, i480 int, i481 int, i482 int, i483 int, i484 int, i485 int, i486
1222
int, i487 int, i488 int, i489 int, i490 int, i491 int, i492 int, i493 int, i494
1223
int, i495 int, i496 int, i497 int, i498 int, i499 int, i500 int, i501 int, i502
1224
int, i503 int, i504 int, i505 int, i506 int, i507 int, i508 int, i509 int, i510
1225
int, i511 int, i512 int, i513 int, i514 int, i515 int, i516 int, i517 int, i518
1226
int, i519 int, i520 int, i521 int, i522 int, i523 int, i524 int, i525 int, i526
1227
int, i527 int, i528 int, i529 int, i530 int, i531 int, i532 int, i533 int, i534
1228
int, i535 int, i536 int, i537 int, i538 int, i539 int, i540 int, i541 int, i542
1229
int, i543 int, i544 int, i545 int, i546 int, i547 int, i548 int, i549 int, i550
1230
int, i551 int, i552 int, i553 int, i554 int, i555 int, i556 int, i557 int, i558
1231
int, i559 int, i560 int, i561 int, i562 int, i563 int, i564 int, i565 int, i566
1232
int, i567 int, i568 int, i569 int, i570 int, i571 int, i572 int, i573 int, i574
1233
int, i575 int, i576 int, i577 int, i578 int, i579 int, i580 int, i581 int, i582
1234
int, i583 int, i584 int, i585 int, i586 int, i587 int, i588 int, i589 int, i590
1235
int, i591 int, i592 int, i593 int, i594 int, i595 int, i596 int, i597 int, i598
1236
int, i599 int, i600 int, i601 int, i602 int, i603 int, i604 int, i605 int, i606
1237
int, i607 int, i608 int, i609 int, i610 int, i611 int, i612 int, i613 int, i614
1238
int, i615 int, i616 int, i617 int, i618 int, i619 int, i620 int, i621 int, i622
1239
int, i623 int, i624 int, i625 int, i626 int, i627 int, i628 int, i629 int, i630
1240
int, i631 int, i632 int, i633 int, i634 int, i635 int, i636 int, i637 int, i638
1241
int, i639 int, i640 int, i641 int, i642 int, i643 int, i644 int, i645 int, i646
1242
int, i647 int, i648 int, i649 int, i650 int, i651 int, i652 int, i653 int, i654
1243
int, i655 int, i656 int, i657 int, i658 int, i659 int, i660 int, i661 int, i662
1244
int, i663 int, i664 int, i665 int, i666 int, i667 int, i668 int, i669 int, i670
1245
int, i671 int, i672 int, i673 int, i674 int, i675 int, i676 int, i677 int, i678
1246
int, i679 int, i680 int, i681 int, i682 int, i683 int, i684 int, i685 int, i686
1247
int, i687 int, i688 int, i689 int, i690 int, i691 int, i692 int, i693 int, i694
1248
int, i695 int, i696 int, i697 int, i698 int, i699 int, i700 int, i701 int, i702
1249
int, i703 int, i704 int, i705 int, i706 int, i707 int, i708 int, i709 int, i710
1250
int, i711 int, i712 int, i713 int, i714 int, i715 int, i716 int, i717 int, i718
1251
int, i719 int, i720 int, i721 int, i722 int, i723 int, i724 int, i725 int, i726
1252
int, i727 int, i728 int, i729 int, i730 int, i731 int, i732 int, i733 int, i734
1253
int, i735 int, i736 int, i737 int, i738 int, i739 int, i740 int, i741 int, i742
1254
int, i743 int, i744 int, i745 int, i746 int, i747 int, i748 int, i749 int, i750
1255
int, i751 int, i752 int, i753 int, i754 int, i755 int, i756 int, i757 int, i758
1256
int, i759 int, i760 int, i761 int, i762 int, i763 int, i764 int, i765 int, i766
1257
int, i767 int, i768 int, i769 int, i770 int, i771 int, i772 int, i773 int, i774
1258
int, i775 int, i776 int, i777 int, i778 int, i779 int, i780 int, i781 int, i782
1259
int, i783 int, i784 int, i785 int, i786 int, i787 int, i788 int, i789 int, i790
1260
int, i791 int, i792 int, i793 int, i794 int, i795 int, i796 int, i797 int, i798
1261
int, i799 int, i800 int, i801 int, i802 int, i803 int, i804 int, i805 int, i806
1262
int, i807 int, i808 int, i809 int, i810 int, i811 int, i812 int, i813 int, i814
1263
int, i815 int, i816 int, i817 int, i818 int, i819 int, i820 int, i821 int, i822
1264
int, i823 int, i824 int, i825 int, i826 int, i827 int, i828 int, i829 int, i830
1265
int, i831 int, i832 int, i833 int, i834 int, i835 int, i836 int, i837 int, i838
1266
int, i839 int, i840 int, i841 int, i842 int, i843 int, i844 int, i845 int, i846
1267
int, i847 int, i848 int, i849 int, i850 int, i851 int, i852 int, i853 int, i854
1268
int, i855 int, i856 int, i857 int, i858 int, i859 int, i860 int, i861 int, i862
1269
int, i863 int, i864 int, i865 int, i866 int, i867 int, i868 int, i869 int, i870
1270
int, i871 int, i872 int, i873 int, i874 int, i875 int, i876 int, i877 int, i878
1271
int, i879 int, i880 int, i881 int, i882 int, i883 int, i884 int, i885 int, i886
1272
int, i887 int, i888 int, i889 int, i890 int, i891 int, i892 int, i893 int, i894
1273
int, i895 int, i896 int, i897 int, i898 int, i899 int, i900 int, i901 int, i902
1274
int, i903 int, i904 int, i905 int, i906 int, i907 int, i908 int, i909 int, i910
1275
int, i911 int, i912 int, i913 int, i914 int, i915 int, i916 int, i917 int, i918
1276
int, i919 int, i920 int, i921 int, i922 int, i923 int, i924 int, i925 int, i926
1277
int, i927 int, i928 int, i929 int, i930 int, i931 int, i932 int, i933 int, i934
1278
int, i935 int, i936 int, i937 int, i938 int, i939 int, i940 int, i941 int, i942
1279
int, i943 int, i944 int, i945 int, i946 int, i947 int, i948 int, i949 int, i950
1280
int, i951 int, i952 int, i953 int, i954 int, i955 int, i956 int, i957 int, i958
1281
int, i959 int, i960 int, i961 int, i962 int, i963 int, i964 int, i965 int, i966
1282
int, i967 int, i968 int, i969 int, i970 int, i971 int, i972 int, i973 int, i974
1283
int, i975 int, i976 int, i977 int, i978 int, i979 int, i980 int, i981 int, i982
1284
int, i983 int, i984 int, i985 int, i986 int, i987 int, i988 int, i989 int, i990
1285
int, i991 int, i992 int, i993 int, i994 int, i995 int, i996 int, i997 int, i998
1286
int, i999 int, i1000 int, b varchar(256))
1289
DEFAULT CHARSET=latin1
1290
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1291
INSERT INTO federated.t1
1292
values (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1293
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1294
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1295
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1296
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1297
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1298
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1299
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1300
1, 1, 1, 1, 1, 1, 1, 1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1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1326
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1327
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1328
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1329
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1330
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, "PatrickG");
1331
UPDATE federated.t1 SET b=repeat('a',256);
1332
UPDATE federated.t1 SET i1=0, i2=0, i3=0, i4=0, i5=0, i6=0, i7=0, i8=0, i9=0, i10=0;
1333
SELECT * FROM federated.t1 WHERE i9=0 and i10=0;
1334
i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59 i60 i61 i62 i63 i64 i65 i66 i67 i68 i69 i70 i71 i72 i73 i74 i75 i76 i77 i78 i79 i80 i81 i82 i83 i84 i85 i86 i87 i88 i89 i90 i91 i92 i93 i94 i95 i96 i97 i98 i99 i100 i101 i102 i103 i104 i105 i106 i107 i108 i109 i110 i111 i112 i113 i114 i115 i116 i117 i118 i119 i120 i121 i122 i123 i124 i125 i126 i127 i128 i129 i130 i131 i132 i133 i134 i135 i136 i137 i138 i139 i140 i141 i142 i143 i144 i145 i146 i147 i148 i149 i150 i151 i152 i153 i154 i155 i156 i157 i158 i159 i160 i161 i162 i163 i164 i165 i166 i167 i168 i169 i170 i171 i172 i173 i174 i175 i176 i177 i178 i179 i180 i181 i182 i183 i184 i185 i186 i187 i188 i189 i190 i191 i192 i193 i194 i195 i196 i197 i198 i199 i200 i201 i202 i203 i204 i205 i206 i207 i208 i209 i210 i211 i212 i213 i214 i215 i216 i217 i218 i219 i220 i221 i222 i223 i224 i225 i226 i227 i228 i229 i230 i231 i232 i233 i234 i235 i236 i237 i238 i239 i240 i241 i242 i243 i244 i245 i246 i247 i248 i249 i250 i251 i252 i253 i254 i255 i256 i257 i258 i259 i260 i261 i262 i263 i264 i265 i266 i267 i268 i269 i270 i271 i272 i273 i274 i275 i276 i277 i278 i279 i280 i281 i282 i283 i284 i285 i286 i287 i288 i289 i290 i291 i292 i293 i294 i295 i296 i297 i298 i299 i300 i301 i302 i303 i304 i305 i306 i307 i308 i309 i310 i311 i312 i313 i314 i315 i316 i317 i318 i319 i320 i321 i322 i323 i324 i325 i326 i327 i328 i329 i330 i331 i332 i333 i334 i335 i336 i337 i338 i339 i340 i341 i342 i343 i344 i345 i346 i347 i348 i349 i350 i351 i352 i353 i354 i355 i356 i357 i358 i359 i360 i361 i362 i363 i364 i365 i366 i367 i368 i369 i370 i371 i372 i373 i374 i375 i376 i377 i378 i379 i380 i381 i382 i383 i384 i385 i386 i387 i388 i389 i390 i391 i392 i393 i394 i395 i396 i397 i398 i399 i400 i401 i402 i403 i404 i405 i406 i407 i408 i409 i410 i411 i412 i413 i414 i415 i416 i417 i418 i419 i420 i421 i422 i423 i424 i425 i426 i427 i428 i429 i430 i431 i432 i433 i434 i435 i436 i437 i438 i439 i440 i441 i442 i443 i444 i445 i446 i447 i448 i449 i450 i451 i452 i453 i454 i455 i456 i457 i458 i459 i460 i461 i462 i463 i464 i465 i466 i467 i468 i469 i470 i471 i472 i473 i474 i475 i476 i477 i478 i479 i480 i481 i482 i483 i484 i485 i486 i487 i488 i489 i490 i491 i492 i493 i494 i495 i496 i497 i498 i499 i500 i501 i502 i503 i504 i505 i506 i507 i508 i509 i510 i511 i512 i513 i514 i515 i516 i517 i518 i519 i520 i521 i522 i523 i524 i525 i526 i527 i528 i529 i530 i531 i532 i533 i534 i535 i536 i537 i538 i539 i540 i541 i542 i543 i544 i545 i546 i547 i548 i549 i550 i551 i552 i553 i554 i555 i556 i557 i558 i559 i560 i561 i562 i563 i564 i565 i566 i567 i568 i569 i570 i571 i572 i573 i574 i575 i576 i577 i578 i579 i580 i581 i582 i583 i584 i585 i586 i587 i588 i589 i590 i591 i592 i593 i594 i595 i596 i597 i598 i599 i600 i601 i602 i603 i604 i605 i606 i607 i608 i609 i610 i611 i612 i613 i614 i615 i616 i617 i618 i619 i620 i621 i622 i623 i624 i625 i626 i627 i628 i629 i630 i631 i632 i633 i634 i635 i636 i637 i638 i639 i640 i641 i642 i643 i644 i645 i646 i647 i648 i649 i650 i651 i652 i653 i654 i655 i656 i657 i658 i659 i660 i661 i662 i663 i664 i665 i666 i667 i668 i669 i670 i671 i672 i673 i674 i675 i676 i677 i678 i679 i680 i681 i682 i683 i684 i685 i686 i687 i688 i689 i690 i691 i692 i693 i694 i695 i696 i697 i698 i699 i700 i701 i702 i703 i704 i705 i706 i707 i708 i709 i710 i711 i712 i713 i714 i715 i716 i717 i718 i719 i720 i721 i722 i723 i724 i725 i726 i727 i728 i729 i730 i731 i732 i733 i734 i735 i736 i737 i738 i739 i740 i741 i742 i743 i744 i745 i746 i747 i748 i749 i750 i751 i752 i753 i754 i755 i756 i757 i758 i759 i760 i761 i762 i763 i764 i765 i766 i767 i768 i769 i770 i771 i772 i773 i774 i775 i776 i777 i778 i779 i780 i781 i782 i783 i784 i785 i786 i787 i788 i789 i790 i791 i792 i793 i794 i795 i796 i797 i798 i799 i800 i801 i802 i803 i804 i805 i806 i807 i808 i809 i810 i811 i812 i813 i814 i815 i816 i817 i818 i819 i820 i821 i822 i823 i824 i825 i826 i827 i828 i829 i830 i831 i832 i833 i834 i835 i836 i837 i838 i839 i840 i841 i842 i843 i844 i845 i846 i847 i848 i849 i850 i851 i852 i853 i854 i855 i856 i857 i858 i859 i860 i861 i862 i863 i864 i865 i866 i867 i868 i869 i870 i871 i872 i873 i874 i875 i876 i877 i878 i879 i880 i881 i882 i883 i884 i885 i886 i887 i888 i889 i890 i891 i892 i893 i894 i895 i896 i897 i898 i899 i900 i901 i902 i903 i904 i905 i906 i907 i908 i909 i910 i911 i912 i913 i914 i915 i916 i917 i918 i919 i920 i921 i922 i923 i924 i925 i926 i927 i928 i929 i930 i931 i932 i933 i934 i935 i936 i937 i938 i939 i940 i941 i942 i943 i944 i945 i946 i947 i948 i949 i950 i951 i952 i953 i954 i955 i956 i957 i958 i959 i960 i961 i962 i963 i964 i965 i966 i967 i968 i969 i970 i971 i972 i973 i974 i975 i976 i977 i978 i979 i980 i981 i982 i983 i984 i985 i986 i987 i988 i989 i990 i991 i992 i993 i994 i995 i996 i997 i998 i999 i1000 b
1335
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1336
UPDATE federated.t1 SET i50=20;
1337
SELECT * FROM federated.t1;
1338
i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59 i60 i61 i62 i63 i64 i65 i66 i67 i68 i69 i70 i71 i72 i73 i74 i75 i76 i77 i78 i79 i80 i81 i82 i83 i84 i85 i86 i87 i88 i89 i90 i91 i92 i93 i94 i95 i96 i97 i98 i99 i100 i101 i102 i103 i104 i105 i106 i107 i108 i109 i110 i111 i112 i113 i114 i115 i116 i117 i118 i119 i120 i121 i122 i123 i124 i125 i126 i127 i128 i129 i130 i131 i132 i133 i134 i135 i136 i137 i138 i139 i140 i141 i142 i143 i144 i145 i146 i147 i148 i149 i150 i151 i152 i153 i154 i155 i156 i157 i158 i159 i160 i161 i162 i163 i164 i165 i166 i167 i168 i169 i170 i171 i172 i173 i174 i175 i176 i177 i178 i179 i180 i181 i182 i183 i184 i185 i186 i187 i188 i189 i190 i191 i192 i193 i194 i195 i196 i197 i198 i199 i200 i201 i202 i203 i204 i205 i206 i207 i208 i209 i210 i211 i212 i213 i214 i215 i216 i217 i218 i219 i220 i221 i222 i223 i224 i225 i226 i227 i228 i229 i230 i231 i232 i233 i234 i235 i236 i237 i238 i239 i240 i241 i242 i243 i244 i245 i246 i247 i248 i249 i250 i251 i252 i253 i254 i255 i256 i257 i258 i259 i260 i261 i262 i263 i264 i265 i266 i267 i268 i269 i270 i271 i272 i273 i274 i275 i276 i277 i278 i279 i280 i281 i282 i283 i284 i285 i286 i287 i288 i289 i290 i291 i292 i293 i294 i295 i296 i297 i298 i299 i300 i301 i302 i303 i304 i305 i306 i307 i308 i309 i310 i311 i312 i313 i314 i315 i316 i317 i318 i319 i320 i321 i322 i323 i324 i325 i326 i327 i328 i329 i330 i331 i332 i333 i334 i335 i336 i337 i338 i339 i340 i341 i342 i343 i344 i345 i346 i347 i348 i349 i350 i351 i352 i353 i354 i355 i356 i357 i358 i359 i360 i361 i362 i363 i364 i365 i366 i367 i368 i369 i370 i371 i372 i373 i374 i375 i376 i377 i378 i379 i380 i381 i382 i383 i384 i385 i386 i387 i388 i389 i390 i391 i392 i393 i394 i395 i396 i397 i398 i399 i400 i401 i402 i403 i404 i405 i406 i407 i408 i409 i410 i411 i412 i413 i414 i415 i416 i417 i418 i419 i420 i421 i422 i423 i424 i425 i426 i427 i428 i429 i430 i431 i432 i433 i434 i435 i436 i437 i438 i439 i440 i441 i442 i443 i444 i445 i446 i447 i448 i449 i450 i451 i452 i453 i454 i455 i456 i457 i458 i459 i460 i461 i462 i463 i464 i465 i466 i467 i468 i469 i470 i471 i472 i473 i474 i475 i476 i477 i478 i479 i480 i481 i482 i483 i484 i485 i486 i487 i488 i489 i490 i491 i492 i493 i494 i495 i496 i497 i498 i499 i500 i501 i502 i503 i504 i505 i506 i507 i508 i509 i510 i511 i512 i513 i514 i515 i516 i517 i518 i519 i520 i521 i522 i523 i524 i525 i526 i527 i528 i529 i530 i531 i532 i533 i534 i535 i536 i537 i538 i539 i540 i541 i542 i543 i544 i545 i546 i547 i548 i549 i550 i551 i552 i553 i554 i555 i556 i557 i558 i559 i560 i561 i562 i563 i564 i565 i566 i567 i568 i569 i570 i571 i572 i573 i574 i575 i576 i577 i578 i579 i580 i581 i582 i583 i584 i585 i586 i587 i588 i589 i590 i591 i592 i593 i594 i595 i596 i597 i598 i599 i600 i601 i602 i603 i604 i605 i606 i607 i608 i609 i610 i611 i612 i613 i614 i615 i616 i617 i618 i619 i620 i621 i622 i623 i624 i625 i626 i627 i628 i629 i630 i631 i632 i633 i634 i635 i636 i637 i638 i639 i640 i641 i642 i643 i644 i645 i646 i647 i648 i649 i650 i651 i652 i653 i654 i655 i656 i657 i658 i659 i660 i661 i662 i663 i664 i665 i666 i667 i668 i669 i670 i671 i672 i673 i674 i675 i676 i677 i678 i679 i680 i681 i682 i683 i684 i685 i686 i687 i688 i689 i690 i691 i692 i693 i694 i695 i696 i697 i698 i699 i700 i701 i702 i703 i704 i705 i706 i707 i708 i709 i710 i711 i712 i713 i714 i715 i716 i717 i718 i719 i720 i721 i722 i723 i724 i725 i726 i727 i728 i729 i730 i731 i732 i733 i734 i735 i736 i737 i738 i739 i740 i741 i742 i743 i744 i745 i746 i747 i748 i749 i750 i751 i752 i753 i754 i755 i756 i757 i758 i759 i760 i761 i762 i763 i764 i765 i766 i767 i768 i769 i770 i771 i772 i773 i774 i775 i776 i777 i778 i779 i780 i781 i782 i783 i784 i785 i786 i787 i788 i789 i790 i791 i792 i793 i794 i795 i796 i797 i798 i799 i800 i801 i802 i803 i804 i805 i806 i807 i808 i809 i810 i811 i812 i813 i814 i815 i816 i817 i818 i819 i820 i821 i822 i823 i824 i825 i826 i827 i828 i829 i830 i831 i832 i833 i834 i835 i836 i837 i838 i839 i840 i841 i842 i843 i844 i845 i846 i847 i848 i849 i850 i851 i852 i853 i854 i855 i856 i857 i858 i859 i860 i861 i862 i863 i864 i865 i866 i867 i868 i869 i870 i871 i872 i873 i874 i875 i876 i877 i878 i879 i880 i881 i882 i883 i884 i885 i886 i887 i888 i889 i890 i891 i892 i893 i894 i895 i896 i897 i898 i899 i900 i901 i902 i903 i904 i905 i906 i907 i908 i909 i910 i911 i912 i913 i914 i915 i916 i917 i918 i919 i920 i921 i922 i923 i924 i925 i926 i927 i928 i929 i930 i931 i932 i933 i934 i935 i936 i937 i938 i939 i940 i941 i942 i943 i944 i945 i946 i947 i948 i949 i950 i951 i952 i953 i954 i955 i956 i957 i958 i959 i960 i961 i962 i963 i964 i965 i966 i967 i968 i969 i970 i971 i972 i973 i974 i975 i976 i977 i978 i979 i980 i981 i982 i983 i984 i985 i986 i987 i988 i989 i990 i991 i992 i993 i994 i995 i996 i997 i998 i999 i1000 b
1339
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59 i60 i61 i62 i63 i64 i65 i66 i67 i68 i69 i70 i71 i72 i73 i74 i75 i76 i77 i78 i79 i80 i81 i82 i83 i84 i85 i86 i87 i88 i89 i90 i91 i92 i93 i94 i95 i96 i97 i98 i99 i100 i101 i102 i103 i104 i105 i106 i107 i108 i109 i110 i111 i112 i113 i114 i115 i116 i117 i118 i119 i120 i121 i122 i123 i124 i125 i126 i127 i128 i129 i130 i131 i132 i133 i134 i135 i136 i137 i138 i139 i140 i141 i142 i143 i144 i145 i146 i147 i148 i149 i150 i151 i152 i153 i154 i155 i156 i157 i158 i159 i160 i161 i162 i163 i164 i165 i166 i167 i168 i169 i170 i171 i172 i173 i174 i175 i176 i177 i178 i179 i180 i181 i182 i183 i184 i185 i186 i187 i188 i189 i190 i191 i192 i193 i194 i195 i196 i197 i198 i199 i200 i201 i202 i203 i204 i205 i206 i207 i208 i209 i210 i211 i212 i213 i214 i215 i216 i217 i218 i219 i220 i221 i222 i223 i224 i225 i226 i227 i228 i229 i230 i231 i232 i233 i234 i235 i236 i237 i238 i239 i240 i241 i242 i243 i244 i245 i246 i247 i248 i249 i250 i251 i252 i253 i254 i255 i256 i257 i258 i259 i260 i261 i262 i263 i264 i265 i266 i267 i268 i269 i270 i271 i272 i273 i274 i275 i276 i277 i278 i279 i280 i281 i282 i283 i284 i285 i286 i287 i288 i289 i290 i291 i292 i293 i294 i295 i296 i297 i298 i299 i300 i301 i302 i303 i304 i305 i306 i307 i308 i309 i310 i311 i312 i313 i314 i315 i316 i317 i318 i319 i320 i321 i322 i323 i324 i325 i326 i327 i328 i329 i330 i331 i332 i333 i334 i335 i336 i337 i338 i339 i340 i341 i342 i343 i344 i345 i346 i347 i348 i349 i350 i351 i352 i353 i354 i355 i356 i357 i358 i359 i360 i361 i362 i363 i364 i365 i366 i367 i368 i369 i370 i371 i372 i373 i374 i375 i376 i377 i378 i379 i380 i381 i382 i383 i384 i385 i386 i387 i388 i389 i390 i391 i392 i393 i394 i395 i396 i397 i398 i399 i400 i401 i402 i403 i404 i405 i406 i407 i408 i409 i410 i411 i412 i413 i414 i415 i416 i417 i418 i419 i420 i421 i422 i423 i424 i425 i426 i427 i428 i429 i430 i431 i432 i433 i434 i435 i436 i437 i438 i439 i440 i441 i442 i443 i444 i445 i446 i447 i448 i449 i450 i451 i452 i453 i454 i455 i456 i457 i458 i459 i460 i461 i462 i463 i464 i465 i466 i467 i468 i469 i470 i471 i472 i473 i474 i475 i476 i477 i478 i479 i480 i481 i482 i483 i484 i485 i486 i487 i488 i489 i490 i491 i492 i493 i494 i495 i496 i497 i498 i499 i500 i501 i502 i503 i504 i505 i506 i507 i508 i509 i510 i511 i512 i513 i514 i515 i516 i517 i518 i519 i520 i521 i522 i523 i524 i525 i526 i527 i528 i529 i530 i531 i532 i533 i534 i535 i536 i537 i538 i539 i540 i541 i542 i543 i544 i545 i546 i547 i548 i549 i550 i551 i552 i553 i554 i555 i556 i557 i558 i559 i560 i561 i562 i563 i564 i565 i566 i567 i568 i569 i570 i571 i572 i573 i574 i575 i576 i577 i578 i579 i580 i581 i582 i583 i584 i585 i586 i587 i588 i589 i590 i591 i592 i593 i594 i595 i596 i597 i598 i599 i600 i601 i602 i603 i604 i605 i606 i607 i608 i609 i610 i611 i612 i613 i614 i615 i616 i617 i618 i619 i620 i621 i622 i623 i624 i625 i626 i627 i628 i629 i630 i631 i632 i633 i634 i635 i636 i637 i638 i639 i640 i641 i642 i643 i644 i645 i646 i647 i648 i649 i650 i651 i652 i653 i654 i655 i656 i657 i658 i659 i660 i661 i662 i663 i664 i665 i666 i667 i668 i669 i670 i671 i672 i673 i674 i675 i676 i677 i678 i679 i680 i681 i682 i683 i684 i685 i686 i687 i688 i689 i690 i691 i692 i693 i694 i695 i696 i697 i698 i699 i700 i701 i702 i703 i704 i705 i706 i707 i708 i709 i710 i711 i712 i713 i714 i715 i716 i717 i718 i719 i720 i721 i722 i723 i724 i725 i726 i727 i728 i729 i730 i731 i732 i733 i734 i735 i736 i737 i738 i739 i740 i741 i742 i743 i744 i745 i746 i747 i748 i749 i750 i751 i752 i753 i754 i755 i756 i757 i758 i759 i760 i761 i762 i763 i764 i765 i766 i767 i768 i769 i770 i771 i772 i773 i774 i775 i776 i777 i778 i779 i780 i781 i782 i783 i784 i785 i786 i787 i788 i789 i790 i791 i792 i793 i794 i795 i796 i797 i798 i799 i800 i801 i802 i803 i804 i805 i806 i807 i808 i809 i810 i811 i812 i813 i814 i815 i816 i817 i818 i819 i820 i821 i822 i823 i824 i825 i826 i827 i828 i829 i830 i831 i832 i833 i834 i835 i836 i837 i838 i839 i840 i841 i842 i843 i844 i845 i846 i847 i848 i849 i850 i851 i852 i853 i854 i855 i856 i857 i858 i859 i860 i861 i862 i863 i864 i865 i866 i867 i868 i869 i870 i871 i872 i873 i874 i875 i876 i877 i878 i879 i880 i881 i882 i883 i884 i885 i886 i887 i888 i889 i890 i891 i892 i893 i894 i895 i896 i897 i898 i899 i900 i901 i902 i903 i904 i905 i906 i907 i908 i909 i910 i911 i912 i913 i914 i915 i916 i917 i918 i919 i920 i921 i922 i923 i924 i925 i926 i927 i928 i929 i930 i931 i932 i933 i934 i935 i936 i937 i938 i939 i940 i941 i942 i943 i944 i945 i946 i947 i948 i949 i950 i951 i952 i953 i954 i955 i956 i957 i958 i959 i960 i961 i962 i963 i964 i965 i966 i967 i968 i969 i970 i971 i972 i973 i974 i975 i976 i977 i978 i979 i980 i981 i982 i983 i984 i985 i986 i987 i988 i989 i990 i991 i992 i993 i994 i995 i996 i997 i998 i999 i1000 b
1343
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1344
DELETE FROM federated.t1 WHERE i50=20;
1345
SELECT * FROM federated.t1;
1346
i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24 i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40 i41 i42 i43 i44 i45 i46 i47 i48 i49 i50 i51 i52 i53 i54 i55 i56 i57 i58 i59 i60 i61 i62 i63 i64 i65 i66 i67 i68 i69 i70 i71 i72 i73 i74 i75 i76 i77 i78 i79 i80 i81 i82 i83 i84 i85 i86 i87 i88 i89 i90 i91 i92 i93 i94 i95 i96 i97 i98 i99 i100 i101 i102 i103 i104 i105 i106 i107 i108 i109 i110 i111 i112 i113 i114 i115 i116 i117 i118 i119 i120 i121 i122 i123 i124 i125 i126 i127 i128 i129 i130 i131 i132 i133 i134 i135 i136 i137 i138 i139 i140 i141 i142 i143 i144 i145 i146 i147 i148 i149 i150 i151 i152 i153 i154 i155 i156 i157 i158 i159 i160 i161 i162 i163 i164 i165 i166 i167 i168 i169 i170 i171 i172 i173 i174 i175 i176 i177 i178 i179 i180 i181 i182 i183 i184 i185 i186 i187 i188 i189 i190 i191 i192 i193 i194 i195 i196 i197 i198 i199 i200 i201 i202 i203 i204 i205 i206 i207 i208 i209 i210 i211 i212 i213 i214 i215 i216 i217 i218 i219 i220 i221 i222 i223 i224 i225 i226 i227 i228 i229 i230 i231 i232 i233 i234 i235 i236 i237 i238 i239 i240 i241 i242 i243 i244 i245 i246 i247 i248 i249 i250 i251 i252 i253 i254 i255 i256 i257 i258 i259 i260 i261 i262 i263 i264 i265 i266 i267 i268 i269 i270 i271 i272 i273 i274 i275 i276 i277 i278 i279 i280 i281 i282 i283 i284 i285 i286 i287 i288 i289 i290 i291 i292 i293 i294 i295 i296 i297 i298 i299 i300 i301 i302 i303 i304 i305 i306 i307 i308 i309 i310 i311 i312 i313 i314 i315 i316 i317 i318 i319 i320 i321 i322 i323 i324 i325 i326 i327 i328 i329 i330 i331 i332 i333 i334 i335 i336 i337 i338 i339 i340 i341 i342 i343 i344 i345 i346 i347 i348 i349 i350 i351 i352 i353 i354 i355 i356 i357 i358 i359 i360 i361 i362 i363 i364 i365 i366 i367 i368 i369 i370 i371 i372 i373 i374 i375 i376 i377 i378 i379 i380 i381 i382 i383 i384 i385 i386 i387 i388 i389 i390 i391 i392 i393 i394 i395 i396 i397 i398 i399 i400 i401 i402 i403 i404 i405 i406 i407 i408 i409 i410 i411 i412 i413 i414 i415 i416 i417 i418 i419 i420 i421 i422 i423 i424 i425 i426 i427 i428 i429 i430 i431 i432 i433 i434 i435 i436 i437 i438 i439 i440 i441 i442 i443 i444 i445 i446 i447 i448 i449 i450 i451 i452 i453 i454 i455 i456 i457 i458 i459 i460 i461 i462 i463 i464 i465 i466 i467 i468 i469 i470 i471 i472 i473 i474 i475 i476 i477 i478 i479 i480 i481 i482 i483 i484 i485 i486 i487 i488 i489 i490 i491 i492 i493 i494 i495 i496 i497 i498 i499 i500 i501 i502 i503 i504 i505 i506 i507 i508 i509 i510 i511 i512 i513 i514 i515 i516 i517 i518 i519 i520 i521 i522 i523 i524 i525 i526 i527 i528 i529 i530 i531 i532 i533 i534 i535 i536 i537 i538 i539 i540 i541 i542 i543 i544 i545 i546 i547 i548 i549 i550 i551 i552 i553 i554 i555 i556 i557 i558 i559 i560 i561 i562 i563 i564 i565 i566 i567 i568 i569 i570 i571 i572 i573 i574 i575 i576 i577 i578 i579 i580 i581 i582 i583 i584 i585 i586 i587 i588 i589 i590 i591 i592 i593 i594 i595 i596 i597 i598 i599 i600 i601 i602 i603 i604 i605 i606 i607 i608 i609 i610 i611 i612 i613 i614 i615 i616 i617 i618 i619 i620 i621 i622 i623 i624 i625 i626 i627 i628 i629 i630 i631 i632 i633 i634 i635 i636 i637 i638 i639 i640 i641 i642 i643 i644 i645 i646 i647 i648 i649 i650 i651 i652 i653 i654 i655 i656 i657 i658 i659 i660 i661 i662 i663 i664 i665 i666 i667 i668 i669 i670 i671 i672 i673 i674 i675 i676 i677 i678 i679 i680 i681 i682 i683 i684 i685 i686 i687 i688 i689 i690 i691 i692 i693 i694 i695 i696 i697 i698 i699 i700 i701 i702 i703 i704 i705 i706 i707 i708 i709 i710 i711 i712 i713 i714 i715 i716 i717 i718 i719 i720 i721 i722 i723 i724 i725 i726 i727 i728 i729 i730 i731 i732 i733 i734 i735 i736 i737 i738 i739 i740 i741 i742 i743 i744 i745 i746 i747 i748 i749 i750 i751 i752 i753 i754 i755 i756 i757 i758 i759 i760 i761 i762 i763 i764 i765 i766 i767 i768 i769 i770 i771 i772 i773 i774 i775 i776 i777 i778 i779 i780 i781 i782 i783 i784 i785 i786 i787 i788 i789 i790 i791 i792 i793 i794 i795 i796 i797 i798 i799 i800 i801 i802 i803 i804 i805 i806 i807 i808 i809 i810 i811 i812 i813 i814 i815 i816 i817 i818 i819 i820 i821 i822 i823 i824 i825 i826 i827 i828 i829 i830 i831 i832 i833 i834 i835 i836 i837 i838 i839 i840 i841 i842 i843 i844 i845 i846 i847 i848 i849 i850 i851 i852 i853 i854 i855 i856 i857 i858 i859 i860 i861 i862 i863 i864 i865 i866 i867 i868 i869 i870 i871 i872 i873 i874 i875 i876 i877 i878 i879 i880 i881 i882 i883 i884 i885 i886 i887 i888 i889 i890 i891 i892 i893 i894 i895 i896 i897 i898 i899 i900 i901 i902 i903 i904 i905 i906 i907 i908 i909 i910 i911 i912 i913 i914 i915 i916 i917 i918 i919 i920 i921 i922 i923 i924 i925 i926 i927 i928 i929 i930 i931 i932 i933 i934 i935 i936 i937 i938 i939 i940 i941 i942 i943 i944 i945 i946 i947 i948 i949 i950 i951 i952 i953 i954 i955 i956 i957 i958 i959 i960 i961 i962 i963 i964 i965 i966 i967 i968 i969 i970 i971 i972 i973 i974 i975 i976 i977 i978 i979 i980 i981 i982 i983 i984 i985 i986 i987 i988 i989 i990 i991 i992 i993 i994 i995 i996 i997 i998 i999 i1000 b
1347
DROP TABLE IF EXISTS federated.t1;
1348
CREATE TABLE federated.t1 (id int NOT NULL auto_increment, code char(20) NOT NULL, fileguts blob NOT NULL, creation_date datetime, entered_time datetime default '2004-04-04 04:04:04', PRIMARY KEY(id), index(code), index(fileguts(10))) DEFAULT CHARSET=latin1;
1349
DROP TABLE IF EXISTS federated.t1;
1350
CREATE TABLE federated.t1 (
1351
id int NOT NULL auto_increment,
1352
code char(20) NOT NULL,
1353
fileguts blob NOT NULL,
1354
creation_date datetime,
1355
entered_time datetime default '2004-04-04 04:04:04',
1358
index(fileguts(10)))
1359
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1360
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1361
INSERT INTO federated.t1 (code, fileguts, creation_date) VALUES ('ASDFWERQWETWETAWETA', '*()w*09*$()*#)(*09*^90*d)(*s()d8g)(s*ned)(*)(s*d)(*hn(d*)(*sbn)D((#$*(#*%%&#&^$#&#&#&#&^&#*&*#$*&^*(&#(&Q*&&(*!&!(*&*(#&*(%&#<S-F8>*<S-F8><S-F8><S-F8>#<S-F8>#<S-F8>#<S-F8>[[', '2003-03-03 03:03:03');
1362
INSERT INTO federated.t1 (code, fileguts, creation_date) VALUES ('DEUEUEUEUEUEUEUEUEU', '*()w*09*$()*#)(*09*^90*d)(*s()d8g)(s*ned)(*)(s*d)(*hn(d*)(*sbn)D((#$*(#*%%&#&^$#&#&#&#&^&#*&*#$*&^*(&#(&Q*&&(*!&!(*&*(#&*(%&#<S-F8>*<S-F8><S-F8><S-F8>#<S-F8>#<S-F8>#<S-F8>[[', '2004-04-04 04:04:04');
1363
INSERT INTO federated.t1 (code, fileguts, creation_date) VALUES ('DEUEUEUEUEUEUEUEUEU', 'jimbob', '2004-04-04 04:04:04');
1364
SELECT * FROM federated.t1;
1365
id code fileguts creation_date entered_time
1366
1 ASDFWERQWETWETAWETA *()w*09*$()*#)(*09*^90*d)(*s()d8g)(s*ned)(*)(s*d)(*hn(d*)(*sbn)D((#$*(#*%%&#&^$#&#&#&#&^&#*&*#$*&^*(&#(&Q*&&(*!&!(*&*(#&*(%&#<S-F8>*<S-F8><S-F8><S-F8>#<S-F8>#<S-F8>#<S-F8>[[ 2003-03-03 03:03:03 2004-04-04 04:04:04
1367
2 DEUEUEUEUEUEUEUEUEU *()w*09*$()*#)(*09*^90*d)(*s()d8g)(s*ned)(*)(s*d)(*hn(d*)(*sbn)D((#$*(#*%%&#&^$#&#&#&#&^&#*&*#$*&^*(&#(&Q*&&(*!&!(*&*(#&*(%&#<S-F8>*<S-F8><S-F8><S-F8>#<S-F8>#<S-F8>#<S-F8>[[ 2004-04-04 04:04:04 2004-04-04 04:04:04
1368
3 DEUEUEUEUEUEUEUEUEU jimbob 2004-04-04 04:04:04 2004-04-04 04:04:04
1369
SELECT * FROM federated.t1 WHERE fileguts = 'jimbob';
1370
id code fileguts creation_date entered_time
1371
3 DEUEUEUEUEUEUEUEUEU jimbob 2004-04-04 04:04:04 2004-04-04 04:04:04
1372
DROP TABLE IF EXISTS federated.t1;
1373
CREATE TABLE federated.t1 (`a` BLOB);
1374
DROP TABLE IF EXISTS federated.t1;
1375
CREATE TABLE federated.t1 (
1378
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1379
INSERT INTO federated.t1 VALUES (0x00);
1380
INSERT INTO federated.t1 VALUES (0x0001);
1381
INSERT INTO federated.t1 VALUES (0x0100);
1382
SELECT HEX(a) FROM federated.t1;
1387
DROP TABLE IF EXISTS federated.t1;
1388
CREATE TABLE federated.t1 (
1389
`id` int(20) NOT NULL auto_increment,
1390
`country_id` int(20) NOT NULL DEFAULT 0,
1392
`other` varchar(20),
1395
DROP TABLE IF EXISTS federated.countries;
1397
Note 1051 Unknown table 'countries'
1398
CREATE TABLE federated.countries (
1399
`id` int(20) NOT NULL auto_increment,
1400
`country` varchar(32),
1402
INSERT INTO federated.countries (country) VALUES ('India');
1403
INSERT INTO federated.countries (country) VALUES ('Germany');
1404
INSERT INTO federated.countries (country) VALUES ('Italy');
1405
INSERT INTO federated.countries (country) VALUES ('Finland');
1406
INSERT INTO federated.countries (country) VALUES ('Ukraine');
1407
DROP TABLE IF EXISTS federated.t1;
1408
CREATE TABLE federated.t1 (
1409
`id` int(20) NOT NULL auto_increment,
1410
`country_id` int(20) NOT NULL DEFAULT 0,
1412
`other` varchar(20),
1415
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1416
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1417
INSERT INTO federated.t1 (name, country_id, other) VALUES ('Kumar', 1, 11111);
1418
INSERT INTO federated.t1 (name, country_id, other) VALUES ('Lenz', 2, 22222);
1419
INSERT INTO federated.t1 (name, country_id, other) VALUES ('Marizio', 3, 33333);
1420
INSERT INTO federated.t1 (name, country_id, other) VALUES ('Monty', 4, 33333);
1421
INSERT INTO federated.t1 (name, country_id, other) VALUES ('Sanja', 5, 33333);
1422
SELECT federated.t1.name AS name, federated.t1.country_id AS country_id,
1423
federated.t1.other AS other, federated.countries.country AS country
1424
FROM federated.t1, federated.countries WHERE
1425
federated.t1.country_id = federated.countries.id;
1426
name country_id other country
1428
Lenz 2 22222 Germany
1429
Marizio 3 33333 Italy
1430
Monty 4 33333 Finland
1431
Sanja 5 33333 Ukraine
1432
SELECT federated.t1.name AS name, federated.t1.country_id AS country_id,
1433
federated.t1.other AS other, federated.countries.country AS country
1434
FROM federated.t1 INNER JOIN federated.countries ON
1435
federated.t1.country_id = federated.countries.id;
1436
name country_id other country
1438
Lenz 2 22222 Germany
1439
Marizio 3 33333 Italy
1440
Monty 4 33333 Finland
1441
Sanja 5 33333 Ukraine
1442
SELECT federated.t1.name AS name, federated.t1.country_id AS country_id,
1443
federated.t1.other AS other, federated.countries.country AS country
1444
FROM federated.t1 INNER JOIN federated.countries ON
1445
federated.t1.country_id = federated.countries.id
1446
WHERE federated.t1.name = 'Monty';
1447
name country_id other country
1448
Monty 4 33333 Finland
1449
SELECT federated.t1.*, federated.countries.country
1450
FROM federated.t1 LEFT JOIN federated.countries
1451
ON federated.t1.country_id = federated.countries.id
1452
ORDER BY federated.countries.id;
1453
id country_id name other country
1454
1 1 Kumar 11111 India
1455
2 2 Lenz 22222 Germany
1456
3 3 Marizio 33333 Italy
1457
4 4 Monty 33333 Finland
1458
5 5 Sanja 33333 Ukraine
1459
SELECT federated.t1.*, federated.countries.country
1460
FROM federated.t1 LEFT JOIN federated.countries
1461
ON federated.t1.country_id = federated.countries.id
1462
ORDER BY federated.countries.country;
1463
id country_id name other country
1464
4 4 Monty 33333 Finland
1465
2 2 Lenz 22222 Germany
1466
1 1 Kumar 11111 India
1467
3 3 Marizio 33333 Italy
1468
5 5 Sanja 33333 Ukraine
1469
SELECT federated.t1.*, federated.countries.country
1470
FROM federated.t1 RIGHT JOIN federated.countries
1471
ON federated.t1.country_id = federated.countries.id
1472
ORDER BY federated.t1.country_id;
1473
id country_id name other country
1474
1 1 Kumar 11111 India
1475
2 2 Lenz 22222 Germany
1476
3 3 Marizio 33333 Italy
1477
4 4 Monty 33333 Finland
1478
5 5 Sanja 33333 Ukraine
1479
DROP TABLE federated.countries;
1480
OPTIMIZE TABLE federated.t1;
1481
Table Op Msg_type Msg_text
1482
federated.t1 optimize status OK
1483
REPAIR TABLE federated.t1;
1484
Table Op Msg_type Msg_text
1485
federated.t1 repair status OK
1486
REPAIR TABLE federated.t1 QUICK;
1487
Table Op Msg_type Msg_text
1488
federated.t1 repair status OK
1489
REPAIR TABLE federated.t1 EXTENDED;
1490
Table Op Msg_type Msg_text
1491
federated.t1 repair status OK
1492
REPAIR TABLE federated.t1 USE_FRM;
1493
Table Op Msg_type Msg_text
1494
federated.t1 repair status OK
1495
DROP TABLE IF EXISTS federated.normal_table;
1496
CREATE TABLE federated.normal_table (
1497
`id` int(4) NOT NULL,
1498
`name` varchar(10) default NULL
1499
) DEFAULT CHARSET=latin1;
1500
DROP TABLE IF EXISTS federated.alter_me;
1501
CREATE TABLE federated.alter_me (
1502
`id` int(4) NOT NULL,
1503
`name` varchar(10) default NULL,
1505
) ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1506
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/normal_table';
1507
INSERT INTO federated.alter_me (id, name) VALUES (1, 'Monty');
1508
INSERT INTO federated.alter_me (id, name) VALUES (2, 'David');
1509
SELECT * FROM federated.alter_me;
1513
ALTER TABLE federated.alter_me MODIFY COLUMN id int(16) NOT NULL;
1514
ERROR HY000: Table storage engine for 'alter_me' doesn't have this option
1515
SELECT * FROM federated.alter_me;
1519
DROP TABLE federated.alter_me;
1520
DROP TABLE federated.normal_table;
1521
DROP TABLE IF EXISTS federated.t1;
1522
CREATE TABLE federated.t1 (
1524
) DEFAULT CHARSET=latin1;
1525
DROP TABLE IF EXISTS federated.t1;
1526
CREATE TABLE federated.t1 (
1528
) ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1529
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1530
INSERT INTO federated.t1 VALUES (b'001');
1531
INSERT INTO federated.t1 VALUES (b'010');
1532
INSERT INTO federated.t1 VALUES (b'011');
1533
INSERT INTO federated.t1 VALUES (b'100');
1534
INSERT INTO federated.t1 VALUES (b'101');
1535
INSERT INTO federated.t1 VALUES (b'110');
1536
INSERT INTO federated.t1 VALUES (b'111');
1537
select * FROM federated.t1;
1546
drop table federated.t1;
1547
drop table federated.t1;
1548
DROP TABLE IF EXISTS federated.t1;
1550
Note 1051 Unknown table 't1'
1551
CREATE TABLE federated.t1 (
1552
`id` int(20) NOT NULL auto_increment,
1553
PRIMARY KEY (`id`));
1554
DROP TABLE IF EXISTS federated.t1;
1556
Note 1051 Unknown table 't1'
1557
CREATE TABLE federated.t1 (
1558
`id` int(20) NOT NULL auto_increment,
1561
ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1562
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1563
INSERT INTO federated.t1 VALUES ();
1564
SELECT LAST_INSERT_ID();
1567
INSERT INTO federated.t1 VALUES ();
1568
SELECT LAST_INSERT_ID();
1571
INSERT INTO federated.t1 VALUES ();
1572
SELECT LAST_INSERT_ID();
1575
INSERT INTO federated.t1 VALUES ();
1576
SELECT LAST_INSERT_ID();
1579
INSERT INTO federated.t1 VALUES ();
1580
SELECT LAST_INSERT_ID();
1583
SELECT * FROM federated.t1;
1590
DROP TABLE federated.t1;
1591
DROP TABLE federated.t1;
1592
DROP TABLE IF EXISTS federated.bug_17377_table;
1593
CREATE TABLE federated.bug_17377_table (
1594
`fld_cid` bigint(20) NOT NULL auto_increment,
1595
`fld_name` varchar(255) NOT NULL default '',
1596
`fld_parentid` bigint(20) NOT NULL default '0',
1597
`fld_delt` int(1) NOT NULL default '0',
1598
PRIMARY KEY (`fld_cid`),
1599
KEY `fld_parentid` (`fld_parentid`),
1600
KEY `fld_delt` (`fld_delt`),
1601
KEY `fld_cid` (`fld_cid`)
1603
insert into federated.bug_17377_table( fld_name )
1605
("Mats"), ("Sivert"), ("Sigvard"), ("Torgny"), ("Torkel");
1606
DROP TABLE IF EXISTS federated.t1;
1607
CREATE TABLE federated.t1 (
1608
`fld_cid` bigint(20) NOT NULL auto_increment,
1609
`fld_name` varchar(255) NOT NULL default '',
1610
`fld_parentid` bigint(20) NOT NULL default '0',
1611
`fld_delt` int(1) NOT NULL default '0',
1612
PRIMARY KEY (`fld_cid`),
1613
KEY `fld_parentid` (`fld_parentid`),
1614
KEY `fld_delt` (`fld_delt`),
1615
KEY `fld_cid` (`fld_cid`)
1617
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/bug_17377_table';
1618
select * from federated.t1 where fld_parentid=0 and fld_delt=0
1620
fld_cid fld_name fld_parentid fld_delt
1626
select * from federated.t1 where fld_parentid=0 and fld_delt=0;
1627
fld_cid fld_name fld_parentid fld_delt
1633
DROP TABLE federated.t1;
1634
DROP TABLE federated.bug_17377_table;
1635
DROP TABLE IF EXISTS federated.test;
1636
CREATE TABLE federated.test (
1637
`id` int(11) NOT NULL,
1638
`val1` varchar(255) NOT NULL,
1639
`val2` varchar(255) NOT NULL,
1641
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1642
DROP TABLE IF EXISTS federated.test_local;
1643
DROP TABLE IF EXISTS federated.test_remote;
1644
CREATE TABLE federated.test_local (
1645
`id` int(11) NOT NULL,
1646
`val1` varchar(255) NOT NULL,
1647
`val2` varchar(255) NOT NULL,
1649
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1650
INSERT INTO federated.test_local VALUES (1, 'foo', 'bar'),
1652
CREATE TABLE federated.test_remote (
1653
`id` int(11) NOT NULL,
1654
`val1` varchar(255) NOT NULL,
1655
`val2` varchar(255) NOT NULL,
1657
) ENGINE=FEDERATED DEFAULT CHARSET=latin1
1658
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/test';
1659
insert into federated.test_remote select * from federated.test_local;
1660
select * from federated.test_remote;
1664
delete from federated.test_remote where id in (1,2);
1665
insert into federated.test_remote select * from federated.test_local;
1666
select * from federated.test_remote;
1670
DROP TABLE federated.test_local;
1671
DROP TABLE federated.test_remote;
1672
DROP TABLE federated.test;
1673
drop table if exists federated.t1;
1674
create table federated.t1 (a int, b int, c int);
1675
drop table if exists federated.t1;
1676
drop table if exists federated.t2;
1677
create table federated.t1 (a int, b int, c int) engine=federated connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1678
create trigger federated.t1_bi before insert on federated.t1 for each row set new.c= new.a * new.b;
1679
create table federated.t2 (a int, b int);
1680
insert into federated.t2 values (13, 17), (19, 23);
1681
insert into federated.t1 (a, b) values (1, 2), (3, 5), (7, 11);
1682
select * from federated.t1 order by a;
1687
delete from federated.t1;
1688
insert into federated.t1 (a, b) select * from federated.t2;
1689
select * from federated.t1 order by a;
1693
delete from federated.t1;
1694
load data infile '../std_data_ln/loaddata5.dat' into table federated.t1 fields terminated by '' enclosed by '' ignore 1 lines (a, b);
1695
select * from federated.t1 order by a;
1699
drop tables federated.t1, federated.t2;
1700
drop table federated.t1;
1701
create table federated.t1 (i1 int, i2 int, i3 int);
1702
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20));
1703
create table federated.t1 (i1 int, i2 int, i3 int) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1704
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t2';
1705
insert into federated.t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
1706
insert into federated.t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
1707
select * from federated.t1 order by i1;
1714
select * from federated.t2;
1719
update federated.t1,federated.t2 set t1.i2=15, t2.c2="ppc" where t1.i1=t2.id;
1720
select * from federated.t1 order by i1;
1727
select * from federated.t2 order by id;
1732
delete federated.t1.*,federated.t2.* from federated.t1,federated.t2 where t1.i2=t2.id;
1733
select * from federated.t1 order by i1;
1738
select * from federated.t2 order by id;
1742
drop table federated.t1, federated.t2;
1743
drop table federated.t1, federated.t2;
1744
create table federated.t1 (i1 int, i2 int, i3 int, primary key (i1));
1745
create table federated.t2 (id int, c1 varchar(20), c2 varchar(20), primary key (id));
1746
create table federated.t1 (i1 int auto_increment not null, i2 int, i3 int, primary key (i1)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1747
create table federated.t2 (id int auto_increment not null, c1 varchar(20), c2 varchar(20), primary key(id)) ENGINE=FEDERATED CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t2';
1748
insert into federated.t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
1749
insert into federated.t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
1750
select * from federated.t1 order by i1;
1757
select * from federated.t2 order by id;
1762
update federated.t1,federated.t2 set t1.i2=15, t2.c2="ppc" where t1.i1=t2.id;
1763
select * from federated.t1 order by i1;
1770
select * from federated.t2 order by id;
1775
delete federated.t1.*,federated.t2.* from federated.t1,federated.t2 where t1.i2=t2.id;
1776
select * from federated.t1 order by i1;
1781
select * from federated.t2 order by id;
1785
drop table federated.t1, federated.t2;
1786
drop table federated.t1, federated.t2;
1787
create table t1 (id int not null auto_increment primary key, val int);
1789
(id int not null auto_increment primary key, val int) engine=federated
1790
connection='mysql://root@127.0.0.1:SLAVE_PORT/test/t1';
1791
insert into t1 values (1,0),(2,0);
1792
update t1 set val = NULL where id = 1;
1803
create table t1 (a longblob not null);
1805
(a longblob not null) engine=federated
1806
connection='mysql://root@127.0.0.1:SLAVE_PORT/test/t1';
1807
insert into t1 values (repeat('a',5000));
1808
select length(a) from t1;
1811
select length(a) from t1;
1816
DROP TABLE IF EXISTS federated.test;
1817
CREATE TABLE federated.test (
1818
`i` int(11) NOT NULL,
1819
`j` int(11) NOT NULL,
1820
`c` varchar(30) default NULL,
1821
PRIMARY KEY (`i`,`j`),
1822
UNIQUE KEY `i` (`i`,`c`)
1823
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1824
DROP TABLE IF EXISTS federated.test1;
1825
DROP TABLE IF EXISTS federated.test2;
1826
create table federated.test1 (
1833
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/test';
1834
create table federated.test2 (
1840
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/test';
1841
drop table federated.test1, federated.test2;
1842
drop table federated.test;
1844
create table federated.t1 (a varchar(64)) DEFAULT CHARSET=utf8;
1845
insert into federated.t1 values (0x6DC3A56E6164);
1846
select hex(a) from federated.t1;
1849
create table federated.t1 (a varchar(64))
1851
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'
1852
DEFAULT CHARSET=utf8;
1854
select hex(a) from federated.t1;
1857
insert into federated.t1 values (0xC3A4C3B6C3BCC39F);
1858
insert into federated.t1 values (0xD18DD184D184D0B5D0BAD182D0B8D0B2D0BDD183D18E);
1859
select hex(a) from federated.t1;
1863
D18DD184D184D0B5D0BAD182D0B8D0B2D0BDD183D18E
1864
select hex(a) from federated.t1;
1868
D18DD184D184D0B5D0BAD182D0B8D0B2D0BDD183D18E
1869
drop table federated.t1;
1870
drop table federated.t1;
1871
CREATE TABLE federated.t1 (
1872
categoryId int(11) NOT NULL AUTO_INCREMENT,
1873
domainId varchar(745) NOT NULL DEFAULT '',
1874
categoryName varchar(255) NOT NULL DEFAULT '',
1875
PRIMARY KEY (categoryId),
1876
UNIQUE KEY idx_unique_category_categoryName (domainId, categoryName),
1877
KEY idx_category_domainId (domainId)
1878
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1879
CREATE TABLE federated.t1 (
1880
categoryId int(11) NOT NULL AUTO_INCREMENT,
1881
domainId varchar(745) NOT NULL DEFAULT '',
1882
categoryName varchar(255) NOT NULL DEFAULT '',
1883
PRIMARY KEY (categoryId),
1884
UNIQUE KEY idx_unique_category_categoryName (domainId, categoryName),
1885
KEY idx_category_domainId (domainId)
1886
) ENGINE=FEDERATED DEFAULT CHARSET=latin1
1887
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1888
insert into federated.t1 (domainId, categoryName) values ( '1231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231 300', '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 250');
1889
insert into federated.t1 (domainId, categoryName) values ( '12312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312 301', '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 250');
1890
insert into federated.t1 (domainId, categoryName) values ('a', 'b');
1891
select categoryId from federated.t1 order by domainId, categoryName;
1896
select categoryId from federated.t1 where domainId='a' and categoryName='b' order by categoryId;
1899
select categoryId from federated.t1 where domainId='a' and categoryName='b' order by categoryId;
1902
select categoryId from federated.t1 where domainId<>'a' and categoryName<>'b' order by categoryId;
1906
drop table federated.t1;
1907
drop table federated.t1;
1908
create table federated.t1 (a int primary key, b varchar(64))
1909
DEFAULT CHARSET=utf8;
1910
create table federated.t1 (a int primary key, b varchar(64))
1912
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'
1913
DEFAULT CHARSET=utf8;
1914
insert ignore into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
1915
select * from federated.t1;
1919
truncate federated.t1;
1920
replace into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
1921
select * from federated.t1;
1925
update ignore federated.t1 set a=a+1;
1926
select * from federated.t1;
1930
drop table federated.t1;
1931
drop table federated.t1;
1932
create table federated.t1 (a int primary key, b varchar(64))
1933
DEFAULT CHARSET=utf8;
1934
create table federated.t1 (a int primary key, b varchar(64))
1936
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'
1937
DEFAULT CHARSET=utf8;
1938
insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe")
1939
on duplicate key update a=a+100;
1940
ERROR 23000: Can't write; duplicate key in table 't1'
1941
select * from federated.t1;
1945
drop table federated.t1;
1946
drop table federated.t1;
1948
Bug#18287 create federated table always times out, error 1159 ' '
1950
Test that self-references work
1952
create table federated.t1 (a int primary key);
1953
create table federated.t2 (a int primary key)
1955
connection='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1';
1956
insert into federated.t1 (a) values (1);
1957
select * from federated.t2;
1960
drop table federated.t1, federated.t2;
1961
CREATE TABLE federated.t1 (a INT PRIMARY KEY) DEFAULT CHARSET=utf8;
1962
CREATE TABLE federated.t1 (a INT PRIMARY KEY)
1964
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/federated/t1'
1965
DEFAULT CHARSET=utf8;
1966
SELECT transactions FROM information_schema.engines WHERE engine="FEDERATED";
1969
INSERT INTO federated.t1 VALUES (1);
1971
INSERT INTO federated.t1 VALUES (2);
1974
Warning 1196 Some non-transactional changed tables couldn't be rolled back
1976
SELECT * FROM federated.t1;
1980
DROP TABLE federated.t1;
1981
DROP TABLE federated.t1;
1982
create table t1 (a varchar(256));
1983
drop view if exists v1;
1984
create view v1 as select a from t1;
1986
(a varchar(256)) engine=federated
1987
connection='mysql://root@127.0.0.1:SLAVE_PORT/test/v1';
1988
select 1 from t1 order by a;
2093
CREATE TABLE t1 (a INT, b INT, KEY(a,b));
2094
INSERT INTO t1 VALUES(NULL,1),(1,NULL),(NULL,NULL),(1,1),(2,2);
2095
CREATE TABLE t1 (a INT, b INT, KEY(a,b)) ENGINE=federated
2096
CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/test/t1';
2097
SELECT * FROM t1 WHERE a IS NULL;
2101
SELECT * FROM t1 WHERE a IS NOT NULL;
2106
SELECT * FROM t1 WHERE a=1 AND b=1;
2109
SELECT * FROM t1 WHERE a IS NULL AND b=1;
2112
SELECT * FROM t1 WHERE a IS NOT NULL AND b=1;
2117
CREATE TABLE t1 (a INT) ENGINE=federated CONNECTION='mysql://@:://';
2119
create server 's1' foreign data wrapper 'mysql' options (port 3306);
2122
DROP TABLE IF EXISTS federated.t1;
2123
DROP DATABASE IF EXISTS federated;
2124
DROP TABLE IF EXISTS federated.t1;
2125
DROP DATABASE IF EXISTS federated;