Debian Codegraph @

mysql-test/suite/federated/r/federated.result

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