Debian Codegraph @

mysql-test/suite/federated/federatedx.result

raw
1 connect master,127.0.0.1,root,,test,$MASTER_MYPORT,;
2 connect slave,127.0.0.1,root,,test,$SLAVE_MYPORT,;
3 connection master;
4 CREATE DATABASE federated;
5 connection slave;
6 CREATE DATABASE federated;
7 connection default;
8 SET @OLD_MASTER_CONCURRENT_INSERT= @@GLOBAL.CONCURRENT_INSERT;
9 SET @@GLOBAL.CONCURRENT_INSERT= 0;
10 connection slave;
11 SET @OLD_SLAVE_CONCURRENT_INSERT= @@GLOBAL.CONCURRENT_INSERT;
12 SET @@GLOBAL.CONCURRENT_INSERT= 0;
13 DROP TABLE IF EXISTS federated.t1;
14 Warnings:
15 Note 1051 Unknown table 'federated.t1'
16 CREATE TABLE federated.t1 (
17 `id` int(20) NOT NULL,
18 `group` int NOT NULL default 0,
19 `a\\b` int NOT NULL default 0,
20 `a\\` int NOT NULL default 0,
21 `name` varchar(32) NOT NULL default ''
22 )
23 DEFAULT CHARSET=latin1;
24 connection master;
25 DROP TABLE IF EXISTS federated.t1;
26 Warnings:
27 Note 1051 Unknown table 'federated.t1'
28 CREATE TABLE federated.t1 (
29 `id` int(20) NOT NULL,
30 `group` int NOT NULL default 0,
31 `a\\b` inT NOT NULL default 0,
32 `a\\` int NOT NULL default 0,
33 `name` varchar(32) NOT NULL default ''
34 )
35 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
36 CONNECTION='mysql://[email protected]:@/too/many/items/federated/t1';
37 ERROR HY000: Can't create federated table. The data source connection string 'mysql://[email protected]:@/too/many/items/federated/t1' is not in the correct format
38 CREATE TABLE federated.t1 (
39 `id` int(20) NOT NULL,
40 `group` int NOT NULL default 0,
41 `a\\b` iNt NOT NULL default 0,
42 `a\\` int NOT NULL default 0,
43 `name` varchar(32) NOT NULL default ''
44 )
45 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
46 CONNECTION='mysql://[email protected]';
47 ERROR HY000: Can't create federated table. The data source connection string 'mysql://[email protected]' is not in the correct format
48 CREATE TABLE federated.t1 (
49 `id` int(20) NOT NULL,
50 `group` int NOT NULL default 0,
51 `a\\b` iNT NOT NULL default 0,
52 `a\\` int NOT NULL default 0,
53 `name` varchar(32) NOT NULL default ''
54 )
55 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
56 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t3';
57 ERROR HY000: Can't create federated table. Foreign data src error: database: 'federated' username: 'root' hostname: '127.0.0.1'
58 DROP TABLE IF EXISTS federated.t1;
59 Warnings:
60 Note 1051 Unknown table 'federated.t1'
61 CREATE TABLE federated.t1 (
62 `id` int(20) NOT NULL,
63 `group` int NOT NULL default 0,
64 `a\\b` Int NOT NULL default 0,
65 `a\\` int NOT NULL default 0,
66 `name` varchar(32) NOT NULL default ''
67 )
68 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
69 CONNECTION='mysql://user:[email protected]:SLAVE_PORT/federated/t1';
70 ERROR HY000: Can't create federated table. Foreign data src error: database: 'federated' username: 'user' hostname: '127.0.0.1'
71 DROP TABLE IF EXISTS federated.t1;
72 Warnings:
73 Note 1051 Unknown table 'federated.t1'
74 CREATE TABLE federated.t1 (
75 `id` int(20) NOT NULL,
76 `group` int NOT NULL default 0,
77 `a\\b` InT NOT NULL default 0,
78 `a\\` int NOT NULL default 0,
79 `name` varchar(32) NOT NULL default ''
80 )
81 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
82 CONNECTION='mariadb://[email protected]:SLAVE_PORT/federated/t1';
83 INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
84 INSERT INTO federated.t1 (id, name) VALUES (2, 'fee');
85 INSERT INTO federated.t1 (id, `group`) VALUES (3, 42);
86 INSERT INTO federated.t1 (id, `a\\b`) VALUES (4, 23);
87 INSERT INTO federated.t1 (id, `a\\`) VALUES (5, 1);
88 SELECT * FROM federated.t1;
89 id group a\\b a\\ name
90 1 0 0 0 foo
91 2 0 0 0 fee
92 3 42 0 0
93 4 0 23 0
94 5 0 0 1
95 DELETE FROM federated.t1;
96 DROP TABLE federated.t1;
97 DROP TABLE IF EXISTS federated.t2;
98 Warnings:
99 Note 1051 Unknown table 'federated.t2'
100 CREATE TABLE federated.t2 (
101 `id` int(20) NOT NULL,
102 `name` varchar(32) NOT NULL default ''
103 )
104 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
105 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
106 SHOW CREATE TABLE federated.t2;
107 Table Create Table
108 t2 CREATE TABLE `t2` (
109 `id` int(20) NOT NULL,
110 `name` varchar(32) NOT NULL DEFAULT ''
111 ) ENGINE=FEDERATED DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1'
112 INSERT INTO federated.t2 (id, name) VALUES (1, 'foo');
113 INSERT INTO federated.t2 (id, name) VALUES (2, 'fee');
114 SELECT * FROM federated.t2 ORDER BY id, name;
115 id name
116 1 foo
117 2 fee
118 DROP TABLE federated.t2;
119 connection slave;
120 DROP TABLE IF EXISTS federated.t1;
121 DROP TABLE IF EXISTS federated.`t1%`;
122 Warnings:
123 Note 1051 Unknown table 'federated.t1%'
124 CREATE TABLE federated.`t1%` (
125 `id` int(20) NOT NULL,
126 `name` varchar(32) NOT NULL default ''
127 )
128 DEFAULT CHARSET=latin1;
129 connection master;
130 DROP TABLE IF EXISTS federated.t1;
131 Warnings:
132 Note 1051 Unknown table 'federated.t1'
133 CREATE TABLE federated.t1 (
134 `id` int(20) NOT NULL,
135 `name` varchar(32) NOT NULL default ''
136 )
137 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
138 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1%';
139 INSERT INTO federated.t1 (id, name) VALUES (1, 'foo');
140 INSERT INTO federated.t1 (id, name) VALUES (2, 'fee');
141 SELECT * FROM federated.t1 ORDER BY id,name;
142 id name
143 1 foo
144 2 fee
145 DELETE FROM federated.t1;
146 DROP TABLE IF EXISTS federated.t1;
147 CREATE TABLE federated.`t1%` (
148 `id` int(20) NOT NULL,
149 `name` varchar(32) NOT NULL default ''
150 )
151 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
152 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1%';
153 INSERT INTO federated.`t1%` (id, name) VALUES (1, 'foo');
154 INSERT INTO federated.`t1%` (id, name) VALUES (2, 'fee');
155 SELECT * FROM federated.`t1%` ORDER BY id, name;
156 id name
157 1 foo
158 2 fee
159 DELETE FROM federated.`t1%`;
160 DROP TABLE IF EXISTS federated.`t1%`;
161 connection slave;
162 DROP TABLE IF EXISTS federated.`t1%`;
163 DROP TABLE IF EXISTS federated.t1;
164 Warnings:
165 Note 1051 Unknown table 'federated.t1'
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',
171 PRIMARY KEY (`id`))
172 DEFAULT CHARSET=latin1;
173 connection master;
174 CREATE TABLE federated.t1 (
175 `id` int(20) NOT NULL auto_increment,
176 `name` varchar(32) NOT NULL default '',
177 `other` int(20) NOT NULL default '0',
178 `created` datetime default '2004-04-04 04:04:04',
179 PRIMARY KEY (`id`))
180 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
181 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
182 INSERT INTO federated.t1 (name, other) VALUES ('First Name', 11111);
183 INSERT INTO federated.t1 (name, other) VALUES ('Second Name', 22222);
184 INSERT INTO federated.t1 (name, other) VALUES ('Third Name', 33333);
185 INSERT INTO federated.t1 (name, other) VALUES ('Fourth Name', 44444);
186 INSERT INTO federated.t1 (name, other) VALUES ('Fifth Name', 55555);
187 INSERT INTO federated.t1 (name, other) VALUES ('Sixth Name', 66666);
188 INSERT INTO federated.t1 (name, other) VALUES ('Seventh Name', 77777);
189 INSERT INTO federated.t1 (name, other) VALUES ('Eigth Name', 88888);
190 INSERT INTO federated.t1 (name, other) VALUES ('Ninth Name', 99999);
191 INSERT INTO federated.t1 (name, other) VALUES ('Tenth Name', 101010);
192 SELECT * FROM federated.t1;
193 id name other created
194 1 First Name 11111 2004-04-04 04:04:04
195 10 Tenth Name 101010 2004-04-04 04:04:04
196 2 Second Name 22222 2004-04-04 04:04:04
197 3 Third Name 33333 2004-04-04 04:04:04
198 4 Fourth Name 44444 2004-04-04 04:04:04
199 5 Fifth Name 55555 2004-04-04 04:04:04
200 6 Sixth Name 66666 2004-04-04 04:04:04
201 7 Seventh Name 77777 2004-04-04 04:04:04
202 8 Eigth Name 88888 2004-04-04 04:04:04
203 9 Ninth Name 99999 2004-04-04 04:04:04
204 SELECT * FROM federated.t1 WHERE id = 5;
205 id name other created
206 5 Fifth Name 55555 2004-04-04 04:04:04
207 SELECT * FROM federated.t1 WHERE name = 'Sixth Name';
208 id name other created
209 6 Sixth Name 66666 2004-04-04 04:04:04
210 SELECT * FROM federated.t1 WHERE id = 6 and name = 'Sixth Name';
211 id name other created
212 6 Sixth Name 66666 2004-04-04 04:04:04
213 SELECT * FROM federated.t1 WHERE name = 'Sixth Name' AND other = 44444;
214 id name other created
215 SELECT * FROM federated.t1 WHERE name like '%th%';
216 id name other created
217 10 Tenth Name 101010 2004-04-04 04:04:04
218 3 Third Name 33333 2004-04-04 04:04:04
219 4 Fourth Name 44444 2004-04-04 04:04:04
220 5 Fifth Name 55555 2004-04-04 04:04:04
221 6 Sixth Name 66666 2004-04-04 04:04:04
222 7 Seventh Name 77777 2004-04-04 04:04:04
223 8 Eigth Name 88888 2004-04-04 04:04:04
224 9 Ninth Name 99999 2004-04-04 04:04:04
225 UPDATE federated.t1 SET name = '3rd name' WHERE id = 3;
226 SELECT * FROM federated.t1 WHERE name = '3rd name';
227 id name other created
228 3 3rd name 33333 2004-04-04 04:04:04
229 UPDATE federated.t1 SET name = 'Third name' WHERE name = '3rd name';
230 SELECT * FROM federated.t1 WHERE name = 'Third name';
231 id name other created
232 3 Third name 33333 2004-04-04 04:04:04
233 SELECT * FROM federated.t1 ORDER BY id DESC;
234 id name other created
235 10 Tenth Name 101010 2004-04-04 04:04:04
236 9 Ninth Name 99999 2004-04-04 04:04:04
237 8 Eigth Name 88888 2004-04-04 04:04:04
238 7 Seventh Name 77777 2004-04-04 04:04:04
239 6 Sixth Name 66666 2004-04-04 04:04:04
240 5 Fifth Name 55555 2004-04-04 04:04:04
241 4 Fourth Name 44444 2004-04-04 04:04:04
242 3 Third name 33333 2004-04-04 04:04:04
243 2 Second Name 22222 2004-04-04 04:04:04
244 1 First Name 11111 2004-04-04 04:04:04
245 SELECT * FROM federated.t1 ORDER BY name;
246 id name other created
247 8 Eigth Name 88888 2004-04-04 04:04:04
248 5 Fifth Name 55555 2004-04-04 04:04:04
249 1 First Name 11111 2004-04-04 04:04:04
250 4 Fourth Name 44444 2004-04-04 04:04:04
251 9 Ninth Name 99999 2004-04-04 04:04:04
252 2 Second Name 22222 2004-04-04 04:04:04
253 7 Seventh Name 77777 2004-04-04 04:04:04
254 6 Sixth Name 66666 2004-04-04 04:04:04
255 10 Tenth Name 101010 2004-04-04 04:04:04
256 3 Third name 33333 2004-04-04 04:04:04
257 SELECT * FROM federated.t1 ORDER BY name DESC;
258 id name other created
259 3 Third name 33333 2004-04-04 04:04:04
260 10 Tenth Name 101010 2004-04-04 04:04:04
261 6 Sixth Name 66666 2004-04-04 04:04:04
262 7 Seventh Name 77777 2004-04-04 04:04:04
263 2 Second Name 22222 2004-04-04 04:04:04
264 9 Ninth Name 99999 2004-04-04 04:04:04
265 4 Fourth Name 44444 2004-04-04 04:04:04
266 1 First Name 11111 2004-04-04 04:04:04
267 5 Fifth Name 55555 2004-04-04 04:04:04
268 8 Eigth Name 88888 2004-04-04 04:04:04
269 SELECT * FROM federated.t1 ORDER BY name ASC;
270 id name other created
271 8 Eigth Name 88888 2004-04-04 04:04:04
272 5 Fifth Name 55555 2004-04-04 04:04:04
273 1 First Name 11111 2004-04-04 04:04:04
274 4 Fourth Name 44444 2004-04-04 04:04:04
275 9 Ninth Name 99999 2004-04-04 04:04:04
276 2 Second Name 22222 2004-04-04 04:04:04
277 7 Seventh Name 77777 2004-04-04 04:04:04
278 6 Sixth Name 66666 2004-04-04 04:04:04
279 10 Tenth Name 101010 2004-04-04 04:04:04
280 3 Third name 33333 2004-04-04 04:04:04
281 SELECT * FROM federated.t1 GROUP BY other;
282 id name other created
283 1 First Name 11111 2004-04-04 04:04:04
284 2 Second Name 22222 2004-04-04 04:04:04
285 3 Third name 33333 2004-04-04 04:04:04
286 4 Fourth Name 44444 2004-04-04 04:04:04
287 5 Fifth Name 55555 2004-04-04 04:04:04
288 6 Sixth Name 66666 2004-04-04 04:04:04
289 7 Seventh Name 77777 2004-04-04 04:04:04
290 8 Eigth Name 88888 2004-04-04 04:04:04
291 9 Ninth Name 99999 2004-04-04 04:04:04
292 10 Tenth Name 101010 2004-04-04 04:04:04
293 DELETE FROM federated.t1 WHERE id = 5;
294 SELECT * FROM federated.t1 WHERE id = 5;
295 id name other created
296 DELETE FROM federated.t1;
297 SELECT * FROM federated.t1 WHERE id = 5;
298 id name other created
299 connection slave;
300 DROP TABLE IF EXISTS federated.t1;
301 CREATE TABLE federated.t1 (
302 `id` int(20) NOT NULL auto_increment,
303 `name` varchar(32) NOT NULL default '',
304 `other` int(20) NOT NULL default '0',
305 `created` datetime NOT NULL,
306 PRIMARY KEY (`id`),
307 key name(`name`),
308 key other(`other`),
309 key created(`created`))
310 DEFAULT CHARSET=latin1;
311 connection master;
312 DROP TABLE IF EXISTS federated.t1;
313 CREATE TABLE federated.t1 (
314 `id` int(20) NOT NULL auto_increment,
315 `name` varchar(32) NOT NULL default '',
316 `other` int(20) NOT NULL default '0',
317 `created` datetime NOT NULL,
318 PRIMARY KEY (`id`),
319 key name(`name`),
320 key other(`other`),
321 key created(`created`))
322 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
323 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
324 INSERT INTO federated.t1 (name, other, created)
325 VALUES ('First Name', 11111, '2004-01-01 01:01:01');
326 INSERT INTO federated.t1 (name, other, created)
327 VALUES ('Second Name', 22222, '2004-01-23 02:43:00');
328 INSERT INTO federated.t1 (name, other, created)
329 VALUES ('Third Name', 33333, '2004-02-14 02:14:00');
330 INSERT INTO federated.t1 (name, other, created)
331 VALUES ('Fourth Name', 44444, '2003-04-05 00:00:00');
332 INSERT INTO federated.t1 (name, other, created)
333 VALUES ('Fifth Name', 55555, '2001-02-02 02:02:02');
334 INSERT INTO federated.t1 (name, other, created)
335 VALUES ('Sixth Name', 66666, '2005-06-06 15:30:00');
336 INSERT INTO federated.t1 (name, other, created)
337 VALUES ('Seventh Name', 77777, '2003-12-12 18:32:00');
338 INSERT INTO federated.t1 (name, other, created)
339 VALUES ('Eigth Name', 88888, '2005-03-12 11:00:00');
340 INSERT INTO federated.t1 (name, other, created)
341 VALUES ('Ninth Name', 99999, '2005-03-12 11:00:01');
342 INSERT INTO federated.t1 (name, other, created)
343 VALUES ('Tenth Name', 101010, '2005-03-12 12:00:01');
344 SELECT * FROM federated.t1;
345 id name other created
346 1 First Name 11111 2004-01-01 01:01:01
347 10 Tenth Name 101010 2005-03-12 12:00:01
348 2 Second Name 22222 2004-01-23 02:43:00
349 3 Third Name 33333 2004-02-14 02:14:00
350 4 Fourth Name 44444 2003-04-05 00:00:00
351 5 Fifth Name 55555 2001-02-02 02:02:02
352 6 Sixth Name 66666 2005-06-06 15:30:00
353 7 Seventh Name 77777 2003-12-12 18:32:00
354 8 Eigth Name 88888 2005-03-12 11:00:00
355 9 Ninth Name 99999 2005-03-12 11:00:01
356 SELECT * FROM federated.t1 WHERE id = 5;
357 id name other created
358 5 Fifth Name 55555 2001-02-02 02:02:02
359 SELECT * FROM federated.t1 WHERE id = 6 and name = 'Sixth Name';
360 id name other created
361 6 Sixth Name 66666 2005-06-06 15:30:00
362 SELECT * FROM federated.t1 WHERE other = 44444;
363 id name other created
364 4 Fourth Name 44444 2003-04-05 00:00:00
365 SELECT * FROM federated.t1 WHERE name like '%th%';
366 id name other created
367 10 Tenth Name 101010 2005-03-12 12:00:01
368 3 Third Name 33333 2004-02-14 02:14:00
369 4 Fourth Name 44444 2003-04-05 00:00:00
370 5 Fifth Name 55555 2001-02-02 02:02:02
371 6 Sixth Name 66666 2005-06-06 15:30:00
372 7 Seventh Name 77777 2003-12-12 18:32:00
373 8 Eigth Name 88888 2005-03-12 11:00:00
374 9 Ninth Name 99999 2005-03-12 11:00:01
375 UPDATE federated.t1 SET name = '3rd name' WHERE id = 3;
376 SELECT * FROM federated.t1 WHERE name = '3rd name';
377 id name other created
378 3 3rd name 33333 2004-02-14 02:14:00
379 UPDATE federated.t1 SET name = 'Third name' WHERE name = '3rd name';
380 SELECT * FROM federated.t1 WHERE name = 'Third name';
381 id name other created
382 3 Third name 33333 2004-02-14 02:14:00
383 SELECT * FROM federated.t1 ORDER BY id DESC;
384 id name other created
385 10 Tenth Name 101010 2005-03-12 12:00:01
386 9 Ninth Name 99999 2005-03-12 11:00:01
387 8 Eigth Name 88888 2005-03-12 11:00:00
388 7 Seventh Name 77777 2003-12-12 18:32:00
389 6 Sixth Name 66666 2005-06-06 15:30:00
390 5 Fifth Name 55555 2001-02-02 02:02:02
391 4 Fourth Name 44444 2003-04-05 00:00:00
392 3 Third name 33333 2004-02-14 02:14:00
393 2 Second Name 22222 2004-01-23 02:43:00
394 1 First Name 11111 2004-01-01 01:01:01
395 SELECT * FROM federated.t1 ORDER BY name;
396 id name other created
397 8 Eigth Name 88888 2005-03-12 11:00:00
398 5 Fifth Name 55555 2001-02-02 02:02:02
399 1 First Name 11111 2004-01-01 01:01:01
400 4 Fourth Name 44444 2003-04-05 00:00:00
401 9 Ninth Name 99999 2005-03-12 11:00:01
402 2 Second Name 22222 2004-01-23 02:43:00
403 7 Seventh Name 77777 2003-12-12 18:32:00
404 6 Sixth Name 66666 2005-06-06 15:30:00
405 10 Tenth Name 101010 2005-03-12 12:00:01
406 3 Third name 33333 2004-02-14 02:14:00
407 SELECT * FROM federated.t1 ORDER BY name DESC;
408 id name other created
409 3 Third name 33333 2004-02-14 02:14:00
410 10 Tenth Name 101010 2005-03-12 12:00:01
411 6 Sixth Name 66666 2005-06-06 15:30:00
412 7 Seventh Name 77777 2003-12-12 18:32:00
413 2 Second Name 22222 2004-01-23 02:43:00
414 9 Ninth Name 99999 2005-03-12 11:00:01
415 4 Fourth Name 44444 2003-04-05 00:00:00
416 1 First Name 11111 2004-01-01 01:01:01
417 5 Fifth Name 55555 2001-02-02 02:02:02
418 8 Eigth Name 88888 2005-03-12 11:00:00
419 SELECT * FROM federated.t1 ORDER BY name ASC;
420 id name other created
421 8 Eigth Name 88888 2005-03-12 11:00:00
422 5 Fifth Name 55555 2001-02-02 02:02:02
423 1 First Name 11111 2004-01-01 01:01:01
424 4 Fourth Name 44444 2003-04-05 00:00:00
425 9 Ninth Name 99999 2005-03-12 11:00:01
426 2 Second Name 22222 2004-01-23 02:43:00
427 7 Seventh Name 77777 2003-12-12 18:32:00
428 6 Sixth Name 66666 2005-06-06 15:30:00
429 10 Tenth Name 101010 2005-03-12 12:00:01
430 3 Third name 33333 2004-02-14 02:14:00
431 SELECT * FROM federated.t1 GROUP BY other;
432 id name other created
433 1 First Name 11111 2004-01-01 01:01:01
434 2 Second Name 22222 2004-01-23 02:43:00
435 3 Third name 33333 2004-02-14 02:14:00
436 4 Fourth Name 44444 2003-04-05 00:00:00
437 5 Fifth Name 55555 2001-02-02 02:02:02
438 6 Sixth Name 66666 2005-06-06 15:30:00
439 7 Seventh Name 77777 2003-12-12 18:32:00
440 8 Eigth Name 88888 2005-03-12 11:00:00
441 9 Ninth Name 99999 2005-03-12 11:00:01
442 10 Tenth Name 101010 2005-03-12 12:00:01
443 DELETE FROM federated.t1 WHERE id = 5;
444 SELECT * FROM federated.t1 WHERE id = 5;
445 id name other created
446 DELETE FROM federated.t1;
447 SELECT * FROM federated.t1 WHERE id = 5;
448 id name other created
449 connection slave;
450 DROP TABLE IF EXISTS federated.t1;
451 CREATE TABLE federated.t1 (
452 `id` int(20) NOT NULL auto_increment,
453 `name` varchar(32),
454 `other` varchar(20),
455 PRIMARY KEY (`id`) );
456 connection master;
457 DROP TABLE IF EXISTS federated.t1;
458 CREATE TABLE federated.t1 (
459 `id` int(20) NOT NULL auto_increment,
460 `name` varchar(32),
461 `other` varchar(20),
462 PRIMARY KEY (`id`) )
463 ENGINE="FEDERATED"
464 DEFAULT CHARSET=latin1
465 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
466 INSERT INTO federated.t1 (name, other) VALUES ('First Name', 11111);
467 INSERT INTO federated.t1 (name, other) VALUES ('Second Name', NULL);
468 INSERT INTO federated.t1 (name, other) VALUES ('Third Name', 33333);
469 INSERT INTO federated.t1 (name, other) VALUES (NULL, NULL);
470 INSERT INTO federated.t1 (name, other) VALUES ('Fifth Name', 55555);
471 INSERT INTO federated.t1 (name, other) VALUES ('Sixth Name', 66666);
472 INSERT INTO federated.t1 (name) VALUES ('Seventh Name');
473 INSERT INTO federated.t1 (name, other) VALUES ('Eigth Name', 88888);
474 INSERT INTO federated.t1 (name, other) VALUES ('Ninth Name', 99999);
475 INSERT INTO federated.t1 (other) VALUES ('fee fie foe fum');
476 SELECT * FROM federated.t1 WHERE other IS NULL;
477 id name other
478 2 Second Name NULL
479 4 NULL NULL
480 7 Seventh Name NULL
481 SELECT * FROM federated.t1 WHERE name IS NULL;
482 id name other
483 10 NULL fee fie foe fum
484 4 NULL NULL
485 SELECT * FROM federated.t1 WHERE name IS NULL and other IS NULL;
486 id name other
487 4 NULL NULL
488 SELECT * FROM federated.t1 WHERE name IS NULL or other IS NULL;
489 id name other
490 10 NULL fee fie foe fum
491 2 Second Name NULL
492 4 NULL NULL
493 7 Seventh Name NULL
494 UPDATE federated.t1
495 SET name = 'Fourth Name', other = 'four four four'
496 WHERE name IS NULL AND other IS NULL;
497 UPDATE federated.t1 SET other = 'two two two two' WHERE name = 'Second Name';
498 UPDATE federated.t1 SET other = 'seven seven' WHERE name like 'Sev%';
499 UPDATE federated.t1 SET name = 'Tenth Name' WHERE other like 'fee fie%';
500 SELECT * FROM federated.t1 WHERE name IS NULL OR other IS NULL ;
501 id name other
502 SELECT * FROM federated.t1;
503 id name other
504 1 First Name 11111
505 10 Tenth Name fee fie foe fum
506 2 Second Name two two two two
507 3 Third Name 33333
508 4 Fourth Name four four four
509 5 Fifth Name 55555
510 6 Sixth Name 66666
511 7 Seventh Name seven seven
512 8 Eigth Name 88888
513 9 Ninth Name 99999
514 connection slave;
515 DROP TABLE IF EXISTS federated.t1;
516 CREATE TABLE federated.t1 (
517 `id` int(20) NOT NULL auto_increment,
518 `name` varchar(32) NOT NULL DEFAULT '',
519 `other` varchar(20) NOT NULL DEFAULT '',
520 PRIMARY KEY (`id`),
521 KEY nameoth (name, other) );
522 connection master;
523 DROP TABLE IF EXISTS federated.t1;
524 CREATE TABLE federated.t1 (
525 `id` int(20) NOT NULL auto_increment,
526 `name` varchar(32) NOT NULL DEFAULT '',
527 `other` varchar(20) NOT NULL DEFAULT '',
528 PRIMARY KEY (`id`),
529 KEY nameoth (name, other))
530 ENGINE="FEDERATED" DEFAULT
531 CHARSET=latin1
532 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
533 INSERT INTO federated.t1 (name, other) VALUES ('First Name', '1111');
534 INSERT INTO federated.t1 (name, other) VALUES ('Second Name', '2222');
535 INSERT INTO federated.t1 (name, other) VALUES ('Third Name', '3333');
536 SELECT * FROM federated.t1 WHERE name = 'Second Name';
537 id name other
538 2 Second Name 2222
539 SELECT * FROM federated.t1 WHERE other = '2222';
540 id name other
541 2 Second Name 2222
542 SELECT * FROM federated.t1 WHERE name = 'Third Name';
543 id name other
544 3 Third Name 3333
545 SELECT * FROM federated.t1 WHERE name = 'Third Name' AND other = '3333';
546 id name other
547 3 Third Name 3333
548 connection slave;
549 DROP TABLE IF EXISTS federated.t1;
550 CREATE TABLE federated.t1 (
551 `id` int NOT NULL auto_increment,
552 `name` char(32) NOT NULL DEFAULT '',
553 `bincol` binary(1) NOT NULL,
554 `floatval` decimal(5,2) NOT NULL DEFAULT 0.0,
555 `other` int NOT NULL DEFAULT 0,
556 PRIMARY KEY (id),
557 KEY nameoth(name, other),
558 KEY bincol(bincol),
559 KEY floatval(floatval));
560 connection master;
561 DROP TABLE IF EXISTS federated.t1;
562 CREATE TABLE federated.t1 (
563 `id` int NOT NULL auto_increment,
564 `name` char(32) NOT NULL DEFAULT '',
565 `bincol` binary(1) NOT NULL,
566 `floatval` decimal(5,2) NOT NULL DEFAULT 0.0,
567 `other` int NOT NULL DEFAULT 0,
568 PRIMARY KEY (id),
569 KEY nameoth(name,other),
570 KEY bincol(bincol),
571 KEY floatval(floatval))
572 ENGINE="FEDERATED"
573 DEFAULT CHARSET=latin1
574 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
575 INSERT INTO federated.t1 (name, bincol, floatval, other)
576 VALUES ('first', 0x65, 11.11, 1111);
577 INSERT INTO federated.t1 (name, bincol, floatval, other)
578 VALUES ('second', 0x66, 22.22, 2222);
579 INSERT INTO federated.t1 (name, bincol, floatval, other)
580 VALUES ('third', 'g', 22.22, 2222);
581 SELECT * FROM federated.t1;
582 id name bincol floatval other
583 1 first e 11.11 1111
584 2 second f 22.22 2222
585 3 third g 22.22 2222
586 SELECT * FROM federated.t1 WHERE name = 'second';
587 id name bincol floatval other
588 2 second f 22.22 2222
589 SELECT * FROM federated.t1 WHERE bincol= 'f';
590 id name bincol floatval other
591 2 second f 22.22 2222
592 SELECT * FROM federated.t1 WHERE bincol= 0x66;
593 id name bincol floatval other
594 2 second f 22.22 2222
595 SELECT * FROM federated.t1 WHERE bincol= 0x67;
596 id name bincol floatval other
597 3 third g 22.22 2222
598 SELECT * FROM federated.t1 WHERE bincol= 'g';
599 id name bincol floatval other
600 3 third g 22.22 2222
601 SELECT * FROM federated.t1 WHERE floatval=11.11;
602 id name bincol floatval other
603 1 first e 11.11 1111
604 SELECT * FROM federated.t1 WHERE name='third';
605 id name bincol floatval other
606 3 third g 22.22 2222
607 SELECT * FROM federated.t1 WHERE other=2222;
608 id name bincol floatval other
609 2 second f 22.22 2222
610 3 third g 22.22 2222
611 SELECT * FROM federated.t1 WHERE name='third' and other=2222;
612 id name bincol floatval other
613 3 third g 22.22 2222
614 connection slave;
615 DROP TABLE IF EXISTS federated.t1;
616 CREATE TABLE federated.t1 (
617 `id` int NOT NULL auto_increment,
618 `col1` int(10) NOT NULL DEFAULT 0,
619 `col2` varchar(64) NOT NULL DEFAULT '',
620 `col3` int(20) NOT NULL,
621 `col4` int(40) NOT NULL,
622 primary key (`id`, `col1`, `col2`, `col3`, `col4`),
623 key col1(col1),
624 key col2(col2),
625 key col3(col3),
626 key col4(col4));
627 connection master;
628 DROP TABLE IF EXISTS federated.t1;
629 CREATE TABLE federated.t1 (
630 `id` int NOT NULL auto_increment,
631 `col1` int(10) NOT NULL DEFAULT 0,
632 `col2` varchar(64) NOT NULL DEFAULT '',
633 `col3` int(20) NOT NULL,
634 `col4` int(40) NOT NULL,
635 primary key (`id`, `col1`, `col2`, `col3`, `col4`),
636 key col1(col1),
637 key col2(col2),
638 key col3(col3),
639 key col4(col4))
640 ENGINE="FEDERATED"
641 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
642 INSERT INTO federated.t1 (col1, col2, col3, col4)
643 VALUES (1, 'one One', 11, 1111);
644 INSERT INTO federated.t1 (col1, col2, col3, col4)
645 VALUES (2, 'Two two', 22, 2222);
646 INSERT INTO federated.t1 (col1, col2, col3, col4)
647 VALUES (3, 'three Three', 33, 33333);
648 INSERT INTO federated.t1 (col1, col2, col3, col4)
649 VALUES (4, 'fourfourfour', 444, 4444444);
650 INSERT INTO federated.t1 (col1, col2, col3, col4)
651 VALUES (5, 'five 5 five five 5', 5, 55555);
652 INSERT INTO federated.t1 (col1, col2, col3, col4)
653 VALUES (6, 'six six Sixsix', 6666, 6);
654 INSERT INTO federated.t1 (col1, col2, col3, col4)
655 VALUES (7, 'seven Sevenseven', 77777, 7777);
656 INSERT INTO federated.t1 (col1, col2, col3, col4)
657 VALUES (8, 'eight eight eight', 88888, 88);
658 INSERT INTO federated.t1 (col1, col2, col3, col4)
659 VALUES (9, 'nine Nine', 999999, 999999);
660 INSERT INTO federated.t1 (col1, col2, col3, col4)
661 VALUES (10, 'Tenth ten TEN', 1010101, 1010);
662 SELECT * FROM federated.t1 WHERE col2 = 'two two';
663 id col1 col2 col3 col4
664 2 2 Two two 22 2222
665 SELECT * FROM federated.t1 WHERE col2 = 'two Two';
666 id col1 col2 col3 col4
667 2 2 Two two 22 2222
668 SELECT * FROM federated.t1 WHERE id = 3;
669 id col1 col2 col3 col4
670 3 3 three Three 33 33333
671 SELECT * FROM federated.t1 WHERE id = 3 AND col1 = 3;
672 id col1 col2 col3 col4
673 3 3 three Three 33 33333
674 SELECT * FROM federated.t1 WHERE id = 4 AND col1 = 4 AND col2 = 'Two two';
675 id col1 col2 col3 col4
676 SELECT * FROM federated.t1 WHERE id = 4 AND col1 = 4 AND col2 = 'fourfourfour';
677 id col1 col2 col3 col4
678 4 4 fourfourfour 444 4444444
679 SELECT * FROM federated.t1 WHERE id = 5 AND col2 = 'five 5 five five 5'
680 AND col3 = 5;
681 id col1 col2 col3 col4
682 5 5 five 5 five five 5 5 55555
683 SELECT * FROM federated.t1 WHERE id = 5 AND col2 = 'five 5 five five 5'
684 AND col3 = 5
685 AND col4 = 55555;
686 id col1 col2 col3 col4
687 5 5 five 5 five five 5 5 55555
688 SELECT * FROM federated.t1 WHERE id = 5
689 AND col2 = 'Two two' AND col3 = 22
690 AND col4 = 33;
691 id col1 col2 col3 col4
692 SELECT * FROM federated.t1 WHERE id = 5
693 AND col2 = 'five 5 five five 5' AND col3 = 5
694 AND col4 = 55555;
695 id col1 col2 col3 col4
696 5 5 five 5 five five 5 5 55555
697 SELECT * FROM federated.t1 WHERE (id = 5 AND col2 = 'five 5 five five 5')
698 OR (col2 = 'three Three' AND col3 = 33);
699 id col1 col2 col3 col4
700 3 3 three Three 33 33333
701 5 5 five 5 five five 5 5 55555
702 SELECT * FROM federated.t1 WHERE (id = 5 AND col2 = 'Two two')
703 OR (col2 = 444 AND col3 = 4444444);
704 id col1 col2 col3 col4
705 SELECT * FROM federated.t1 WHERE id = 1
706 OR col1 = 10
707 OR col2 = 'Two two'
708 OR col3 = 33
709 OR col4 = 4444444;
710 id col1 col2 col3 col4
711 1 1 one One 11 1111
712 10 10 Tenth ten TEN 1010101 1010
713 2 2 Two two 22 2222
714 3 3 three Three 33 33333
715 4 4 fourfourfour 444 4444444
716 SELECT * FROM federated.t1 WHERE id > 5;
717 id col1 col2 col3 col4
718 10 10 Tenth ten TEN 1010101 1010
719 6 6 six six Sixsix 6666 6
720 7 7 seven Sevenseven 77777 7777
721 8 8 eight eight eight 88888 88
722 9 9 nine Nine 999999 999999
723 SELECT * FROM federated.t1 WHERE id >= 5;
724 id col1 col2 col3 col4
725 10 10 Tenth ten TEN 1010101 1010
726 5 5 five 5 five five 5 5 55555
727 6 6 six six Sixsix 6666 6
728 7 7 seven Sevenseven 77777 7777
729 8 8 eight eight eight 88888 88
730 9 9 nine Nine 999999 999999
731 SELECT * FROM federated.t1 WHERE id < 5;
732 id col1 col2 col3 col4
733 1 1 one One 11 1111
734 2 2 Two two 22 2222
735 3 3 three Three 33 33333
736 4 4 fourfourfour 444 4444444
737 SELECT * FROM federated.t1 WHERE id <= 5;
738 id col1 col2 col3 col4
739 1 1 one One 11 1111
740 2 2 Two two 22 2222
741 3 3 three Three 33 33333
742 4 4 fourfourfour 444 4444444
743 5 5 five 5 five five 5 5 55555
744 SELECT * FROM federated.t1 WHERE id != 5;
745 id col1 col2 col3 col4
746 1 1 one One 11 1111
747 10 10 Tenth ten TEN 1010101 1010
748 2 2 Two two 22 2222
749 3 3 three Three 33 33333
750 4 4 fourfourfour 444 4444444
751 6 6 six six Sixsix 6666 6
752 7 7 seven Sevenseven 77777 7777
753 8 8 eight eight eight 88888 88
754 9 9 nine Nine 999999 999999
755 SELECT * FROM federated.t1 WHERE id > 3 AND id < 7;
756 id col1 col2 col3 col4
757 4 4 fourfourfour 444 4444444
758 5 5 five 5 five five 5 5 55555
759 6 6 six six Sixsix 6666 6
760 SELECT * FROM federated.t1 WHERE id > 3 AND id <= 7;
761 id col1 col2 col3 col4
762 4 4 fourfourfour 444 4444444
763 5 5 five 5 five five 5 5 55555
764 6 6 six six Sixsix 6666 6
765 7 7 seven Sevenseven 77777 7777
766 SELECT * FROM federated.t1 WHERE id >= 3 AND id <= 7;
767 id col1 col2 col3 col4
768 3 3 three Three 33 33333
769 4 4 fourfourfour 444 4444444
770 5 5 five 5 five five 5 5 55555
771 6 6 six six Sixsix 6666 6
772 7 7 seven Sevenseven 77777 7777
773 SELECT * FROM federated.t1 WHERE id < 3 AND id <= 7;
774 id col1 col2 col3 col4
775 1 1 one One 11 1111
776 2 2 Two two 22 2222
777 SELECT * FROM federated.t1 WHERE id < 3 AND id > 7;
778 id col1 col2 col3 col4
779 SELECT * FROM federated.t1 WHERE id < 3 OR id > 7;
780 id col1 col2 col3 col4
781 1 1 one One 11 1111
782 10 10 Tenth ten TEN 1010101 1010
783 2 2 Two two 22 2222
784 8 8 eight eight eight 88888 88
785 9 9 nine Nine 999999 999999
786 SELECT * FROM federated.t1 WHERE col2 = 'three Three';
787 id col1 col2 col3 col4
788 3 3 three Three 33 33333
789 SELECT * FROM federated.t1 WHERE col2 > 'one';
790 id col1 col2 col3 col4
791 1 1 one One 11 1111
792 10 10 Tenth ten TEN 1010101 1010
793 2 2 Two two 22 2222
794 3 3 three Three 33 33333
795 6 6 six six Sixsix 6666 6
796 7 7 seven Sevenseven 77777 7777
797 SELECT * FROM federated.t1 WHERE col2 LIKE 's%';
798 id col1 col2 col3 col4
799 6 6 six six Sixsix 6666 6
800 7 7 seven Sevenseven 77777 7777
801 SELECT * FROM federated.t1 WHERE col2 LIKE 'si%';
802 id col1 col2 col3 col4
803 6 6 six six Sixsix 6666 6
804 SELECT * FROM federated.t1 WHERE col2 LIKE 'se%';
805 id col1 col2 col3 col4
806 7 7 seven Sevenseven 77777 7777
807 SELECT * FROM federated.t1 WHERE col2 NOT LIKE 'e%';
808 id col1 col2 col3 col4
809 1 1 one One 11 1111
810 10 10 Tenth ten TEN 1010101 1010
811 2 2 Two two 22 2222
812 3 3 three Three 33 33333
813 4 4 fourfourfour 444 4444444
814 5 5 five 5 five five 5 5 55555
815 6 6 six six Sixsix 6666 6
816 7 7 seven Sevenseven 77777 7777
817 9 9 nine Nine 999999 999999
818 SELECT * FROM federated.t1 WHERE col2 <> 'one One';
819 id col1 col2 col3 col4
820 10 10 Tenth ten TEN 1010101 1010
821 2 2 Two two 22 2222
822 3 3 three Three 33 33333
823 4 4 fourfourfour 444 4444444
824 5 5 five 5 five five 5 5 55555
825 6 6 six six Sixsix 6666 6
826 7 7 seven Sevenseven 77777 7777
827 8 8 eight eight eight 88888 88
828 9 9 nine Nine 999999 999999
829 connection slave;
830 DROP TABLE IF EXISTS federated.t1;
831 CREATE TABLE federated.t1 (
832 `col1` varchar(8) NOT NULL DEFAULT '',
833 `col2` varchar(128) NOT NULL DEFAULT '',
834 `col3` varchar(20) NOT NULL DEFAULT '',
835 `col4` varchar(40) NOT NULL DEFAULT '',
836 primary key (`col1`, `col2`, `col3`, `col4`),
837 key 3key(`col2`,`col3`,`col4`),
838 key 2key (`col3`,`col4`),
839 key col4(col4));
840 connection master;
841 DROP TABLE IF EXISTS federated.t1;
842 CREATE TABLE federated.t1 (
843 `col1` varchar(8) NOT NULL DEFAULT '',
844 `col2` varchar(128) NOT NULL DEFAULT '',
845 `col3` varchar(20) NOT NULL DEFAULT '',
846 `col4` varchar(40) NOT NULL DEFAULT '',
847 primary key (`col1`, `col2`, `col3`, `col4`),
848 key 3key(`col2`,`col3`,`col4`),
849 key 2key (`col3`,`col4`),
850 key col4(col4))
851 ENGINE="FEDERATED"
852 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
853 INSERT INTO federated.t1 (col1, col2, col3, col4)
854 VALUES ('aaaa', 'aaaaaaaaaaaaaaaaaaa', 'ababababab', 'acacacacacacacac');
855 INSERT INTO federated.t1 (col1, col2, col3, col4)
856 VALUES ('bbbb', 'bbbbbbbbbbbbbbbbbbb', 'bababababa', 'bcbcbcbcbcbcbcbc');
857 INSERT INTO federated.t1 (col1, col2, col3, col4)
858 VALUES ('cccc', 'ccccccccccccccccccc', 'cacacacaca', 'cbcbcbcbcbcbcbcb');
859 INSERT INTO federated.t1 (col1, col2, col3, col4)
860 VALUES ('dddd', 'ddddddddddddddddddd', 'dadadadada', 'dcdcdcdcdcdcdcdc');
861 INSERT INTO federated.t1 (col1, col2, col3, col4)
862 VALUES ('eeee', 'eeeeeeeeeeeeeeeeeee', 'eaeaeaeaea', 'ecececececececec');
863 INSERT INTO federated.t1 (col1, col2, col3, col4)
864 VALUES ('ffff', 'fffffffffffffffffff', 'fafafafafa', 'fcfcfcfcfcfcfcfc');
865 INSERT INTO federated.t1 (col1, col2, col3, col4)
866 VALUES ('gggg', 'ggggggggggggggggggg', 'gagagagaga', 'gcgcgcgcgcgcgcgc');
867 INSERT INTO federated.t1 (col1, col2, col3, col4)
868 VALUES ('hhhh', 'hhhhhhhhhhhhhhhhhhh', 'hahahahaha', 'hchchchchchchchc');
869 SELECT * FROM federated.t1 WHERE col1 = 'cccc';
870 col1 col2 col3 col4
871 cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
872 SELECT * FROM federated.t1 WHERE col2 = 'eeeeeeeeeeeeeeeeeee';
873 col1 col2 col3 col4
874 eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
875 SELECT * FROM federated.t1 WHERE col3 = 'bababababa';
876 col1 col2 col3 col4
877 bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
878 SELECT * FROM federated.t1 WHERE col1 = 'gggg' AND col2 = 'ggggggggggggggggggg';
879 col1 col2 col3 col4
880 gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
881 SELECT * FROM federated.t1 WHERE col1 = 'gggg' AND col3 = 'gagagagaga';
882 col1 col2 col3 col4
883 gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
884 SELECT * FROM federated.t1 WHERE col1 = 'ffff' AND col4 = 'fcfcfcfcfcfcfcfc';
885 col1 col2 col3 col4
886 ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
887 SELECT * FROM federated.t1 WHERE col1 > 'bbbb';
888 col1 col2 col3 col4
889 cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
890 dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
891 eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
892 ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
893 gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
894 hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
895 SELECT * FROM federated.t1 WHERE col1 >= 'bbbb';
896 col1 col2 col3 col4
897 bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
898 cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
899 dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
900 eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
901 ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
902 gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
903 hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
904 SELECT * FROM federated.t1 WHERE col1 < 'bbbb';
905 col1 col2 col3 col4
906 aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
907 SELECT * FROM federated.t1 WHERE col1 <= 'bbbb';
908 col1 col2 col3 col4
909 aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
910 bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
911 SELECT * FROM federated.t1 WHERE col1 <> 'bbbb';
912 col1 col2 col3 col4
913 aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
914 cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
915 dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
916 eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
917 ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
918 gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
919 hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
920 SELECT * FROM federated.t1 WHERE col1 LIKE 'b%';
921 col1 col2 col3 col4
922 bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
923 SELECT * FROM federated.t1 WHERE col4 LIKE '%b%';
924 col1 col2 col3 col4
925 bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
926 cccc ccccccccccccccccccc cacacacaca cbcbcbcbcbcbcbcb
927 SELECT * FROM federated.t1 WHERE col1 NOT LIKE 'c%';
928 col1 col2 col3 col4
929 aaaa aaaaaaaaaaaaaaaaaaa ababababab acacacacacacacac
930 bbbb bbbbbbbbbbbbbbbbbbb bababababa bcbcbcbcbcbcbcbc
931 dddd ddddddddddddddddddd dadadadada dcdcdcdcdcdcdcdc
932 eeee eeeeeeeeeeeeeeeeeee eaeaeaeaea ecececececececec
933 ffff fffffffffffffffffff fafafafafa fcfcfcfcfcfcfcfc
934 gggg ggggggggggggggggggg gagagagaga gcgcgcgcgcgcgcgc
935 hhhh hhhhhhhhhhhhhhhhhhh hahahahaha hchchchchchchchc
936 SELECT * FROM federated.t1 WHERE col4 NOT LIKE '%c%';
937 col1 col2 col3 col4
938 connection slave;
939 DROP TABLE IF EXISTS federated.t1;
940 CREATE TABLE federated.t1 (
941 `col1` varchar(8) NOT NULL DEFAULT '',
942 `col2` int(8) NOT NULL DEFAULT 0,
943 `col3` varchar(8) NOT NULL DEFAULT '',
944 primary key (`col1`, `col2`, `col3`));
945 connection master;
946 DROP TABLE IF EXISTS federated.t1;
947 CREATE TABLE federated.t1 (
948 `col1` varchar(8) NOT NULL DEFAULT '',
949 `col2` varchar(8) NOT NULL DEFAULT '',
950 `col3` varchar(8) NOT NULL DEFAULT '',
951 primary key (`col1`, `col2`, `col3`))
952 ENGINE="FEDERATED"
953 DEFAULT CHARSET=latin1
954 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
955 INSERT INTO federated.t1 VALUES ('a00', '110', 'cc0');
956 INSERT INTO federated.t1 VALUES ('aaa', '111', 'ccc');
957 INSERT INTO federated.t1 VALUES ('bbb', '222', 'yyy');
958 INSERT INTO federated.t1 VALUES ('ccc', '111', 'zzz');
959 INSERT INTO federated.t1 VALUES ('ccd', '112', 'zzzz');
960 connection slave;
961 SELECT col3 FROM federated.t1 WHERE (
962 (col1 = 'aaa' AND col2 >= '111') OR col1 > 'aaa') AND
963 (col1 < 'ccc' OR ( col1 = 'ccc' AND col2 <= '111'));
964 col3
965 ccc
966 yyy
967 zzz
968 connection master;
969 SELECT col3 FROM federated.t1 WHERE (
970 (col1 = 'aaa' AND col2 >= '111') OR col1 > 'aaa') AND
971 (col1 < 'ccc' OR ( col1 = 'ccc' AND col2 <= '111'));
972 col3
973 ccc
974 yyy
975 zzz
976 connection slave;
977 DROP TABLE IF EXISTS federated.t1;
978 CREATE TABLE federated.t1 (
979 `id` int,
980 `name` varchar(32),
981 `floatval` float,
982 `other` int)
983 DEFAULT CHARSET=latin1;
984 connection master;
985 DROP TABLE IF EXISTS federated.t1;
986 CREATE TABLE federated.t1 (
987 `id` int,
988 `name` varchar(32),
989 `floatval` float,
990 `other` int)
991 ENGINE="FEDERATED"
992 DEFAULT CHARSET=latin1
993 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
994 INSERT INTO federated.t1 values (NULL, NULL, NULL, NULL);
995 INSERT INTO federated.t1 values ();
996 INSERT INTO federated.t1 (id) VALUES (1);
997 INSERT INTO federated.t1 (name, floatval, other)
998 VALUES ('foo', 33.33333332, NULL);
999 INSERT INTO federated.t1 (name, floatval, other)
1000 VALUES (0, 00.3333, NULL);
1001 SELECT * FROM federated.t1;
1002 id name floatval other
1003 1 NULL NULL NULL
1004 NULL 0 0.3333 NULL
1005 NULL NULL NULL NULL
1006 NULL NULL NULL NULL
1007 NULL foo 33.3333 NULL
1008 SELECT count(*) FROM federated.t1
1009 WHERE id IS NULL
1010 AND name IS NULL
1011 AND floatval IS NULL
1012 AND other IS NULL;
1013 count(*)
1014 2
1015 connection slave;
1016 DROP TABLE IF EXISTS federated.t1;
1017 CREATE TABLE federated.t1 (
1018 `blurb_id` int NOT NULL DEFAULT 0,
1019 `blurb` text default '',
1020 PRIMARY KEY (blurb_id))
1021 DEFAULT CHARSET=latin1;
1022 connection master;
1023 DROP TABLE IF EXISTS federated.t1;
1024 CREATE TABLE federated.t1 (
1025 `blurb_id` int NOT NULL DEFAULT 0,
1026 `blurb` text default '',
1027 PRIMARY KEY (blurb_id))
1028 ENGINE="FEDERATED"
1029 DEFAULT CHARSET=latin1
1030 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1031 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.");
1032 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.");
1033 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. ");
1034 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:");
1035 SELECT * FROM federated.t1;
1036 blurb_id blurb
1037 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.
1038 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.
1039 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.
1040 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:
1041 connection slave;
1042 DROP TABLE IF EXISTS federated.t1;
1043 CREATE TABLE federated.t1 (
1044 `a` int NOT NULL,
1045 `b` int NOT NULL,
1046 `c` int NOT NULL,
1047 PRIMARY KEY (a),key(b));
1048 connection master;
1049 DROP TABLE IF EXISTS federated.t1;
1050 CREATE TABLE federated.t1 (
1051 `a` int NOT NULL,
1052 `b` int NOT NULL,
1053 `c` int NOT NULL,
1054 PRIMARY KEY (a),
1055 KEY (b))
1056 ENGINE="FEDERATED"
1057 DEFAULT CHARSET=latin1
1058 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1059 INSERT INTO federated.t1 VALUES (3,3,3),(1,1,1),(2,2,2),(4,4,4);
1060 connection slave;
1061 DROP TABLE IF EXISTS federated.t1;
1062 CREATE TABLE federated.t1 (i1 int, i2 int, i3 int, i4 int, i5 int, i6 int, i7 int, i8
1063 int, i9 int, i10 int, i11 int, i12 int, i13 int, i14 int, i15 int, i16 int, i17
1064 int, i18 int, i19 int, i20 int, i21 int, i22 int, i23 int, i24 int, i25 int,
1065 i26 int, i27 int, i28 int, i29 int, i30 int, i31 int, i32 int, i33 int, i34
1066 int, i35 int, i36 int, i37 int, i38 int, i39 int, i40 int, i41 int, i42 int,
1067 i43 int, i44 int, i45 int, i46 int, i47 int, i48 int, i49 int, i50 int, i51
1068 int, i52 int, i53 int, i54 int, i55 int, i56 int, i57 int, i58 int, i59 int,
1069 i60 int, i61 int, i62 int, i63 int, i64 int, i65 int, i66 int, i67 int, i68
1070 int, i69 int, i70 int, i71 int, i72 int, i73 int, i74 int, i75 int, i76 int,
1071 i77 int, i78 int, i79 int, i80 int, i81 int, i82 int, i83 int, i84 int, i85
1072 int, i86 int, i87 int, i88 int, i89 int, i90 int, i91 int, i92 int, i93 int,
1073 i94 int, i95 int, i96 int, i97 int, i98 int, i99 int, i100 int, i101 int, i102
1074 int, i103 int, i104 int, i105 int, i106 int, i107 int, i108 int, i109 int, i110
1075 int, i111 int, i112 int, i113 int, i114 int, i115 int, i116 int, i117 int, i118
1076 int, i119 int, i120 int, i121 int, i122 int, i123 int, i124 int, i125 int, i126
1077 int, i127 int, i128 int, i129 int, i130 int, i131 int, i132 int, i133 int, i134
1078 int, i135 int, i136 int, i137 int, i138 int, i139 int, i140 int, i141 int, i142
1079 int, i143 int, i144 int, i145 int, i146 int, i147 int, i148 int, i149 int, i150
1080 int, i151 int, i152 int, i153 int, i154 int, i155 int, i156 int, i157 int, i158
1081 int, i159 int, i160 int, i161 int, i162 int, i163 int, i164 int, i165 int, i166
1082 int, i167 int, i168 int, i169 int, i170 int, i171 int, i172 int, i173 int, i174
1083 int, i175 int, i176 int, i177 int, i178 int, i179 int, i180 int, i181 int, i182
1084 int, i183 int, i184 int, i185 int, i186 int, i187 int, i188 int, i189 int, i190
1085 int, i191 int, i192 int, i193 int, i194 int, i195 int, i196 int, i197 int, i198
1086 int, i199 int, i200 int, i201 int, i202 int, i203 int, i204 int, i205 int, i206
1087 int, i207 int, i208 int, i209 int, i210 int, i211 int, i212 int, i213 int, i214
1088 int, i215 int, i216 int, i217 int, i218 int, i219 int, i220 int, i221 int, i222
1089 int, i223 int, i224 int, i225 int, i226 int, i227 int, i228 int, i229 int, i230
1090 int, i231 int, i232 int, i233 int, i234 int, i235 int, i236 int, i237 int, i238
1091 int, i239 int, i240 int, i241 int, i242 int, i243 int, i244 int, i245 int, i246
1092 int, i247 int, i248 int, i249 int, i250 int, i251 int, i252 int, i253 int, i254
1093 int, i255 int, i256 int, i257 int, i258 int, i259 int, i260 int, i261 int, i262
1094 int, i263 int, i264 int, i265 int, i266 int, i267 int, i268 int, i269 int, i270
1095 int, i271 int, i272 int, i273 int, i274 int, i275 int, i276 int, i277 int, i278
1096 int, i279 int, i280 int, i281 int, i282 int, i283 int, i284 int, i285 int, i286
1097 int, i287 int, i288 int, i289 int, i290 int, i291 int, i292 int, i293 int, i294
1098 int, i295 int, i296 int, i297 int, i298 int, i299 int, i300 int, i301 int, i302
1099 int, i303 int, i304 int, i305 int, i306 int, i307 int, i308 int, i309 int, i310
1100 int, i311 int, i312 int, i313 int, i314 int, i315 int, i316 int, i317 int, i318
1101 int, i319 int, i320 int, i321 int, i322 int, i323 int, i324 int, i325 int, i326
1102 int, i327 int, i328 int, i329 int, i330 int, i331 int, i332 int, i333 int, i334
1103 int, i335 int, i336 int, i337 int, i338 int, i339 int, i340 int, i341 int, i342
1104 int, i343 int, i344 int, i345 int, i346 int, i347 int, i348 int, i349 int, i350
1105 int, i351 int, i352 int, i353 int, i354 int, i355 int, i356 int, i357 int, i358
1106 int, i359 int, i360 int, i361 int, i362 int, i363 int, i364 int, i365 int, i366
1107 int, i367 int, i368 int, i369 int, i370 int, i371 int, i372 int, i373 int, i374
1108 int, i375 int, i376 int, i377 int, i378 int, i379 int, i380 int, i381 int, i382
1109 int, i383 int, i384 int, i385 int, i386 int, i387 int, i388 int, i389 int, i390
1110 int, i391 int, i392 int, i393 int, i394 int, i395 int, i396 int, i397 int, i398
1111 int, i399 int, i400 int, i401 int, i402 int, i403 int, i404 int, i405 int, i406
1112 int, i407 int, i408 int, i409 int, i410 int, i411 int, i412 int, i413 int, i414
1113 int, i415 int, i416 int, i417 int, i418 int, i419 int, i420 int, i421 int, i422
1114 int, i423 int, i424 int, i425 int, i426 int, i427 int, i428 int, i429 int, i430
1115 int, i431 int, i432 int, i433 int, i434 int, i435 int, i436 int, i437 int, i438
1116 int, i439 int, i440 int, i441 int, i442 int, i443 int, i444 int, i445 int, i446
1117 int, i447 int, i448 int, i449 int, i450 int, i451 int, i452 int, i453 int, i454
1118 int, i455 int, i456 int, i457 int, i458 int, i459 int, i460 int, i461 int, i462
1119 int, i463 int, i464 int, i465 int, i466 int, i467 int, i468 int, i469 int, i470
1120 int, i471 int, i472 int, i473 int, i474 int, i475 int, i476 int, i477 int, i478
1121 int, i479 int, i480 int, i481 int, i482 int, i483 int, i484 int, i485 int, i486
1122 int, i487 int, i488 int, i489 int, i490 int, i491 int, i492 int, i493 int, i494
1123 int, i495 int, i496 int, i497 int, i498 int, i499 int, i500 int, i501 int, i502
1124 int, i503 int, i504 int, i505 int, i506 int, i507 int, i508 int, i509 int, i510
1125 int, i511 int, i512 int, i513 int, i514 int, i515 int, i516 int, i517 int, i518
1126 int, i519 int, i520 int, i521 int, i522 int, i523 int, i524 int, i525 int, i526
1127 int, i527 int, i528 int, i529 int, i530 int, i531 int, i532 int, i533 int, i534
1128 int, i535 int, i536 int, i537 int, i538 int, i539 int, i540 int, i541 int, i542
1129 int, i543 int, i544 int, i545 int, i546 int, i547 int, i548 int, i549 int, i550
1130 int, i551 int, i552 int, i553 int, i554 int, i555 int, i556 int, i557 int, i558
1131 int, i559 int, i560 int, i561 int, i562 int, i563 int, i564 int, i565 int, i566
1132 int, i567 int, i568 int, i569 int, i570 int, i571 int, i572 int, i573 int, i574
1133 int, i575 int, i576 int, i577 int, i578 int, i579 int, i580 int, i581 int, i582
1134 int, i583 int, i584 int, i585 int, i586 int, i587 int, i588 int, i589 int, i590
1135 int, i591 int, i592 int, i593 int, i594 int, i595 int, i596 int, i597 int, i598
1136 int, i599 int, i600 int, i601 int, i602 int, i603 int, i604 int, i605 int, i606
1137 int, i607 int, i608 int, i609 int, i610 int, i611 int, i612 int, i613 int, i614
1138 int, i615 int, i616 int, i617 int, i618 int, i619 int, i620 int, i621 int, i622
1139 int, i623 int, i624 int, i625 int, i626 int, i627 int, i628 int, i629 int, i630
1140 int, i631 int, i632 int, i633 int, i634 int, i635 int, i636 int, i637 int, i638
1141 int, i639 int, i640 int, i641 int, i642 int, i643 int, i644 int, i645 int, i646
1142 int, i647 int, i648 int, i649 int, i650 int, i651 int, i652 int, i653 int, i654
1143 int, i655 int, i656 int, i657 int, i658 int, i659 int, i660 int, i661 int, i662
1144 int, i663 int, i664 int, i665 int, i666 int, i667 int, i668 int, i669 int, i670
1145 int, i671 int, i672 int, i673 int, i674 int, i675 int, i676 int, i677 int, i678
1146 int, i679 int, i680 int, i681 int, i682 int, i683 int, i684 int, i685 int, i686
1147 int, i687 int, i688 int, i689 int, i690 int, i691 int, i692 int, i693 int, i694
1148 int, i695 int, i696 int, i697 int, i698 int, i699 int, i700 int, i701 int, i702
1149 int, i703 int, i704 int, i705 int, i706 int, i707 int, i708 int, i709 int, i710
1150 int, i711 int, i712 int, i713 int, i714 int, i715 int, i716 int, i717 int, i718
1151 int, i719 int, i720 int, i721 int, i722 int, i723 int, i724 int, i725 int, i726
1152 int, i727 int, i728 int, i729 int, i730 int, i731 int, i732 int, i733 int, i734
1153 int, i735 int, i736 int, i737 int, i738 int, i739 int, i740 int, i741 int, i742
1154 int, i743 int, i744 int, i745 int, i746 int, i747 int, i748 int, i749 int, i750
1155 int, i751 int, i752 int, i753 int, i754 int, i755 int, i756 int, i757 int, i758
1156 int, i759 int, i760 int, i761 int, i762 int, i763 int, i764 int, i765 int, i766
1157 int, i767 int, i768 int, i769 int, i770 int, i771 int, i772 int, i773 int, i774
1158 int, i775 int, i776 int, i777 int, i778 int, i779 int, i780 int, i781 int, i782
1159 int, i783 int, i784 int, i785 int, i786 int, i787 int, i788 int, i789 int, i790
1160 int, i791 int, i792 int, i793 int, i794 int, i795 int, i796 int, i797 int, i798
1161 int, i799 int, i800 int, i801 int, i802 int, i803 int, i804 int, i805 int, i806
1162 int, i807 int, i808 int, i809 int, i810 int, i811 int, i812 int, i813 int, i814
1163 int, i815 int, i816 int, i817 int, i818 int, i819 int, i820 int, i821 int, i822
1164 int, i823 int, i824 int, i825 int, i826 int, i827 int, i828 int, i829 int, i830
1165 int, i831 int, i832 int, i833 int, i834 int, i835 int, i836 int, i837 int, i838
1166 int, i839 int, i840 int, i841 int, i842 int, i843 int, i844 int, i845 int, i846
1167 int, i847 int, i848 int, i849 int, i850 int, i851 int, i852 int, i853 int, i854
1168 int, i855 int, i856 int, i857 int, i858 int, i859 int, i860 int, i861 int, i862
1169 int, i863 int, i864 int, i865 int, i866 int, i867 int, i868 int, i869 int, i870
1170 int, i871 int, i872 int, i873 int, i874 int, i875 int, i876 int, i877 int, i878
1171 int, i879 int, i880 int, i881 int, i882 int, i883 int, i884 int, i885 int, i886
1172 int, i887 int, i888 int, i889 int, i890 int, i891 int, i892 int, i893 int, i894
1173 int, i895 int, i896 int, i897 int, i898 int, i899 int, i900 int, i901 int, i902
1174 int, i903 int, i904 int, i905 int, i906 int, i907 int, i908 int, i909 int, i910
1175 int, i911 int, i912 int, i913 int, i914 int, i915 int, i916 int, i917 int, i918
1176 int, i919 int, i920 int, i921 int, i922 int, i923 int, i924 int, i925 int, i926
1177 int, i927 int, i928 int, i929 int, i930 int, i931 int, i932 int, i933 int, i934
1178 int, i935 int, i936 int, i937 int, i938 int, i939 int, i940 int, i941 int, i942
1179 int, i943 int, i944 int, i945 int, i946 int, i947 int, i948 int, i949 int, i950
1180 int, i951 int, i952 int, i953 int, i954 int, i955 int, i956 int, i957 int, i958
1181 int, i959 int, i960 int, i961 int, i962 int, i963 int, i964 int, i965 int, i966
1182 int, i967 int, i968 int, i969 int, i970 int, i971 int, i972 int, i973 int, i974
1183 int, i975 int, i976 int, i977 int, i978 int, i979 int, i980 int, i981 int, i982
1184 int, i983 int, i984 int, i985 int, i986 int, i987 int, i988 int, i989 int, i990
1185 int, i991 int, i992 int, i993 int, i994 int, i995 int, i996 int, i997 int, i998
1186 int, i999 int, i1000 int, b varchar(256)) row_format=dynamic;
1187 connection master;
1188 DROP TABLE IF EXISTS federated.t1;
1189 CREATE TABLE federated.t1
1190 (i1 int, i2 int, i3 int, i4 int, i5 int, i6 int, i7 int, i8
1191 int, i9 int, i10 int, i11 int, i12 int, i13 int, i14 int, i15 int, i16 int,
1192 i17 int, i18 int, i19 int, i20 int, i21 int, i22 int, i23 int, i24 int, i25 int,
1193 i26 int, i27 int, i28 int, i29 int, i30 int, i31 int, i32 int, i33 int, i34
1194 int, i35 int, i36 int, i37 int, i38 int, i39 int, i40 int, i41 int, i42 int,
1195 i43 int, i44 int, i45 int, i46 int, i47 int, i48 int, i49 int, i50 int, i51
1196 int, i52 int, i53 int, i54 int, i55 int, i56 int, i57 int, i58 int, i59 int,
1197 i60 int, i61 int, i62 int, i63 int, i64 int, i65 int, i66 int, i67 int, i68
1198 int, i69 int, i70 int, i71 int, i72 int, i73 int, i74 int, i75 int, i76 int,
1199 i77 int, i78 int, i79 int, i80 int, i81 int, i82 int, i83 int, i84 int, i85
1200 int, i86 int, i87 int, i88 int, i89 int, i90 int, i91 int, i92 int, i93 int,
1201 i94 int, i95 int, i96 int, i97 int, i98 int, i99 int, i100 int, i101 int, i102
1202 int, i103 int, i104 int, i105 int, i106 int, i107 int, i108 int, i109 int, i110
1203 int, i111 int, i112 int, i113 int, i114 int, i115 int, i116 int, i117 int, i118
1204 int, i119 int, i120 int, i121 int, i122 int, i123 int, i124 int, i125 int, i126
1205 int, i127 int, i128 int, i129 int, i130 int, i131 int, i132 int, i133 int, i134
1206 int, i135 int, i136 int, i137 int, i138 int, i139 int, i140 int, i141 int, i142
1207 int, i143 int, i144 int, i145 int, i146 int, i147 int, i148 int, i149 int, i150
1208 int, i151 int, i152 int, i153 int, i154 int, i155 int, i156 int, i157 int, i158
1209 int, i159 int, i160 int, i161 int, i162 int, i163 int, i164 int, i165 int, i166
1210 int, i167 int, i168 int, i169 int, i170 int, i171 int, i172 int, i173 int, i174
1211 int, i175 int, i176 int, i177 int, i178 int, i179 int, i180 int, i181 int, i182
1212 int, i183 int, i184 int, i185 int, i186 int, i187 int, i188 int, i189 int, i190
1213 int, i191 int, i192 int, i193 int, i194 int, i195 int, i196 int, i197 int, i198
1214 int, i199 int, i200 int, i201 int, i202 int, i203 int, i204 int, i205 int, i206
1215 int, i207 int, i208 int, i209 int, i210 int, i211 int, i212 int, i213 int, i214
1216 int, i215 int, i216 int, i217 int, i218 int, i219 int, i220 int, i221 int, i222
1217 int, i223 int, i224 int, i225 int, i226 int, i227 int, i228 int, i229 int, i230
1218 int, i231 int, i232 int, i233 int, i234 int, i235 int, i236 int, i237 int, i238
1219 int, i239 int, i240 int, i241 int, i242 int, i243 int, i244 int, i245 int, i246
1220 int, i247 int, i248 int, i249 int, i250 int, i251 int, i252 int, i253 int, i254
1221 int, i255 int, i256 int, i257 int, i258 int, i259 int, i260 int, i261 int, i262
1222 int, i263 int, i264 int, i265 int, i266 int, i267 int, i268 int, i269 int, i270
1223 int, i271 int, i272 int, i273 int, i274 int, i275 int, i276 int, i277 int, i278
1224 int, i279 int, i280 int, i281 int, i282 int, i283 int, i284 int, i285 int, i286
1225 int, i287 int, i288 int, i289 int, i290 int, i291 int, i292 int, i293 int, i294
1226 int, i295 int, i296 int, i297 int, i298 int, i299 int, i300 int, i301 int, i302
1227 int, i303 int, i304 int, i305 int, i306 int, i307 int, i308 int, i309 int, i310
1228 int, i311 int, i312 int, i313 int, i314 int, i315 int, i316 int, i317 int, i318
1229 int, i319 int, i320 int, i321 int, i322 int, i323 int, i324 int, i325 int, i326
1230 int, i327 int, i328 int, i329 int, i330 int, i331 int, i332 int, i333 int, i334
1231 int, i335 int, i336 int, i337 int, i338 int, i339 int, i340 int, i341 int, i342
1232 int, i343 int, i344 int, i345 int, i346 int, i347 int, i348 int, i349 int, i350
1233 int, i351 int, i352 int, i353 int, i354 int, i355 int, i356 int, i357 int, i358
1234 int, i359 int, i360 int, i361 int, i362 int, i363 int, i364 int, i365 int, i366
1235 int, i367 int, i368 int, i369 int, i370 int, i371 int, i372 int, i373 int, i374
1236 int, i375 int, i376 int, i377 int, i378 int, i379 int, i380 int, i381 int, i382
1237 int, i383 int, i384 int, i385 int, i386 int, i387 int, i388 int, i389 int, i390
1238 int, i391 int, i392 int, i393 int, i394 int, i395 int, i396 int, i397 int, i398
1239 int, i399 int, i400 int, i401 int, i402 int, i403 int, i404 int, i405 int, i406
1240 int, i407 int, i408 int, i409 int, i410 int, i411 int, i412 int, i413 int, i414
1241 int, i415 int, i416 int, i417 int, i418 int, i419 int, i420 int, i421 int, i422
1242 int, i423 int, i424 int, i425 int, i426 int, i427 int, i428 int, i429 int, i430
1243 int, i431 int, i432 int, i433 int, i434 int, i435 int, i436 int, i437 int, i438
1244 int, i439 int, i440 int, i441 int, i442 int, i443 int, i444 int, i445 int, i446
1245 int, i447 int, i448 int, i449 int, i450 int, i451 int, i452 int, i453 int, i454
1246 int, i455 int, i456 int, i457 int, i458 int, i459 int, i460 int, i461 int, i462
1247 int, i463 int, i464 int, i465 int, i466 int, i467 int, i468 int, i469 int, i470
1248 int, i471 int, i472 int, i473 int, i474 int, i475 int, i476 int, i477 int, i478
1249 int, i479 int, i480 int, i481 int, i482 int, i483 int, i484 int, i485 int, i486
1250 int, i487 int, i488 int, i489 int, i490 int, i491 int, i492 int, i493 int, i494
1251 int, i495 int, i496 int, i497 int, i498 int, i499 int, i500 int, i501 int, i502
1252 int, i503 int, i504 int, i505 int, i506 int, i507 int, i508 int, i509 int, i510
1253 int, i511 int, i512 int, i513 int, i514 int, i515 int, i516 int, i517 int, i518
1254 int, i519 int, i520 int, i521 int, i522 int, i523 int, i524 int, i525 int, i526
1255 int, i527 int, i528 int, i529 int, i530 int, i531 int, i532 int, i533 int, i534
1256 int, i535 int, i536 int, i537 int, i538 int, i539 int, i540 int, i541 int, i542
1257 int, i543 int, i544 int, i545 int, i546 int, i547 int, i548 int, i549 int, i550
1258 int, i551 int, i552 int, i553 int, i554 int, i555 int, i556 int, i557 int, i558
1259 int, i559 int, i560 int, i561 int, i562 int, i563 int, i564 int, i565 int, i566
1260 int, i567 int, i568 int, i569 int, i570 int, i571 int, i572 int, i573 int, i574
1261 int, i575 int, i576 int, i577 int, i578 int, i579 int, i580 int, i581 int, i582
1262 int, i583 int, i584 int, i585 int, i586 int, i587 int, i588 int, i589 int, i590
1263 int, i591 int, i592 int, i593 int, i594 int, i595 int, i596 int, i597 int, i598
1264 int, i599 int, i600 int, i601 int, i602 int, i603 int, i604 int, i605 int, i606
1265 int, i607 int, i608 int, i609 int, i610 int, i611 int, i612 int, i613 int, i614
1266 int, i615 int, i616 int, i617 int, i618 int, i619 int, i620 int, i621 int, i622
1267 int, i623 int, i624 int, i625 int, i626 int, i627 int, i628 int, i629 int, i630
1268 int, i631 int, i632 int, i633 int, i634 int, i635 int, i636 int, i637 int, i638
1269 int, i639 int, i640 int, i641 int, i642 int, i643 int, i644 int, i645 int, i646
1270 int, i647 int, i648 int, i649 int, i650 int, i651 int, i652 int, i653 int, i654
1271 int, i655 int, i656 int, i657 int, i658 int, i659 int, i660 int, i661 int, i662
1272 int, i663 int, i664 int, i665 int, i666 int, i667 int, i668 int, i669 int, i670
1273 int, i671 int, i672 int, i673 int, i674 int, i675 int, i676 int, i677 int, i678
1274 int, i679 int, i680 int, i681 int, i682 int, i683 int, i684 int, i685 int, i686
1275 int, i687 int, i688 int, i689 int, i690 int, i691 int, i692 int, i693 int, i694
1276 int, i695 int, i696 int, i697 int, i698 int, i699 int, i700 int, i701 int, i702
1277 int, i703 int, i704 int, i705 int, i706 int, i707 int, i708 int, i709 int, i710
1278 int, i711 int, i712 int, i713 int, i714 int, i715 int, i716 int, i717 int, i718
1279 int, i719 int, i720 int, i721 int, i722 int, i723 int, i724 int, i725 int, i726
1280 int, i727 int, i728 int, i729 int, i730 int, i731 int, i732 int, i733 int, i734
1281 int, i735 int, i736 int, i737 int, i738 int, i739 int, i740 int, i741 int, i742
1282 int, i743 int, i744 int, i745 int, i746 int, i747 int, i748 int, i749 int, i750
1283 int, i751 int, i752 int, i753 int, i754 int, i755 int, i756 int, i757 int, i758
1284 int, i759 int, i760 int, i761 int, i762 int, i763 int, i764 int, i765 int, i766
1285 int, i767 int, i768 int, i769 int, i770 int, i771 int, i772 int, i773 int, i774
1286 int, i775 int, i776 int, i777 int, i778 int, i779 int, i780 int, i781 int, i782
1287 int, i783 int, i784 int, i785 int, i786 int, i787 int, i788 int, i789 int, i790
1288 int, i791 int, i792 int, i793 int, i794 int, i795 int, i796 int, i797 int, i798
1289 int, i799 int, i800 int, i801 int, i802 int, i803 int, i804 int, i805 int, i806
1290 int, i807 int, i808 int, i809 int, i810 int, i811 int, i812 int, i813 int, i814
1291 int, i815 int, i816 int, i817 int, i818 int, i819 int, i820 int, i821 int, i822
1292 int, i823 int, i824 int, i825 int, i826 int, i827 int, i828 int, i829 int, i830
1293 int, i831 int, i832 int, i833 int, i834 int, i835 int, i836 int, i837 int, i838
1294 int, i839 int, i840 int, i841 int, i842 int, i843 int, i844 int, i845 int, i846
1295 int, i847 int, i848 int, i849 int, i850 int, i851 int, i852 int, i853 int, i854
1296 int, i855 int, i856 int, i857 int, i858 int, i859 int, i860 int, i861 int, i862
1297 int, i863 int, i864 int, i865 int, i866 int, i867 int, i868 int, i869 int, i870
1298 int, i871 int, i872 int, i873 int, i874 int, i875 int, i876 int, i877 int, i878
1299 int, i879 int, i880 int, i881 int, i882 int, i883 int, i884 int, i885 int, i886
1300 int, i887 int, i888 int, i889 int, i890 int, i891 int, i892 int, i893 int, i894
1301 int, i895 int, i896 int, i897 int, i898 int, i899 int, i900 int, i901 int, i902
1302 int, i903 int, i904 int, i905 int, i906 int, i907 int, i908 int, i909 int, i910
1303 int, i911 int, i912 int, i913 int, i914 int, i915 int, i916 int, i917 int, i918
1304 int, i919 int, i920 int, i921 int, i922 int, i923 int, i924 int, i925 int, i926
1305 int, i927 int, i928 int, i929 int, i930 int, i931 int, i932 int, i933 int, i934
1306 int, i935 int, i936 int, i937 int, i938 int, i939 int, i940 int, i941 int, i942
1307 int, i943 int, i944 int, i945 int, i946 int, i947 int, i948 int, i949 int, i950
1308 int, i951 int, i952 int, i953 int, i954 int, i955 int, i956 int, i957 int, i958
1309 int, i959 int, i960 int, i961 int, i962 int, i963 int, i964 int, i965 int, i966
1310 int, i967 int, i968 int, i969 int, i970 int, i971 int, i972 int, i973 int, i974
1311 int, i975 int, i976 int, i977 int, i978 int, i979 int, i980 int, i981 int, i982
1312 int, i983 int, i984 int, i985 int, i986 int, i987 int, i988 int, i989 int, i990
1313 int, i991 int, i992 int, i993 int, i994 int, i995 int, i996 int, i997 int, i998
1314 int, i999 int, i1000 int, b varchar(256))
1315 row_format=dynamic
1316 ENGINE="FEDERATED"
1317 DEFAULT CHARSET=latin1
1318 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1319 INSERT INTO federated.t1
1320 values (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1321 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1322 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1323 1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 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
1363 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 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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1364 UPDATE federated.t1 SET i50=20;
1365 SELECT * FROM federated.t1;
1366 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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1 1 1 1 1 1 1 1 1 1 1 1 1 1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1368 DELETE FROM federated.t1 WHERE i51=20;
1369 SELECT * FROM federated.t1;
1370 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
1371 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
1372 DELETE FROM federated.t1 WHERE i50=20;
1373 SELECT * FROM federated.t1;
1374 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
1375 connection slave;
1376 DROP TABLE IF EXISTS federated.t1;
1377 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;
1378 connection master;
1379 DROP TABLE IF EXISTS federated.t1;
1380 CREATE TABLE federated.t1 (
1381 id int NOT NULL auto_increment,
1382 code char(20) NOT NULL,
1383 fileguts blob NOT NULL,
1384 creation_date datetime,
1385 entered_time datetime default '2004-04-04 04:04:04',
1386 PRIMARY KEY(id),
1387 index(code),
1388 index(fileguts(10)))
1389 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1390 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1391 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');
1392 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');
1393 INSERT INTO federated.t1 (code, fileguts, creation_date) VALUES ('DEUEUEUEUEUEUEUEUEU', 'jimbob', '2004-04-04 04:04:04');
1394 SELECT * FROM federated.t1;
1395 id code fileguts creation_date entered_time
1396 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
1397 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
1398 3 DEUEUEUEUEUEUEUEUEU jimbob 2004-04-04 04:04:04 2004-04-04 04:04:04
1399 SELECT * FROM federated.t1 WHERE fileguts = 'jimbob';
1400 id code fileguts creation_date entered_time
1401 3 DEUEUEUEUEUEUEUEUEU jimbob 2004-04-04 04:04:04 2004-04-04 04:04:04
1402 connection slave;
1403 DROP TABLE IF EXISTS federated.t1;
1404 CREATE TABLE federated.t1 (`a` BLOB);
1405 connection master;
1406 DROP TABLE IF EXISTS federated.t1;
1407 CREATE TABLE federated.t1 (
1408 `a` BLOB)
1409 ENGINE="FEDERATED"
1410 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1411 INSERT INTO federated.t1 VALUES (0x00);
1412 INSERT INTO federated.t1 VALUES (0x0001);
1413 INSERT INTO federated.t1 VALUES (0x0100);
1414 SELECT HEX(a) FROM federated.t1;
1415 HEX(a)
1416 00
1417 0001
1418 0100
1419 connection slave;
1420 DROP TABLE IF EXISTS federated.t1;
1421 CREATE TABLE federated.t1 (
1422 `id` int(20) NOT NULL auto_increment,
1423 `country_id` int(20) NOT NULL DEFAULT 0,
1424 `name` varchar(32),
1425 `other` varchar(20),
1426 PRIMARY KEY (`id`),
1427 key (country_id));
1428 connection master;
1429 DROP TABLE IF EXISTS federated.countries;
1430 Warnings:
1431 Note 1051 Unknown table 'federated.countries'
1432 CREATE TABLE federated.countries (
1433 `id` int(20) NOT NULL auto_increment,
1434 `country` varchar(32),
1435 PRIMARY KEY (id));
1436 INSERT INTO federated.countries (country) VALUES ('India');
1437 INSERT INTO federated.countries (country) VALUES ('Germany');
1438 INSERT INTO federated.countries (country) VALUES ('Italy');
1439 INSERT INTO federated.countries (country) VALUES ('Finland');
1440 INSERT INTO federated.countries (country) VALUES ('Ukraine');
1441 DROP TABLE IF EXISTS federated.t1;
1442 CREATE TABLE federated.t1 (
1443 `id` int(20) NOT NULL auto_increment,
1444 `country_id` int(20) NOT NULL DEFAULT 0,
1445 `name` varchar(32),
1446 `other` varchar(20),
1447 PRIMARY KEY (`id`),
1448 KEY (country_id) )
1449 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1450 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1451 INSERT INTO federated.t1 (name, country_id, other) VALUES ('Kumar', 1, 11111);
1452 INSERT INTO federated.t1 (name, country_id, other) VALUES ('Lenz', 2, 22222);
1453 INSERT INTO federated.t1 (name, country_id, other) VALUES ('Marizio', 3, 33333);
1454 INSERT INTO federated.t1 (name, country_id, other) VALUES ('Monty', 4, 33333);
1455 INSERT INTO federated.t1 (name, country_id, other) VALUES ('Sanja', 5, 33333);
1456 SELECT federated.t1.name AS name, federated.t1.country_id AS country_id,
1457 federated.t1.other AS other, federated.countries.country AS country
1458 FROM federated.t1, federated.countries WHERE
1459 federated.t1.country_id = federated.countries.id;
1460 name country_id other country
1461 Kumar 1 11111 India
1462 Lenz 2 22222 Germany
1463 Marizio 3 33333 Italy
1464 Monty 4 33333 Finland
1465 Sanja 5 33333 Ukraine
1466 SELECT federated.t1.name AS name, federated.t1.country_id AS country_id,
1467 federated.t1.other AS other, federated.countries.country AS country
1468 FROM federated.t1 INNER JOIN federated.countries ON
1469 federated.t1.country_id = federated.countries.id;
1470 name country_id other country
1471 Kumar 1 11111 India
1472 Lenz 2 22222 Germany
1473 Marizio 3 33333 Italy
1474 Monty 4 33333 Finland
1475 Sanja 5 33333 Ukraine
1476 SELECT federated.t1.name AS name, federated.t1.country_id AS country_id,
1477 federated.t1.other AS other, federated.countries.country AS country
1478 FROM federated.t1 INNER JOIN federated.countries ON
1479 federated.t1.country_id = federated.countries.id
1480 WHERE federated.t1.name = 'Monty';
1481 name country_id other country
1482 Monty 4 33333 Finland
1483 SELECT federated.t1.*, federated.countries.country
1484 FROM federated.t1 LEFT JOIN federated.countries
1485 ON federated.t1.country_id = federated.countries.id
1486 ORDER BY federated.countries.id;
1487 id country_id name other country
1488 1 1 Kumar 11111 India
1489 2 2 Lenz 22222 Germany
1490 3 3 Marizio 33333 Italy
1491 4 4 Monty 33333 Finland
1492 5 5 Sanja 33333 Ukraine
1493 SELECT federated.t1.*, federated.countries.country
1494 FROM federated.t1 LEFT JOIN federated.countries
1495 ON federated.t1.country_id = federated.countries.id
1496 ORDER BY federated.countries.country;
1497 id country_id name other country
1498 4 4 Monty 33333 Finland
1499 2 2 Lenz 22222 Germany
1500 1 1 Kumar 11111 India
1501 3 3 Marizio 33333 Italy
1502 5 5 Sanja 33333 Ukraine
1503 SELECT federated.t1.*, federated.countries.country
1504 FROM federated.t1 RIGHT JOIN federated.countries
1505 ON federated.t1.country_id = federated.countries.id
1506 ORDER BY federated.t1.country_id;
1507 id country_id name other country
1508 1 1 Kumar 11111 India
1509 2 2 Lenz 22222 Germany
1510 3 3 Marizio 33333 Italy
1511 4 4 Monty 33333 Finland
1512 5 5 Sanja 33333 Ukraine
1513 DROP TABLE federated.countries;
1514 OPTIMIZE TABLE federated.t1;
1515 Table Op Msg_type Msg_text
1516 federated.t1 optimize status OK
1517 REPAIR TABLE federated.t1;
1518 Table Op Msg_type Msg_text
1519 federated.t1 repair status OK
1520 REPAIR TABLE federated.t1 QUICK;
1521 Table Op Msg_type Msg_text
1522 federated.t1 repair status OK
1523 REPAIR TABLE federated.t1 EXTENDED;
1524 Table Op Msg_type Msg_text
1525 federated.t1 repair status OK
1526 REPAIR TABLE federated.t1 USE_FRM;
1527 Table Op Msg_type Msg_text
1528 federated.t1 repair status OK
1529 connection slave;
1530 DROP TABLE IF EXISTS federated.normal_table;
1531 CREATE TABLE federated.normal_table (
1532 `id` int(4) NOT NULL,
1533 `name` varchar(10) default NULL
1534 ) DEFAULT CHARSET=latin1;
1535 connection master;
1536 DROP TABLE IF EXISTS federated.alter_me;
1537 CREATE TABLE federated.alter_me (
1538 `id` int(4) NOT NULL,
1539 `name` varchar(10) default NULL,
1540 PRIMARY KEY (`id`)
1541 ) ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1542 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/normal_table';
1543 INSERT INTO federated.alter_me (id, name) VALUES (1, 'Monty');
1544 INSERT INTO federated.alter_me (id, name) VALUES (2, 'David');
1545 SELECT * FROM federated.alter_me;
1546 id name
1547 1 Monty
1548 2 David
1549 ALTER TABLE federated.alter_me MODIFY COLUMN id int(16) NOT NULL;
1550 ERROR HY000: Storage engine FEDERATED of the table `federated`.`alter_me` doesn't have this option
1551 SELECT * FROM federated.alter_me;
1552 id name
1553 1 Monty
1554 2 David
1555 DROP TABLE federated.alter_me;
1556 connection slave;
1557 DROP TABLE federated.normal_table;
1558 DROP TABLE IF EXISTS federated.t1;
1559 CREATE TABLE federated.t1 (
1560 `bitty` bit(3)
1561 ) DEFAULT CHARSET=latin1;
1562 connection master;
1563 DROP TABLE IF EXISTS federated.t1;
1564 CREATE TABLE federated.t1 (
1565 `bitty` bit(3)
1566 ) ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1567 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1568 INSERT INTO federated.t1 VALUES (b'001');
1569 INSERT INTO federated.t1 VALUES (b'010');
1570 INSERT INTO federated.t1 VALUES (b'011');
1571 INSERT INTO federated.t1 VALUES (b'100');
1572 INSERT INTO federated.t1 VALUES (b'101');
1573 INSERT INTO federated.t1 VALUES (b'110');
1574 INSERT INTO federated.t1 VALUES (b'111');
1575 select * FROM federated.t1;
1576 bitty
1577 
1578 
1579 
1580 
1581 
1582 
1583 
1584 drop table federated.t1;
1585 connection slave;
1586 drop table federated.t1;
1587 connection slave;
1588 DROP TABLE IF EXISTS federated.t1;
1589 Warnings:
1590 Note 1051 Unknown table 'federated.t1'
1591 CREATE TABLE federated.t1 (
1592 `id` int(20) NOT NULL auto_increment,
1593 PRIMARY KEY (`id`));
1594 connection master;
1595 DROP TABLE IF EXISTS federated.t1;
1596 Warnings:
1597 Note 1051 Unknown table 'federated.t1'
1598 CREATE TABLE federated.t1 (
1599 `id` int(20) NOT NULL auto_increment,
1600 PRIMARY KEY (`id`)
1601 )
1602 ENGINE="FEDERATED" DEFAULT CHARSET=latin1
1603 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1604 INSERT INTO federated.t1 VALUES ();
1605 SELECT LAST_INSERT_ID();
1606 LAST_INSERT_ID()
1607 1
1608 INSERT INTO federated.t1 VALUES ();
1609 SELECT LAST_INSERT_ID();
1610 LAST_INSERT_ID()
1611 2
1612 INSERT INTO federated.t1 VALUES ();
1613 SELECT LAST_INSERT_ID();
1614 LAST_INSERT_ID()
1615 3
1616 INSERT INTO federated.t1 VALUES ();
1617 SELECT LAST_INSERT_ID();
1618 LAST_INSERT_ID()
1619 4
1620 INSERT INTO federated.t1 VALUES ();
1621 SELECT LAST_INSERT_ID();
1622 LAST_INSERT_ID()
1623 5
1624 SELECT * FROM federated.t1;
1625 id
1626 1
1627 2
1628 3
1629 4
1630 5
1631 DROP TABLE federated.t1;
1632 connection slave;
1633 DROP TABLE federated.t1;
1634 connection slave;
1635 DROP TABLE IF EXISTS federated.bug_17377_table;
1636 CREATE TABLE federated.bug_17377_table (
1637 `fld_cid` bigint(20) NOT NULL auto_increment,
1638 `fld_name` varchar(255) NOT NULL default '',
1639 `fld_parentid` bigint(20) NOT NULL default '0',
1640 `fld_delt` int(1) NOT NULL default '0',
1641 PRIMARY KEY (`fld_cid`),
1642 KEY `fld_parentid` (`fld_parentid`),
1643 KEY `fld_delt` (`fld_delt`),
1644 KEY `fld_cid` (`fld_cid`)
1645 ) ENGINE=MyISAM;
1646 insert into federated.bug_17377_table( fld_name )
1647 values
1648 ("Mats"), ("Sivert"), ("Sigvard"), ("Torgny"), ("Torkel");
1649 connection master;
1650 DROP TABLE IF EXISTS federated.t1;
1651 CREATE TABLE federated.t1 (
1652 `fld_cid` bigint(20) NOT NULL auto_increment,
1653 `fld_name` varchar(255) NOT NULL default '',
1654 `fld_parentid` bigint(20) NOT NULL default '0',
1655 `fld_delt` int(1) NOT NULL default '0',
1656 PRIMARY KEY (`fld_cid`),
1657 KEY `fld_parentid` (`fld_parentid`),
1658 KEY `fld_delt` (`fld_delt`),
1659 KEY `fld_cid` (`fld_cid`)
1660 ) ENGINE=FEDERATED
1661 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/bug_17377_table';
1662 select * from federated.t1 where fld_parentid=0 and fld_delt=0
1663 order by fld_name;
1664 fld_cid fld_name fld_parentid fld_delt
1665 1 Mats 0 0
1666 3 Sigvard 0 0
1667 2 Sivert 0 0
1668 4 Torgny 0 0
1669 5 Torkel 0 0
1670 select * from federated.t1 where fld_parentid=0 and fld_delt=0;
1671 fld_cid fld_name fld_parentid fld_delt
1672 1 Mats 0 0
1673 2 Sivert 0 0
1674 3 Sigvard 0 0
1675 4 Torgny 0 0
1676 5 Torkel 0 0
1677 DROP TABLE federated.t1;
1678 connection slave;
1679 DROP TABLE federated.bug_17377_table;
1680 connection slave;
1681 DROP TABLE IF EXISTS federated.test;
1682 CREATE TABLE federated.test (
1683 `id` int(11) NOT NULL,
1684 `val1` varchar(255) NOT NULL,
1685 `val2` varchar(255) NOT NULL,
1686 PRIMARY KEY (`id`)
1687 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1688 connection master;
1689 DROP TABLE IF EXISTS federated.test_local;
1690 DROP TABLE IF EXISTS federated.test_remote;
1691 CREATE TABLE federated.test_local (
1692 `id` int(11) NOT NULL,
1693 `val1` varchar(255) NOT NULL,
1694 `val2` varchar(255) NOT NULL,
1695 PRIMARY KEY (`id`)
1696 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1697 INSERT INTO federated.test_local VALUES (1, 'foo', 'bar'),
1698 (2, 'bar', 'foo');
1699 CREATE TABLE federated.test_remote (
1700 `id` int(11) NOT NULL,
1701 `val1` varchar(255) NOT NULL,
1702 `val2` varchar(255) NOT NULL,
1703 PRIMARY KEY (`id`)
1704 ) ENGINE=FEDERATED DEFAULT CHARSET=latin1
1705 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/test';
1706 insert into federated.test_remote select * from federated.test_local;
1707 select * from federated.test_remote;
1708 id val1 val2
1709 1 foo bar
1710 2 bar foo
1711 delete from federated.test_remote where id in (1,2);
1712 insert into federated.test_remote select * from federated.test_local;
1713 select * from federated.test_remote;
1714 id val1 val2
1715 2 bar foo
1716 1 foo bar
1717 DROP TABLE federated.test_local;
1718 DROP TABLE federated.test_remote;
1719 connection slave;
1720 DROP TABLE federated.test;
1721 connection slave;
1722 drop table if exists federated.t1;
1723 create table federated.t1 (a int, b int, c int);
1724 connection master;
1725 drop table if exists federated.t1;
1726 drop table if exists federated.t2;
1727 create table federated.t1 (a int, b int, c int) engine=federated connection='mysql://[email protected]:SLAVE_PORT/federated/t1';
1728 create trigger federated.t1_bi before insert on federated.t1 for each row set new.c= new.a * new.b;
1729 create table federated.t2 (a int, b int);
1730 insert into federated.t2 values (13, 17), (19, 23);
1731 insert into federated.t1 (a, b) values (1, 2), (3, 5), (7, 11);
1732 select * from federated.t1 order by a;
1733 a b c
1734 1 2 2
1735 3 5 15
1736 7 11 77
1737 delete from federated.t1;
1738 insert into federated.t1 (a, b) select * from federated.t2;
1739 select * from federated.t1 order by a;
1740 a b c
1741 13 17 221
1742 19 23 437
1743 delete from federated.t1;
1744 load data infile '../../std_data/loaddata5.dat' into table federated.t1 fields terminated by '' enclosed by '' ignore 1 lines (a, b);
1745 Warnings:
1746 Note 1265 Data truncated for column 'a' at row 1
1747 Note 1265 Data truncated for column 'b' at row 1
1748 Note 1265 Data truncated for column 'a' at row 2
1749 Note 1265 Data truncated for column 'b' at row 2
1750 select * from federated.t1 order by a;
1751 a b c
1752 3 4 12
1753 5 6 30
1754 drop tables federated.t1, federated.t2;
1755 connection slave;
1756 drop table federated.t1;
1757 connection slave;
1758 create table federated.t1 (i1 int, i2 int, i3 int);
1759 create table federated.t2 (id int, c1 varchar(20), c2 varchar(20));
1760 connection master;
1761 create table federated.t1 (i1 int, i2 int, i3 int) ENGINE=FEDERATED CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1762 create table federated.t2 (id int, c1 varchar(20), c2 varchar(20)) ENGINE=FEDERATED CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t2';
1763 insert into federated.t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
1764 insert into federated.t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
1765 select * from federated.t1 order by i1;
1766 i1 i2 i3
1767 1 5 10
1768 2 2 2
1769 3 7 12
1770 4 5 2
1771 9 10 15
1772 select * from federated.t2;
1773 id c1 c2
1774 9 abc def
1775 5 opq lmn
1776 2 test t t test
1777 update federated.t1,federated.t2 set t1.i2=15, t2.c2="ppc" where t1.i1=t2.id;
1778 select * from federated.t1 order by i1;
1779 i1 i2 i3
1780 1 5 10
1781 2 15 2
1782 3 7 12
1783 4 5 2
1784 9 15 15
1785 select * from federated.t2 order by id;
1786 id c1 c2
1787 2 test t ppc
1788 5 opq lmn
1789 9 abc ppc
1790 delete federated.t1.*,federated.t2.* from federated.t1,federated.t2 where t1.i2=t2.id;
1791 select * from federated.t1 order by i1;
1792 i1 i2 i3
1793 2 15 2
1794 3 7 12
1795 9 15 15
1796 select * from federated.t2 order by id;
1797 id c1 c2
1798 2 test t ppc
1799 9 abc ppc
1800 drop table federated.t1, federated.t2;
1801 connection slave;
1802 drop table federated.t1, federated.t2;
1803 connection slave;
1804 create table federated.t1 (i1 int, i2 int, i3 int, primary key (i1));
1805 create table federated.t2 (id int, c1 varchar(20), c2 varchar(20), primary key (id));
1806 connection master;
1807 create table federated.t1 (i1 int auto_increment not null, i2 int, i3 int, primary key (i1)) ENGINE=FEDERATED CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1808 create table federated.t2 (id int auto_increment not null, c1 varchar(20), c2 varchar(20), primary key(id)) ENGINE=FEDERATED CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t2';
1809 insert into federated.t1 values (1,5,10),(3,7,12),(4,5,2),(9,10,15),(2,2,2);
1810 insert into federated.t2 values (9,"abc","def"),(5,"opq","lmn"),(2,"test t","t test");
1811 select * from federated.t1 order by i1;
1812 i1 i2 i3
1813 1 5 10
1814 2 2 2
1815 3 7 12
1816 4 5 2
1817 9 10 15
1818 select * from federated.t2 order by id;
1819 id c1 c2
1820 2 test t t test
1821 5 opq lmn
1822 9 abc def
1823 update federated.t1,federated.t2 set t1.i2=15, t2.c2="ppc" where t1.i1=t2.id;
1824 select * from federated.t1 order by i1;
1825 i1 i2 i3
1826 1 5 10
1827 2 15 2
1828 3 7 12
1829 4 5 2
1830 9 15 15
1831 select * from federated.t2 order by id;
1832 id c1 c2
1833 2 test t ppc
1834 5 opq lmn
1835 9 abc ppc
1836 delete federated.t1.*,federated.t2.* from federated.t1,federated.t2 where t1.i2=t2.id;
1837 select * from federated.t1 order by i1;
1838 i1 i2 i3
1839 2 15 2
1840 3 7 12
1841 9 15 15
1842 select * from federated.t2 order by id;
1843 id c1 c2
1844 2 test t ppc
1845 9 abc ppc
1846 drop table federated.t1, federated.t2;
1847 connection slave;
1848 drop table federated.t1, federated.t2;
1849 connection slave;
1850 create table t1 (id int not null auto_increment primary key, val int);
1851 connection master;
1852 create table t1
1853 (id int not null auto_increment primary key, val int) engine=federated
1854 connection='mysql://[email protected]:SLAVE_PORT/test/t1';
1855 insert into t1 values (1,0),(2,0);
1856 update t1 set val = NULL where id = 1;
1857 select * from t1;
1858 id val
1859 1 NULL
1860 2 0
1861 connection slave;
1862 select * from t1;
1863 id val
1864 1 NULL
1865 2 0
1866 drop table t1;
1867 connection master;
1868 drop table t1;
1869 connection slave;
1870 create table t1 (a longblob not null);
1871 connection master;
1872 create table t1
1873 (a longblob not null) engine=federated
1874 connection='mysql://[email protected]:SLAVE_PORT/test/t1';
1875 insert into t1 values (repeat('a',5000));
1876 select length(a) from t1;
1877 length(a)
1878 5000
1879 connection slave;
1880 select length(a) from t1;
1881 length(a)
1882 5000
1883 drop table t1;
1884 connection master;
1885 drop table t1;
1886 connection slave;
1887 set sql_mode="";
1888 DROP TABLE IF EXISTS federated.test;
1889 CREATE TABLE federated.test (
1890 `i` int(11) NOT NULL,
1891 `j` int(11) NOT NULL,
1892 `c` varchar(30) default NULL,
1893 PRIMARY KEY (`i`,`j`),
1894 UNIQUE KEY `i` (`i`,`c`)
1895 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
1896 set sql_mode=default;
1897 connection master;
1898 DROP TABLE IF EXISTS federated.test1;
1899 DROP TABLE IF EXISTS federated.test2;
1900 create table federated.test1 (
1901 i int not null,
1902 j int not null,
1903 c varchar(30),
1904 primary key (i,j),
1905 unique key (i, c))
1906 engine = federated
1907 connection='mysql://[email protected]:SLAVE_PORT/federated/test';
1908 create table federated.test2 (
1909 i int default null,
1910 j int not null,
1911 c varchar(30),
1912 key (i))
1913 engine = federated
1914 connection='mysql://[email protected]:SLAVE_PORT/federated/test';
1915 drop table federated.test1, federated.test2;
1916 connection slave;
1917 drop table federated.test;
1918 connection slave;
1919 set names utf8;
1920 create table federated.t1 (a varchar(64)) DEFAULT CHARSET=utf8;
1921 insert into federated.t1 values (0x6DC3A56E6164);
1922 select hex(a) from federated.t1;
1923 hex(a)
1924 6DC3A56E6164
1925 connection master;
1926 create table federated.t1 (a varchar(64))
1927 ENGINE=FEDERATED
1928 connection='mysql://[email protected]:SLAVE_PORT/federated/t1'
1929 DEFAULT CHARSET=utf8;
1930 set names utf8;
1931 select hex(a) from federated.t1;
1932 hex(a)
1933 6DC3A56E6164
1934 insert into federated.t1 values (0xC3A4C3B6C3BCC39F);
1935 insert into federated.t1 values (0xD18DD184D184D0B5D0BAD182D0B8D0B2D0BDD183D18E);
1936 select hex(a) from federated.t1;
1937 hex(a)
1938 6DC3A56E6164
1939 C3A4C3B6C3BCC39F
1940 D18DD184D184D0B5D0BAD182D0B8D0B2D0BDD183D18E
1941 connection slave;
1942 select hex(a) from federated.t1;
1943 hex(a)
1944 6DC3A56E6164
1945 C3A4C3B6C3BCC39F
1946 D18DD184D184D0B5D0BAD182D0B8D0B2D0BDD183D18E
1947 connection master;
1948 drop table federated.t1;
1949 connection slave;
1950 drop table federated.t1;
1951 connection slave;
1952 CREATE TABLE federated.t1 (
1953 categoryId int(11) NOT NULL AUTO_INCREMENT,
1954 domainId varchar(745) NOT NULL DEFAULT '',
1955 categoryName varchar(255) NOT NULL DEFAULT '',
1956 PRIMARY KEY (categoryId),
1957 UNIQUE KEY idx_unique_category_categoryName (domainId, categoryName),
1958 KEY idx_category_domainId (domainId)
1959 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1960 connection master;
1961 CREATE TABLE federated.t1 (
1962 categoryId int(11) NOT NULL AUTO_INCREMENT,
1963 domainId varchar(745) NOT NULL DEFAULT '',
1964 categoryName varchar(255) NOT NULL DEFAULT '',
1965 PRIMARY KEY (categoryId),
1966 UNIQUE KEY idx_unique_category_categoryName (domainId, categoryName),
1967 KEY idx_category_domainId (domainId)
1968 ) ENGINE=FEDERATED DEFAULT CHARSET=latin1
1969 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
1970 insert into federated.t1 (domainId, categoryName) values ( '1231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231231 300', '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 250');
1971 insert into federated.t1 (domainId, categoryName) values ( '12312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312312 301', '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 250');
1972 insert into federated.t1 (domainId, categoryName) values ('a', 'b');
1973 select categoryId from federated.t1 order by domainId, categoryName;
1974 categoryId
1975 1
1976 2
1977 3
1978 select categoryId from federated.t1 where domainId='a' and categoryName='b' order by categoryId;
1979 categoryId
1980 3
1981 select categoryId from federated.t1 where domainId='a' and categoryName='b' order by categoryId;
1982 categoryId
1983 3
1984 select categoryId from federated.t1 where domainId<>'a' and categoryName<>'b' order by categoryId;
1985 categoryId
1986 1
1987 2
1988 drop table federated.t1;
1989 connection slave;
1990 drop table federated.t1;
1991 connection slave;
1992 create table federated.t1 (a int primary key, b varchar(64))
1993 DEFAULT CHARSET=utf8;
1994 connection master;
1995 create table federated.t1 (a int primary key, b varchar(64))
1996 ENGINE=FEDERATED
1997 connection='mysql://[email protected]:SLAVE_PORT/federated/t1'
1998 DEFAULT CHARSET=utf8;
1999 insert ignore into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
2000 select * from federated.t1;
2001 a b
2002 1 Larry
2003 2 Curly
2004 truncate federated.t1;
2005 replace into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe");
2006 select * from federated.t1;
2007 a b
2008 1 Moe
2009 2 Curly
2010 update ignore federated.t1 set a=a+1;
2011 select * from federated.t1;
2012 a b
2013 1 Moe
2014 3 Curly
2015 drop table federated.t1;
2016 connection slave;
2017 drop table federated.t1;
2018 connection slave;
2019 create table federated.t1 (a int primary key, b varchar(64))
2020 DEFAULT CHARSET=utf8;
2021 connection master;
2022 create table federated.t1 (a int primary key, b varchar(64))
2023 ENGINE=FEDERATED
2024 connection='mysql://[email protected]:SLAVE_PORT/federated/t1'
2025 DEFAULT CHARSET=utf8;
2026 insert into federated.t1 values (1,"Larry"), (2,"Curly"), (1,"Moe")
2027 on duplicate key update a=a+100;
2028 ERROR 23000: Can't write; duplicate key in table 't1'
2029 select * from federated.t1;
2030 a b
2031 1 Larry
2032 2 Curly
2033 drop table federated.t1;
2034 connection slave;
2035 drop table federated.t1;
2036
2037 Bug#18287 create federated table always times out, error 1159 ' '
2038
2039 Test that self-references work
2040
2041 fix LOCK_open before reenabling test for Bug#18287
2042 connection slave;
2043 CREATE TABLE federated.t1 (a INT PRIMARY KEY) DEFAULT CHARSET=utf8;
2044 connection master;
2045 CREATE TABLE federated.t1 (a INT PRIMARY KEY)
2046 ENGINE=FEDERATED
2047 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1'
2048 DEFAULT CHARSET=utf8;
2049 SELECT transactions FROM information_schema.engines WHERE engine="FEDERATED";
2050 transactions
2051 YES
2052 INSERT INTO federated.t1 VALUES (1);
2053 SET autocommit=0;
2054 INSERT INTO federated.t1 VALUES (2);
2055 ROLLBACK;
2056 SET autocommit=1;
2057 SELECT * FROM federated.t1;
2058 a
2059 1
2060 2
2061 DROP TABLE federated.t1;
2062 connection slave;
2063 DROP TABLE federated.t1;
2064 connection slave;
2065 create table t1 (a varchar(256));
2066 drop view if exists v1;
2067 create view v1 as select a from t1;
2068 connection master;
2069 create table t1
2070 (a varchar(256)) engine=federated
2071 connection='mysql://[email protected]:SLAVE_PORT/test/v1';
2072 select 1 from t1 order by a;
2073 1
2074 1
2075 1
2076 1
2077 1
2078 1
2079 1
2080 1
2081 1
2082 1
2083 1
2084 1
2085 1
2086 1
2087 1
2088 1
2089 1
2090 1
2091 1
2092 1
2093 1
2094 1
2095 1
2096 1
2097 1
2098 1
2099 1
2100 1
2101 1
2102 1
2103 1
2104 1
2105 1
2106 1
2107 1
2108 1
2109 1
2110 1
2111 1
2112 1
2113 1
2114 1
2115 1
2116 1
2117 1
2118 1
2119 1
2120 1
2121 1
2122 1
2123 1
2124 1
2125 1
2126 1
2127 1
2128 1
2129 1
2130 1
2131 1
2132 1
2133 1
2134 1
2135 1
2136 1
2137 1
2138 1
2139 1
2140 1
2141 1
2142 1
2143 1
2144 1
2145 1
2146 1
2147 1
2148 1
2149 1
2150 1
2151 1
2152 1
2153 1
2154 1
2155 1
2156 1
2157 1
2158 1
2159 1
2160 1
2161 1
2162 1
2163 1
2164 1
2165 1
2166 1
2167 1
2168 1
2169 1
2170 1
2171 1
2172 1
2173 1
2174 drop table t1;
2175 connection slave;
2176 drop table t1;
2177 drop view v1;
2178 connection slave;
2179 CREATE TABLE t1 (a INT, b INT, KEY(a,b));
2180 INSERT INTO t1 VALUES(NULL,1),(1,NULL),(NULL,NULL),(1,1),(2,2);
2181 connection master;
2182 CREATE TABLE t1 (a INT, b INT, KEY(a,b)) ENGINE=federated
2183 CONNECTION='mysql://[email protected]:SLAVE_PORT/test/t1';
2184 SELECT * FROM t1 WHERE a IS NULL;
2185 a b
2186 NULL NULL
2187 NULL 1
2188 SELECT * FROM t1 WHERE a IS NOT NULL;
2189 a b
2190 1 NULL
2191 1 1
2192 2 2
2193 SELECT * FROM t1 WHERE a=1 AND b=1;
2194 a b
2195 1 1
2196 SELECT * FROM t1 WHERE a IS NULL AND b=1;
2197 a b
2198 NULL 1
2199 SELECT * FROM t1 WHERE a IS NOT NULL AND b=1;
2200 a b
2201 1 1
2202 DROP TABLE t1;
2203 connection slave;
2204 DROP TABLE t1;
2205 CREATE TABLE t1 (a INT) ENGINE=federated CONNECTION='mysql://@:://';
2206 DROP TABLE t1;
2207 connection slave;
2208 CREATE TABLE t1 (a LONGBLOB, b LONGBLOB);
2209 INSERT INTO t1 VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaa', NULL);
2210 connection master;
2211 CREATE TABLE t1
2212 (a LONGBLOB, b LONGBLOB) ENGINE=FEDERATED
2213 CONNECTION='mysql://[email protected]:SLAVE_PORT/test/t1';
2214 CHECKSUM TABLE t1;
2215 Table Checksum
2216 test.t1 2465757603
2217 connection slave;
2218 DROP TABLE t1;
2219 connection master;
2220 DROP TABLE t1;
2221 connection slave;
2222 CREATE TABLE t1 (a TEXT, b TEXT, KEY(b(1)));
2223 INSERT INTO t1 VALUES (NULL, NULL), (NULL, NULL), (NULL, NULL), (NULL, NULL);
2224 connection master;
2225 CREATE TABLE t1
2226 (a TEXT, b TEXT, KEY(b(1))) ENGINE=FEDERATED
2227 CONNECTION='mysql://[email protected]:SLAVE_PORT/test/t1';
2228 SELECT t1.a FROM t1, t1 as t2 WHERE t2.b NOT LIKE t1.b;
2229 a
2230 connection slave;
2231 DROP TABLE t1;
2232 connection master;
2233 DROP TABLE t1;
2234 #
2235 # BUG#21360 - mysqldump error on federated tables
2236 #
2237 connection slave;
2238 #Switch to Connection Slave
2239 CREATE TABLE t1(id VARCHAR(20) NOT NULL, PRIMARY KEY(id));
2240 INSERT INTO t1 VALUES ('text1'),('text2'),('text3'),('text4');
2241 connection master;
2242 #Switch to Connection Master
2243 CREATE TABLE t1(id VARCHAR(20) NOT NULL, PRIMARY KEY(id)) ENGINE=FEDERATED
2244 CONNECTION='mysql://[email protected]:SLAVE_PORT/test/t1';
2245 # Dump table t1 using mysqldump tool
2246 /*M!999999\- enable the sandbox mode */
2247 /*!40101 SET @saved_cs_client = @@character_set_client */;
2248 /*!40101 SET character_set_client = utf8mb4 */;
2249 CREATE TABLE `t1` (
2250 `id` varchar(20) NOT NULL,
2251 PRIMARY KEY (`id`)
2252 ) ENGINE=FEDERATED DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci CONNECTION='mysql://[email protected]:SLAVE_PORT/test/t1';
2253 /*!40101 SET character_set_client = @saved_cs_client */;
2254 DROP TABLE t1;
2255 connection slave;
2256 #Switch to Connection Slave
2257 DROP TABLE t1;
2258 connection default;
2259 End of 5.0 tests
2260 create server 's1' foreign data wrapper 'mysql' options (host 'foo');
2261 drop server 's1';
2262 #
2263 # Bug #32426: FEDERATED query returns corrupt results for ORDER BY on a TEXT
2264 #
2265 connection slave;
2266 CREATE TABLE federated.t1(a TEXT);
2267 INSERT INTO federated.t1 VALUES('abc'), ('gh'), ('f'), ('ijk'), ('de');
2268 connection master;
2269 CREATE TABLE federated.t1(a TEXT) ENGINE=FEDERATED
2270 CONNECTION='mysql://[email protected]:SLAVE_PORT/federated/t1';
2271 DROP TABLE federated.t1;
2272 connection slave;
2273 DROP TABLE federated.t1;
2274 connection default;
2275 End of 5.1 tests
2276 SET @@GLOBAL.CONCURRENT_INSERT= @OLD_MASTER_CONCURRENT_INSERT;
2277 connection slave;
2278 SET @@GLOBAL.CONCURRENT_INSERT= @OLD_SLAVE_CONCURRENT_INSERT;
2279 connection default;
2280 #
2281 # MDEV-9346 - The federatedx and spider engine make mysqld crash when
2282 # they are configured withtout username
2283 #
2284 connection master;
2285 CREATE TABLE t1 (a INT) ENGINE=FEDERATED CONNECTION='mysql://@127.0.0.1:SLAVE_PORT/federated/t1';
2286 ERROR HY000: Can't create federated table. Foreign data src error: database: 'federated' username: '' hostname: '127.0.0.1'
2287 #
2288 # MDEV-17573 Assertion in federatedx on multi-update
2289 #
2290 create table t1 (
2291 x int,
2292 d datetime);
2293 create table t1f engine=FEDERATED connection='mysql://[email protected]:MASTER_MYPORT/test/t1';
2294 create table t2 (
2295 x int, y int,
2296 d datetime);
2297 create table t2f engine=FEDERATED connection='mysql://[email protected]:MASTER_MYPORT/test/t2';
2298 create table t3 (
2299 x int, y int, z int,
2300 d datetime);
2301 create table t3f engine=FEDERATED connection='mysql://[email protected]:MASTER_MYPORT/test/t3';
2302 insert into t1 values (1, "1990-01-01 00:00");
2303 insert into t1 values (1, "1991-01-01 11:11");
2304 insert into t2 values (2, 2, "1992-02-02 22:22");
2305 insert into t3 values (3, 3, 3, "1993-03-03 23:33");
2306 update t1f, t2f, t3f set t1f.x= 11, t2f.y= 22, t3f.z= 33;
2307 drop table t1f;
2308 drop table t2f;
2309 drop table t3f;
2310 drop table t1;
2311 drop table t2;
2312 drop table t3;
2313 #
2314 # MDEV-21049 Segfault in create federatedx table with empty hostname
2315 #
2316 connection master;
2317 CREATE TABLE federated.t1 (x int) ENGINE=FEDERATED
2318 CONNECTION='mysql://root@:SLAVE_PORT/federated/t1';
2319 ERROR HY000: Can't create federated table. Foreign data src error: database: 'federated' username: 'root' hostname: 'localhost'
2320 connection slave;
2321 CREATE TABLE federated.t1(x int);
2322 connection master;
2323 CREATE TABLE federated.t1 (x int) ENGINE=FEDERATED
2324 CONNECTION='mysql://root@:SLAVE_PORT/federated/t1';
2325 DROP TABLE federated.t1;
2326 connection slave;
2327 DROP TABLE federated.t1;
2328 connection default;
2329 #
2330 # MDEV-30395 Wrong result with semijoin and Federated as outer table
2331 #
2332 create server s foreign data wrapper mysql options (host "127.0.0.1", database "test", user "root", port MASTER_PORT);
2333 CREATE TABLE t1 (a INT);
2334 INSERT INTO t1 VALUES (3),(2),(3);
2335 CREATE TABLE t2 (pk INT PRIMARY KEY);
2336 INSERT INTO t2 VALUES (1),(2),(3),(4);
2337 set @save_optimizer_switch=@@optimizer_switch;
2338 set optimizer_switch="materialization=off";
2339 CREATE TABLE t2_fed ENGINE=FEDERATED CONNECTION='s/t2';
2340 explain SELECT * FROM t2_fed WHERE pk IN ( SELECT a FROM t1 );
2341 id select_type table type possible_keys key key_len ref rows Extra
2342 1 PRIMARY t2_fed ALL NULL NULL NULL NULL 4 Using where
2343 2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 Using where
2344 SELECT * FROM t2_fed WHERE pk IN ( SELECT a FROM t1 );
2345 pk
2346 2
2347 3
2348 SET optimizer_switch='semijoin=off';
2349 explain SELECT * FROM t2_fed WHERE pk IN ( SELECT a FROM t1 );
2350 id select_type table type possible_keys key key_len ref rows Extra
2351 1 PRIMARY t2_fed ALL NULL NULL NULL NULL 4 Using where
2352 2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 3 Using where
2353 SELECT * FROM t2_fed WHERE pk IN ( SELECT a FROM t1 );
2354 pk
2355 2
2356 3
2357 DROP TABLE t2_fed, t1, t2;
2358 set @@optimizer_switch=@save_optimizer_switch;
2359 DROP SERVER s;
2360 # End of 10.5 tests
2361 #
2362 # MDEV-30569: Assertion ...ha_table_flags() failed in Duplicate_weedout_picker::check_qep
2363 #
2364 create server s foreign data wrapper mysql options
2365 (host "127.0.0.1", database "test", user "root", port $MASTER_MYPORT);
2366 CREATE TABLE t1 (a INT);
2367 INSERT INTO t1 VALUES (1),(2);
2368 CREATE TABLE t2 (b INT);
2369 INSERT INTO t2 VALUES (3),(4);
2370 CREATE TABLE t1_fed ENGINE=FEDERATED CONNECTION='s/t1';
2371 CREATE VIEW v AS SELECT * FROM t1_fed;
2372 SELECT * FROM v WHERE a IN ( SELECT b FROM t2);
2373 a
2374 DROP VIEW v;
2375 DROP TABLE t1_fed, t1, t2;
2376 DROP SERVER s;
2377 # End of 11.0 tests
2378 #
2379 # MDEV-35184 Corruption errors upon creation or usage of Federated table with vector key
2380 #
2381 create server s foreign data wrapper mysql options (host "127.0.0.1", database "test", user "root", port $MASTER_MYPORT);
2382 create table t1 (a vector(1) not null, vector(a));
2383 create table t1_fed1 engine=federated connection = 's/t1';
2384 ERROR HY000: Table storage engine 'FEDERATEDX' does not support the create option 'VECTOR'
2385 create table t1_fed2 (a vector(1) not null, vector(a)) engine=federated connection = 's/t1';
2386 ERROR HY000: Table storage engine 'FEDERATEDX' does not support the create option 'VECTOR'
2387 drop table t1;
2388 drop server s;
2389 # End of 11.8 tests
2390 connection master;
2391 DROP TABLE IF EXISTS federated.t1;
2392 DROP DATABASE IF EXISTS federated;
2393 connection slave;
2394 DROP TABLE IF EXISTS federated.t1;
2395 DROP DATABASE IF EXISTS federated;