~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
--disable_warnings
2
DROP TABLE IF EXISTS t1, `"t"1`, t1aa, t2, t2aa, t3;
3
drop database if exists mysqldump_test_db;
4
drop database if exists db1;
5
drop database if exists db2;
6
--enable_warnings
7
8
--echo #
9
--echo # Bug #2005
10
--echo #
11
12
CREATE TABLE t1 (a decimal(64, 20));
13
INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
14
("0987654321098765432109876543210987654321");
15
--exec $DRIZZLE_DUMP --compact test t1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
16
DROP TABLE t1;
1 by brian
clean slate
17
18
--echo #
19
--echo # Bug #2592 'mysqldump doesn't quote "tricky" names correctly'
20
--echo #
21
22
create table ```a` (i int);
23
--exec $DRIZZLE_DUMP --compact test
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
24
drop table ```a`;
1 by brian
clean slate
25
26
--echo #
1008.3.13 by Stewart Smith
fix mysqldump test to work with drizzle -> drizzledump.test
27
--echo # Bug #6101: create database problem
1 by brian
clean slate
28
--echo #
29
30
--exec $DRIZZLE_DUMP --skip-comments --databases test
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
31
1 by brian
clean slate
32
#
685.4.28 by Jay Pipes
Fixes for mysqldump.test. Not enabling it because there is a bug.
33
# @TODO Implement collation checking for UTF8 + collations
34
#
35
create database mysqldump_test_db collate utf8_esperanto_ci;
1008.3.13 by Stewart Smith
fix mysqldump test to work with drizzle -> drizzledump.test
36
--exec $DRIZZLE_DUMP --skip-comments --databases mysqldump_test_db
37
drop database mysqldump_test_db;
38
1 by brian
clean slate
39
--echo #
40
--echo # Bug #7020
41
--echo # Check that we don't dump in UTF8 in compatible mode by default,
42
--echo # but use the default compiled values, or the values given in
43
--echo # --default-character-set=xxx. However, we should dump in UTF8
44
--echo # if it is explicitely set.
45
46
47
--echo #
48
--echo # WL #2319: Exclude Tables from dump
49
--echo #
50
51
CREATE TABLE t1 (a int);
52
CREATE TABLE t2 (a int);
53
INSERT INTO t1 VALUES (1),(2),(3);
54
INSERT INTO t2 VALUES (4),(5),(6);
55
--exec $DRIZZLE_DUMP --skip-comments --ignore-table=test.t1 test
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
56
DROP TABLE t1;
1 by brian
clean slate
57
DROP TABLE t2;
58
59
--echo #
60
--echo #  Bug  #8830
61
--echo #
62
63
CREATE TABLE t1 (`b` blob);
64
INSERT INTO `t1` VALUES (0x602010000280100005E71A);
65
--exec $DRIZZLE_DUMP --skip-extended-insert test --skip-comments t1
1779.3.3 by Andrew Hutchings
Fix Drizzledump tests after removal of --hex-blob
66
DROP TABLE t1;
1 by brian
clean slate
67
68
--echo #
69
--echo # Test for --insert-ignore
70
--echo #
71
72
CREATE TABLE t1 (a int);
73
INSERT INTO t1 VALUES (1),(2),(3);
74
INSERT INTO t1 VALUES (4),(5),(6);
75
--exec $DRIZZLE_DUMP --skip-comments --insert-ignore test t1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
76
DROP TABLE t1;
1 by brian
clean slate
77
78
--echo #
79
--echo # Bug #10286: mysqldump -c crashes on table that has many fields with long
80
--echo # names
81
--echo # 
82
create table t1 (
83
 F_c4ca4238a0b923820dcc509a6f75849b int,
84
 F_c81e728d9d4c2f636f067f89cc14862c int,
85
 F_eccbc87e4b5ce2fe28308fd9f2a7baf3 int,
86
 F_a87ff679a2f3e71d9181a67b7542122c int,
87
 F_e4da3b7fbbce2345d7772b0674a318d5 int,
88
 F_1679091c5a880faf6fb5e6087eb1b2dc int,
89
 F_8f14e45fceea167a5a36dedd4bea2543 int,
90
 F_c9f0f895fb98ab9159f51fd0297e236d int,
91
 F_45c48cce2e2d7fbdea1afc51c7c6ad26 int,
92
 F_d3d9446802a44259755d38e6d163e820 int,
93
 F_6512bd43d9caa6e02c990b0a82652dca int,
94
 F_c20ad4d76fe97759aa27a0c99bff6710 int,
95
 F_c51ce410c124a10e0db5e4b97fc2af39 int,
96
 F_aab3238922bcc25a6f606eb525ffdc56 int,
97
 F_9bf31c7ff062936a96d3c8bd1f8f2ff3 int,
98
 F_c74d97b01eae257e44aa9d5bade97baf int,
99
 F_70efdf2ec9b086079795c442636b55fb int,
100
 F_6f4922f45568161a8cdf4ad2299f6d23 int,
101
 F_1f0e3dad99908345f7439f8ffabdffc4 int,
102
 F_98f13708210194c475687be6106a3b84 int,
103
 F_3c59dc048e8850243be8079a5c74d079 int,
104
 F_b6d767d2f8ed5d21a44b0e5886680cb9 int,
105
 F_37693cfc748049e45d87b8c7d8b9aacd int,
106
 F_1ff1de774005f8da13f42943881c655f int,
107
 F_8e296a067a37563370ded05f5a3bf3ec int,
108
 F_4e732ced3463d06de0ca9a15b6153677 int,
109
 F_02e74f10e0327ad868d138f2b4fdd6f0 int,
110
 F_33e75ff09dd601bbe69f351039152189 int,
111
 F_6ea9ab1baa0efb9e19094440c317e21b int,
112
 F_34173cb38f07f89ddbebc2ac9128303f int,
113
 F_c16a5320fa475530d9583c34fd356ef5 int,
114
 F_6364d3f0f495b6ab9dcf8d3b5c6e0b01 int,
115
 F_182be0c5cdcd5072bb1864cdee4d3d6e int,
116
 F_e369853df766fa44e1ed0ff613f563bd int,
117
 F_1c383cd30b7c298ab50293adfecb7b18 int,
118
 F_19ca14e7ea6328a42e0eb13d585e4c22 int,
119
 F_a5bfc9e07964f8dddeb95fc584cd965d int,
120
 F_a5771bce93e200c36f7cd9dfd0e5deaa int,
121
 F_d67d8ab4f4c10bf22aa353e27879133c int,
122
 F_d645920e395fedad7bbbed0eca3fe2e0 int,
123
 F_3416a75f4cea9109507cacd8e2f2aefc int,
124
 F_a1d0c6e83f027327d8461063f4ac58a6 int,
125
 F_17e62166fc8586dfa4d1bc0e1742c08b int,
126
 F_f7177163c833dff4b38fc8d2872f1ec6 int,
127
 F_6c8349cc7260ae62e3b1396831a8398f int,
128
 F_d9d4f495e875a2e075a1a4a6e1b9770f int,
129
 F_67c6a1e7ce56d3d6fa748ab6d9af3fd7 int,
130
 F_642e92efb79421734881b53e1e1b18b6 int,
131
 F_f457c545a9ded88f18ecee47145a72c0 int,
132
 F_c0c7c76d30bd3dcaefc96f40275bdc0a int,
133
 F_2838023a778dfaecdc212708f721b788 int,
134
 F_9a1158154dfa42caddbd0694a4e9bdc8 int,
135
 F_d82c8d1619ad8176d665453cfb2e55f0 int,
136
 F_a684eceee76fc522773286a895bc8436 int,
137
 F_b53b3a3d6ab90ce0268229151c9bde11 int,
138
 F_9f61408e3afb633e50cdf1b20de6f466 int,
139
 F_72b32a1f754ba1c09b3695e0cb6cde7f int,
140
 F_66f041e16a60928b05a7e228a89c3799 int,
141
 F_093f65e080a295f8076b1c5722a46aa2 int,
142
 F_072b030ba126b2f4b2374f342be9ed44 int,
143
 F_7f39f8317fbdb1988ef4c628eba02591 int,
144
 F_44f683a84163b3523afe57c2e008bc8c int,
145
 F_03afdbd66e7929b125f8597834fa83a4 int,
146
 F_ea5d2f1c4608232e07d3aa3d998e5135 int,
147
 F_fc490ca45c00b1249bbe3554a4fdf6fb int,
148
 F_3295c76acbf4caaed33c36b1b5fc2cb1 int,
149
 F_735b90b4568125ed6c3f678819b6e058 int,
150
 F_a3f390d88e4c41f2747bfa2f1b5f87db int,
151
 F_14bfa6bb14875e45bba028a21ed38046 int,
152
 F_7cbbc409ec990f19c78c75bd1e06f215 int,
153
 F_e2c420d928d4bf8ce0ff2ec19b371514 int,
154
 F_32bb90e8976aab5298d5da10fe66f21d int,
155
 F_d2ddea18f00665ce8623e36bd4e3c7c5 int,
156
 F_ad61ab143223efbc24c7d2583be69251 int,
157
 F_d09bf41544a3365a46c9077ebb5e35c3 int,
158
 F_fbd7939d674997cdb4692d34de8633c4 int,
159
 F_28dd2c7955ce926456240b2ff0100bde int,
160
 F_35f4a8d465e6e1edc05f3d8ab658c551 int,
161
 F_d1fe173d08e959397adf34b1d77e88d7 int,
162
 F_f033ab37c30201f73f142449d037028d int,
163
 F_43ec517d68b6edd3015b3edc9a11367b int,
164
 F_9778d5d219c5080b9a6a17bef029331c int,
165
 F_fe9fc289c3ff0af142b6d3bead98a923 int,
166
 F_68d30a9594728bc39aa24be94b319d21 int,
167
 F_3ef815416f775098fe977004015c6193 int,
168
 F_93db85ed909c13838ff95ccfa94cebd9 int,
169
 F_c7e1249ffc03eb9ded908c236bd1996d int,
170
 F_2a38a4a9316c49e5a833517c45d31070 int,
171
 F_7647966b7343c29048673252e490f736 int,
172
 F_8613985ec49eb8f757ae6439e879bb2a int,
173
 F_54229abfcfa5649e7003b83dd4755294 int,
174
 F_92cc227532d17e56e07902b254dfad10 int,
175
 F_98dce83da57b0395e163467c9dae521b int,
176
 F_f4b9ec30ad9f68f89b29639786cb62ef int,
177
 F_812b4ba287f5ee0bc9d43bbf5bbe87fb int,
178
 F_26657d5ff9020d2abefe558796b99584 int,
179
 F_e2ef524fbf3d9fe611d5a8e90fefdc9c int,
180
 F_ed3d2c21991e3bef5e069713af9fa6ca int,
181
 F_ac627ab1ccbdb62ec96e702f07f6425b int,
182
 F_f899139df5e1059396431415e770c6dd int,
183
 F_38b3eff8baf56627478ec76a704e9b52 int,
184
 F_ec8956637a99787bd197eacd77acce5e int,
185
 F_6974ce5ac660610b44d9b9fed0ff9548 int,
186
 F_c9e1074f5b3f9fc8ea15d152add07294 int,
187
 F_65b9eea6e1cc6bb9f0cd2a47751a186f int,
188
 F_f0935e4cd5920aa6c7c996a5ee53a70f int,
189
 F_a97da629b098b75c294dffdc3e463904 int,
190
 F_a3c65c2974270fd093ee8a9bf8ae7d0b int,
191
 F_2723d092b63885e0d7c260cc007e8b9d int,
192
 F_5f93f983524def3dca464469d2cf9f3e int,
193
 F_698d51a19d8a121ce581499d7b701668 int,
194
 F_7f6ffaa6bb0b408017b62254211691b5 int,
195
 F_73278a4a86960eeb576a8fd4c9ec6997 int,
196
 F_5fd0b37cd7dbbb00f97ba6ce92bf5add int,
197
 F_2b44928ae11fb9384c4cf38708677c48 int,
198
 F_c45147dee729311ef5b5c3003946c48f int,
199
 F_eb160de1de89d9058fcb0b968dbbbd68 int,
200
 F_5ef059938ba799aaa845e1c2e8a762bd int,
201
 F_07e1cd7dca89a1678042477183b7ac3f int,
202
 F_da4fb5c6e93e74d3df8527599fa62642 int,
203
 F_4c56ff4ce4aaf9573aa5dff913df997a int,
204
 F_a0a080f42e6f13b3a2df133f073095dd int,
205
 F_202cb962ac59075b964b07152d234b70 int,
206
 F_c8ffe9a587b126f152ed3d89a146b445 int,
207
 F_3def184ad8f4755ff269862ea77393dd int,
208
 F_069059b7ef840f0c74a814ec9237b6ec int,
209
 F_ec5decca5ed3d6b8079e2e7e7bacc9f2 int,
210
 F_76dc611d6ebaafc66cc0879c71b5db5c int,
211
 F_d1f491a404d6854880943e5c3cd9ca25 int,
212
 F_9b8619251a19057cff70779273e95aa6 int,
213
 F_1afa34a7f984eeabdbb0a7d494132ee5 int,
214
 F_65ded5353c5ee48d0b7d48c591b8f430 int,
215
 F_9fc3d7152ba9336a670e36d0ed79bc43 int,
216
 F_02522a2b2726fb0a03bb19f2d8d9524d int,
217
 F_7f1de29e6da19d22b51c68001e7e0e54 int,
218
 F_42a0e188f5033bc65bf8d78622277c4e int,
219
 F_3988c7f88ebcb58c6ce932b957b6f332 int,
220
 F_013d407166ec4fa56eb1e1f8cbe183b9 int,
221
 F_e00da03b685a0dd18fb6a08af0923de0 int,
222
 F_1385974ed5904a438616ff7bdb3f7439 int,
223
 F_0f28b5d49b3020afeecd95b4009adf4c int,
224
 F_a8baa56554f96369ab93e4f3bb068c22 int,
225
 F_903ce9225fca3e988c2af215d4e544d3 int,
226
 F_0a09c8844ba8f0936c20bd791130d6b6 int,
227
 F_2b24d495052a8ce66358eb576b8912c8 int,
228
 F_a5e00132373a7031000fd987a3c9f87b int,
229
 F_8d5e957f297893487bd98fa830fa6413 int,
230
 F_47d1e990583c9c67424d369f3414728e int,
231
 F_f2217062e9a397a1dca429e7d70bc6ca int,
232
 F_7ef605fc8dba5425d6965fbd4c8fbe1f int,
233
 F_a8f15eda80c50adb0e71943adc8015cf int,
234
 F_37a749d808e46495a8da1e5352d03cae int,
235
 F_b3e3e393c77e35a4a3f3cbd1e429b5dc int,
236
 F_1d7f7abc18fcb43975065399b0d1e48e int,
237
 F_2a79ea27c279e471f4d180b08d62b00a int,
238
 F_1c9ac0159c94d8d0cbedc973445af2da int,
239
 F_6c4b761a28b734fe93831e3fb400ce87 int,
240
 F_06409663226af2f3114485aa4e0a23b4 int,
241
 F_140f6969d5213fd0ece03148e62e461e int,
242
 F_b73ce398c39f506af761d2277d853a92 int,
243
 F_bd4c9ab730f5513206b999ec0d90d1fb int,
244
 F_82aa4b0af34c2313a562076992e50aa3 int,
245
 F_0777d5c17d4066b82ab86dff8a46af6f int,
246
 F_fa7cdfad1a5aaf8370ebeda47a1ff1c3 int,
247
 F_9766527f2b5d3e95d4a733fcfb77bd7e int,
248
 F_7e7757b1e12abcb736ab9a754ffb617a int,
249
 F_5878a7ab84fb43402106c575658472fa int,
250
 F_006f52e9102a8d3be2fe5614f42ba989 int,
251
 F_3636638817772e42b59d74cff571fbb3 int,
252
 F_149e9677a5989fd342ae44213df68868 int,
253
 F_a4a042cf4fd6bfb47701cbc8a1653ada int,
254
 F_1ff8a7b5dc7a7d1f0ed65aaa29c04b1e int,
255
 F_f7e6c85504ce6e82442c770f7c8606f0 int,
256
 F_bf8229696f7a3bb4700cfddef19fa23f int,
257
 F_82161242827b703e6acf9c726942a1e4 int,
258
 F_38af86134b65d0f10fe33d30dd76442e int,
259
 F_96da2f590cd7246bbde0051047b0d6f7 int,
260
 F_8f85517967795eeef66c225f7883bdcb int,
261
 F_8f53295a73878494e9bc8dd6c3c7104f int,
262
 F_045117b0e0a11a242b9765e79cbf113f int,
263
 F_fc221309746013ac554571fbd180e1c8 int,
264
 F_4c5bde74a8f110656874902f07378009 int,
265
 F_cedebb6e872f539bef8c3f919874e9d7 int,
266
 F_6cdd60ea0045eb7a6ec44c54d29ed402 int,
267
 F_eecca5b6365d9607ee5a9d336962c534 int,
268
 F_9872ed9fc22fc182d371c3e9ed316094 int,
269
 F_31fefc0e570cb3860f2a6d4b38c6490d int,
270
 F_9dcb88e0137649590b755372b040afad int,
271
 F_a2557a7b2e94197ff767970b67041697 int,
272
 F_cfecdb276f634854f3ef915e2e980c31 int,
273
 F_0aa1883c6411f7873cb83dacb17b0afc int,
274
 F_58a2fc6ed39fd083f55d4182bf88826d int,
275
 F_bd686fd640be98efaae0091fa301e613 int,
276
 F_a597e50502f5ff68e3e25b9114205d4a int,
277
 F_0336dcbab05b9d5ad24f4333c7658a0e int,
278
 F_084b6fbb10729ed4da8c3d3f5a3ae7c9 int,
279
 F_85d8ce590ad8981ca2c8286f79f59954 int,
280
 F_0e65972dce68dad4d52d063967f0a705 int,
281
 F_84d9ee44e457ddef7f2c4f25dc8fa865 int,
282
 F_3644a684f98ea8fe223c713b77189a77 int,
283
 F_757b505cfd34c64c85ca5b5690ee5293 int,
284
 F_854d6fae5ee42911677c739ee1734486 int,
285
 F_e2c0be24560d78c5e599c2a9c9d0bbd2 int,
286
 F_274ad4786c3abca69fa097b85867d9a4 int,
287
 F_eae27d77ca20db309e056e3d2dcd7d69 int,
288
 F_7eabe3a1649ffa2b3ff8c02ebfd5659f int,
289
 F_69adc1e107f7f7d035d7baf04342e1ca int,
290
 F_091d584fced301b442654dd8c23b3fc9 int,
291
 F_b1d10e7bafa4421218a51b1e1f1b0ba2 int,
292
 F_6f3ef77ac0e3619e98159e9b6febf557 int,
293
 F_eb163727917cbba1eea208541a643e74 int,
294
 F_1534b76d325a8f591b52d302e7181331 int,
295
 F_979d472a84804b9f647bc185a877a8b5 int,
296
 F_ca46c1b9512a7a8315fa3c5a946e8265 int,
297
 F_3b8a614226a953a8cd9526fca6fe9ba5 int,
298
 F_45fbc6d3e05ebd93369ce542e8f2322d int,
299
 F_63dc7ed1010d3c3b8269faf0ba7491d4 int,
300
 F_e96ed478dab8595a7dbda4cbcbee168f int,
301
 F_c0e190d8267e36708f955d7ab048990d int,
302
 F_ec8ce6abb3e952a85b8551ba726a1227 int,
303
 F_060ad92489947d410d897474079c1477 int,
304
 F_bcbe3365e6ac95ea2c0343a2395834dd int,
305
 F_115f89503138416a242f40fb7d7f338e int,
306
 F_13fe9d84310e77f13a6d184dbf1232f3 int,
307
 F_d1c38a09acc34845c6be3a127a5aacaf int,
308
 F_9cfdf10e8fc047a44b08ed031e1f0ed1 int,
309
 F_705f2172834666788607efbfca35afb3 int,
310
 F_74db120f0a8e5646ef5a30154e9f6deb int,
311
 F_57aeee35c98205091e18d1140e9f38cf int,
312
 F_6da9003b743b65f4c0ccd295cc484e57 int,
313
 F_9b04d152845ec0a378394003c96da594 int,
314
 F_be83ab3ecd0db773eb2dc1b0a17836a1 int,
315
 F_e165421110ba03099a1c0393373c5b43 int,
316
 F_289dff07669d7a23de0ef88d2f7129e7 int,
317
 F_577ef1154f3240ad5b9b413aa7346a1e int,
318
 F_01161aaa0b6d1345dd8fe4e481144d84 int,
319
 F_539fd53b59e3bb12d203f45a912eeaf2 int,
320
 F_ac1dd209cbcc5e5d1c6e28598e8cbbe8 int,
321
 F_555d6702c950ecb729a966504af0a635 int,
322
 F_335f5352088d7d9bf74191e006d8e24c int,
323
 F_f340f1b1f65b6df5b5e3f94d95b11daf int,
324
 F_e4a6222cdb5b34375400904f03d8e6a5 int,
325
 F_cb70ab375662576bd1ac5aaf16b3fca4 int,
326
 F_9188905e74c28e489b44e954ec0b9bca int,
327
 F_0266e33d3f546cb5436a10798e657d97 int,
328
 F_38db3aed920cf82ab059bfccbd02be6a int,
329
 F_3cec07e9ba5f5bb252d13f5f431e4bbb int,
330
 F_621bf66ddb7c962aa0d22ac97d69b793 int,
331
 F_077e29b11be80ab57e1a2ecabb7da330 int,
332
 F_6c9882bbac1c7093bd25041881277658 int,
333
 F_19f3cd308f1455b3fa09a282e0d496f4 int,
334
 F_03c6b06952c750899bb03d998e631860 int,
335
 F_c24cd76e1ce41366a4bbe8a49b02a028 int,
336
 F_c52f1bd66cc19d05628bd8bf27af3ad6 int,
337
 F_fe131d7f5a6b38b23cc967316c13dae2 int,
338
 F_f718499c1c8cef6730f9fd03c8125cab int,
339
 F_d96409bf894217686ba124d7356686c9 int,
340
 F_502e4a16930e414107ee22b6198c578f int,
341
 F_cfa0860e83a4c3a763a7e62d825349f7 int,
342
 F_a4f23670e1833f3fdb077ca70bbd5d66 int,
343
 F_b1a59b315fc9a3002ce38bbe070ec3f5 int,
344
 F_36660e59856b4de58a219bcf4e27eba3 int,
345
 F_8c19f571e251e61cb8dd3612f26d5ecf int,
346
 F_d6baf65e0b240ce177cf70da146c8dc8 int,
347
 F_e56954b4f6347e897f954495eab16a88 int,
348
 F_f7664060cc52bc6f3d620bcedc94a4b6 int,
349
 F_eda80a3d5b344bc40f3bc04f65b7a357 int,
350
 F_8f121ce07d74717e0b1f21d122e04521 int,
351
 F_06138bc5af6023646ede0e1f7c1eac75 int,
352
 F_39059724f73a9969845dfe4146c5660e int,
353
 F_7f100b7b36092fb9b06dfb4fac360931 int,
354
 F_7a614fd06c325499f1680b9896beedeb int,
355
 F_4734ba6f3de83d861c3176a6273cac6d int,
356
 F_d947bf06a885db0d477d707121934ff8 int,
357
 F_63923f49e5241343aa7acb6a06a751e7 int,
358
 F_db8e1af0cb3aca1ae2d0018624204529 int,
359
 F_20f07591c6fcb220ffe637cda29bb3f6 int,
360
 F_07cdfd23373b17c6b337251c22b7ea57 int,
361
 F_d395771085aab05244a4fb8fd91bf4ee int,
362
 F_92c8c96e4c37100777c7190b76d28233 int,
363
 F_e3796ae838835da0b6f6ea37bcf8bcb7 int,
364
 F_6a9aeddfc689c1d0e3b9ccc3ab651bc5 int,
365
 F_0f49c89d1e7298bb9930789c8ed59d48 int,
366
 F_46ba9f2a6976570b0353203ec4474217 int,
367
 F_0e01938fc48a2cfb5f2217fbfb00722d int,
368
 F_16a5cdae362b8d27a1d8f8c7b78b4330 int,
369
 F_918317b57931b6b7a7d29490fe5ec9f9 int,
370
 F_48aedb8880cab8c45637abc7493ecddd int,
371
 F_839ab46820b524afda05122893c2fe8e int,
372
 F_f90f2aca5c640289d0a29417bcb63a37 int,
373
 F_9c838d2e45b2ad1094d42f4ef36764f6 int,
374
 F_1700002963a49da13542e0726b7bb758 int,
375
 F_53c3bce66e43be4f209556518c2fcb54 int,
376
 F_6883966fd8f918a4aa29be29d2c386fb int,
377
 F_49182f81e6a13cf5eaa496d51fea6406 int,
378
 F_d296c101daa88a51f6ca8cfc1ac79b50 int,
379
 F_9fd81843ad7f202f26c1a174c7357585 int,
380
 F_26e359e83860db1d11b6acca57d8ea88 int,
381
 F_ef0d3930a7b6c95bd2b32ed45989c61f int,
382
 F_94f6d7e04a4d452035300f18b984988c int,
383
 F_34ed066df378efacc9b924ec161e7639 int,
384
 F_577bcc914f9e55d5e4e4f82f9f00e7d4 int,
385
 F_11b9842e0a271ff252c1903e7132cd68 int,
386
 F_37bc2f75bf1bcfe8450a1a41c200364c int,
387
 F_496e05e1aea0a9c4655800e8a7b9ea28 int,
388
 F_b2eb7349035754953b57a32e2841bda5 int,
389
 F_8e98d81f8217304975ccb23337bb5761 int,
390
 F_a8c88a0055f636e4a163a5e3d16adab7 int,
391
 F_eddea82ad2755b24c4e168c5fc2ebd40 int,
392
 F_06eb61b839a0cefee4967c67ccb099dc int,
393
 F_9dfcd5e558dfa04aaf37f137a1d9d3e5 int,
394
 F_950a4152c2b4aa3ad78bdd6b366cc179 int,
395
 F_158f3069a435b314a80bdcb024f8e422 int,
396
 F_758874998f5bd0c393da094e1967a72b int,
397
 F_ad13a2a07ca4b7642959dc0c4c740ab6 int,
398
 F_3fe94a002317b5f9259f82690aeea4cd int,
399
 F_5b8add2a5d98b1a652ea7fd72d942dac int,
400
 F_432aca3a1e345e339f35a30c8f65edce int,
401
 F_8d3bba7425e7c98c50f52ca1b52d3735 int,
402
 F_320722549d1751cf3f247855f937b982 int,
403
 F_caf1a3dfb505ffed0d024130f58c5cfa int,
404
 F_5737c6ec2e0716f3d8a7a5c4e0de0d9a int,
405
 F_bc6dc48b743dc5d013b1abaebd2faed2 int,
406
 F_f2fc990265c712c49d51a18a32b39f0c int,
407
 F_89f0fd5c927d466d6ec9a21b9ac34ffa int,
408
 F_a666587afda6e89aec274a3657558a27 int,
409
 F_b83aac23b9528732c23cc7352950e880 int,
410
 F_cd00692c3bfe59267d5ecfac5310286c int,
411
 F_6faa8040da20ef399b63a72d0e4ab575 int,
412
 F_fe73f687e5bc5280214e0486b273a5f9 int);
413
insert into t1 (F_8d3bba7425e7c98c50f52ca1b52d3735) values (1);
414
--exec $DRIZZLE_DUMP --skip-comments test
1799.7.5 by Andrew Hutchings
Fix test cases
415
drop table t1;
1 by brian
clean slate
416
417
--echo #
418
--echo # Test for --add-drop-database
419
--echo #
420
421
CREATE TABLE t1 (a int);
422
INSERT INTO t1 VALUES (1),(2),(3);
423
--exec $DRIZZLE_DUMP --add-drop-database --skip-comments --databases test
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
424
DROP TABLE t1;
1 by brian
clean slate
425
426
--echo #
427
--echo # Bug #9558 mysqldump --no-data db t1 t2 format still dumps data
428
--echo #
429
430
CREATE DATABASE mysqldump_test_db;
431
USE mysqldump_test_db;
432
CREATE TABLE t1 ( a INT );
433
CREATE TABLE t2 ( a INT );
434
INSERT INTO t1 VALUES (1), (2);
435
INSERT INTO t2 VALUES (1), (2);
436
--exec $DRIZZLE_DUMP --skip-comments --no-data mysqldump_test_db
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
437
--exec $DRIZZLE_DUMP --skip-comments --no-data mysqldump_test_db t1 t2
438
DROP TABLE t1, t2;
1 by brian
clean slate
439
DROP DATABASE mysqldump_test_db;
440
441
--echo #
442
--echo #  Testing with tables and databases that don't exists
443
--echo #  or contains illegal characters
444
--echo # (Bug #9358 mysqldump crashes if tablename starts with \)
445
--echo #
446
create database mysqldump_test_db;
447
use mysqldump_test_db;
448
create table t1(a varchar(30) primary key, b int not null);
449
create table t2(a varchar(30) primary key, b int not null);
450
create table t3(a varchar(30) primary key, b int not null);
451
452
--disable_query_log
453
select '------ Testing with illegal table names ------' as test_sequence ;
454
--enable_query_log
455
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
456
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "\d-2-1.sql" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
457
458
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
459
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db  "\t1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
460
461
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
462
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db  "\\t1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
463
 
1 by brian
clean slate
464
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
465
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db  "\\\\t1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
466
467
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
468
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db  "t\1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
469
470
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
471
--exec $DRIZZLE_DUMP --compact --skip-comments  mysqldump_test_db  "t\\1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
472
473
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
474
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db  "t/1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
475
476
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
477
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
478
479
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
480
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T%1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
481
482
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
483
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T'1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
484
485
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
486
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
487
488
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
489
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_db "T_" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
490
1 by brian
clean slate
491
--disable_query_log
492
select '------ Testing with illegal database names ------' as test_sequence ;
493
--enable_query_log
494
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
495
--exec $DRIZZLE_DUMP --compact --skip-comments mysqldump_test_d 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
496
1 by brian
clean slate
497
--error EE_CANTCREATEFILE
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
498
--exec $DRIZZLE_DUMP --compact --skip-comments "mysqld\ump_test_db" 2>&1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
499
1 by brian
clean slate
500
drop table t1, t2, t3;
501
drop database mysqldump_test_db;
502
use test;
503
504
505
--echo #
506
--echo # BUG #19025 mysqldump doesn't correctly dump "auto_increment = [int]"
507
--echo #
508
509
create table `t1` (
510
    t1_name varchar(255) default null,
511
    t1_id int not null auto_increment,
685.4.28 by Jay Pipes
Fixes for mysqldump.test. Not enabling it because there is a bug.
512
    key (t1_name),
1 by brian
clean slate
513
    primary key (t1_id)
514
) auto_increment = 1000;
685.4.28 by Jay Pipes
Fixes for mysqldump.test. Not enabling it because there is a bug.
515
1 by brian
clean slate
516
insert into t1 (t1_name) values('bla');
517
insert into t1 (t1_name) values('bla');
518
insert into t1 (t1_name) values('bla');
519
520
select * from t1;
521
522
show create table `t1`;
523
524
--exec $DRIZZLE_DUMP --skip-comments test t1 > $DRIZZLETEST_VARDIR/tmp/bug19025.sql
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
525
DROP TABLE `t1`;
1 by brian
clean slate
526
527
--exec $DRIZZLE test < $DRIZZLETEST_VARDIR/tmp/bug19025.sql
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
528
1 by brian
clean slate
529
select * from t1;
530
531
show create table `t1`;
532
533
drop table `t1`;
534
535
--echo #
536
--echo # Bug #18536: wrong table order
537
--echo #
538
539
create table t1(a int);
540
create table t2(a int);
541
create table t3(a int);
542
--exec $DRIZZLE_DUMP --skip-comments --force --no-data test t3 t1 non_existing t2
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
543
drop table t1, t2, t3;
1 by brian
clean slate
544
545
--echo #
546
--echo # BUG#13926: --order-by-primary fails if PKEY contains quote character
547
--echo #
548
549
#--disable_warnings
1273.19.2 by Brian Aker
First pass through show indexs.
550
#DROP TABLE IF EXISTS `t1`;
551
#CREATE TABLE `t1` (
552
#  `a b` INT,
553
#  `c"d` INT,
554
#  `e``f` INT,
555
#  PRIMARY KEY (`a b`, `c"d`, `e``f`)
556
#);
557
#insert into t1 values (0815, 4711, 2006);
558
#
559
#--exec $DRIZZLE_DUMP --skip-comments --compatible=ansi --order-by-primary test t1
560
#--exec $DRIZZLE_DUMP --skip-comments --order-by-primary test t1
561
#DROP TABLE `t1`;
562
#--enable_warnings
563
1 by brian
clean slate
564
--echo End of 4.1 tests
565
566
--echo #
567
--echo # Bug#29815: new option for suppressing last line of mysqldump:
568
--echo #            "Dump completed on"
569
--echo #
570
571
--echo # --skip-dump-date:
572
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// /^-- DRI.*///
1008.3.13 by Stewart Smith
fix mysqldump test to work with drizzle -> drizzledump.test
573
--exec $DRIZZLE_DUMP --skip-dump-date test
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
574
1 by brian
clean slate
575
--echo # --dump-date:
576
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9a-zA-Z :-]+/ on DATE/ /^-- DRI.*///
1751.4.25 by Andrew Hutchings
Fix error handling
577
--exec $DRIZZLE_DUMP test 
1757.5.2 by Andrew Hutchings
Fix broke drizzledump option and tests
578
1 by brian
clean slate
579
--echo # --dump-date (default):
580
--replace_regex /^[^-][^-].*$// /-- [^D][^u][^m][^p].*// /\/\*!.*// / on [0-9a-zA-Z :-]+/ on DATE/ /^-- DRI.*///
1751.4.25 by Andrew Hutchings
Fix error handling
581
--exec $DRIZZLE_DUMP test
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
582
1 by brian
clean slate
583
--echo #
584
--echo # End of 5.0 tests
585
--echo #
586
587
# Check new --replace option
588
589
--disable_warnings
590
drop table if exists t1;
591
--enable_warnings
592
593
CREATE TABLE t1(a int, b int);
594
INSERT INTO t1 VALUES (1,1);
595
INSERT INTO t1 VALUES (2,3);
596
INSERT INTO t1 VALUES (3,4), (4,5);
597
--exec $DRIZZLE_DUMP --replace --skip-comments test t1
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
598
DROP TABLE t1;
1 by brian
clean slate
599
600
#
601
# Added for use-thread option
602
#
603
604
# THIS PART OF THE TEST IS DISABLED UNTIL BUG#32991 IS FIXED
605
if ($bug32991_fixed) {
606
607
create table t1 (a text , b text);
608
create table t2 (a text , b text);
609
insert t1 values ("Duck, Duck", "goose");
610
insert t1 values ("Duck, Duck", "pidgeon");
611
insert t2 values ("We the people", "in order to perform");
612
insert t2 values ("a more perfect", "union");
613
select * from t1;
614
select * from t2;
615
--exec $DRIZZLE_DUMP --tab=$DRIZZLETEST_VARDIR/tmp/ test
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
616
--exec $DRIZZLE test < $DRIZZLETEST_VARDIR/tmp/t1.sql
617
--exec $DRIZZLE test < $DRIZZLETEST_VARDIR/tmp/t2.sql
618
# The first load tests the pausing code
1 by brian
clean slate
619
--exec $DRIZZLE_IMPORT --use-threads=1 test $DRIZZLETEST_VARDIR/tmp/t1.txt $DRIZZLETEST_VARDIR/tmp/t2.txt
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
620
# Now we test with multiple threads!
1 by brian
clean slate
621
--exec $DRIZZLE_IMPORT --silent --use-threads=5 test $DRIZZLETEST_VARDIR/tmp/t1.txt $DRIZZLETEST_VARDIR/tmp/t2.txt
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
622
select * from t1;
1 by brian
clean slate
623
select * from t2;
624
# Now we test with multiple threads, but less threads than files.
625
create table words(a varchar(255));
626
create table words2(b varchar(255));
627
--exec $DRIZZLE_IMPORT --silent --use-threads=2 test $DRIZZLETEST_VARDIR/tmp/t1.txt $DRIZZLETEST_VARDIR/tmp/t2.txt $DRIZZLETEST_VARDIR/std_data_ln/words.dat $DRIZZLETEST_VARDIR/std_data_ln/words2.dat
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
628
select * from t1;
1 by brian
clean slate
629
select * from t2;
630
select * from words;
631
select * from words2;
632
633
# Drop table "words" and run with threads, should fail
634
drop table words;
635
--replace_regex /.*mysqlimport(\.exe)*/mysql-import/
636
--error EE_ERROR_FIRST
2107.1.1 by Brian Aker
Add in all of the error messages, also remove all cases of --error number
637
--exec $DRIZZLE_IMPORT --silent --use-threads=2 test $DRIZZLETEST_VARDIR/tmp/t1.txt $DRIZZLETEST_VARDIR/tmp/t2.txt $DRIZZLETEST_VARDIR/std_data_ln/words.dat $DRIZZLETEST_VARDIR/std_data_ln/words2.dat 2>&1
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
638
1 by brian
clean slate
639
drop table t1;
640
drop table t2;
641
642
drop table words2;
643
644
}
645
646
--echo #
647
--echo # Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
648
--echo #
649
create database `test-database`;
650
use `test-database`;
651
create table test (a int);
652
--exec $DRIZZLE_DUMP --compact test-database
1799.7.5 by Andrew Hutchings
Fix test cases
653
drop database `test-database`;
1 by brian
clean slate
654
use test;
655
656
#
1643.4.1 by Patrick Crews
Moved mysqldump-compat.test into drizzledump.test. It only contained a single, simple test case. Renamed mysqldump-max to drizzledump-max for correctness' sake
657
# Bug #30126: semicolon before closing */ in /*!... CREATE DATABASE ;*/
658
#
659
660
CREATE DATABASE mysqldump_30126;
661
USE mysqldump_30126;
662
CREATE TABLE t1 (c1 int);
663
--exec $DRIZZLE_DUMP --add-drop-database mysqldump_30126 > $DRIZZLETEST_VARDIR/tmp/bug30126.sql
1819.2.2 by patrick crews
Adjustments to tests to deal with the name changes. Also fixed passed/failed reporting post-run in test-run.pl
664
--exec $DRIZZLE mysqldump_30126 < $DRIZZLETEST_VARDIR/tmp/bug30126.sql
665
DROP DATABASE mysqldump_30126;
1643.4.1 by Patrick Crews
Moved mysqldump-compat.test into drizzledump.test. It only contained a single, simple test case. Renamed mysqldump-max to drizzledump-max for correctness' sake
666
667
668
###########################################################################
1 by brian
clean slate
669
670
--echo #
671
--echo # End of 5.1 tests
672
--echo #
673
1643.4.1 by Patrick Crews
Moved mysqldump-compat.test into drizzledump.test. It only contained a single, simple test case. Renamed mysqldump-max to drizzledump-max for correctness' sake
674