Merge lp:~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum-2 into lp:~drizzle-trunk/drizzle/development

Proposed by Lee Bieber
Status: Merged
Approved by: Monty Taylor
Approved revision: 1733
Merged at revision: 1735
Proposed branch: lp:~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum-2
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 7230 lines (+1236/-1223)
154 files modified
client/errname.cc (+21/-1)
plugin/archive/tests/t/archive.test (+4/-4)
plugin/archive/tests/t/archive_aio_posix.test (+4/-4)
plugin/archive/tests/t/archive_discover.test (+1/-1)
plugin/blackhole/tests/t/blackhole.test (+2/-2)
plugin/blackhole/tests/t/create_max_fields.test (+1/-1)
plugin/blitzdb/tests/t/blitzdb-alter.test (+2/-2)
plugin/blitzdb/tests/t/blitzdb-basic.test (+11/-11)
plugin/blitzdb/tests/t/blitzdb-decimal.test (+6/-6)
plugin/blitzdb/tests/t/blitzdb-index.test (+29/-29)
plugin/csv/tests/t/csv.test (+4/-4)
plugin/csv/tests/t/csv_not_null.test (+2/-2)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test (+3/-3)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test (+6/-6)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test (+2/-2)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test (+2/-2)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test (+4/-4)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test (+2/-2)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test (+3/-3)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test (+1/-1)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test (+24/-24)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test (+78/-78)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test (+10/-10)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test (+8/-8)
plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test (+7/-7)
plugin/filesystem_engine/tests/t/basic_create_table.test (+4/-4)
plugin/myisam/tests/t/myisam.test (+6/-6)
plugin/pbxt/tests/t/basic_create_nullable.test (+2/-2)
plugin/pbxt/tests/t/basic_create_table.test (+1/-1)
plugin/pbxt/tests/t/basic_drop_table.test (+1/-1)
plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test (+1/-1)
plugin/pbxt/tests/t/basic_statement_rollback.test (+1/-1)
plugin/rand_function/tests/t/basic.test (+1/-1)
plugin/schema_dictionary/tests/t/no_default.test (+1/-1)
plugin/show_schema_proto/tests/t/basic.test (+1/-1)
plugin/sleep/tests/t/sleep.test (+2/-2)
plugin/tableprototester/tests/t/drop_table.test (+1/-1)
plugin/tableprototester/tests/t/invalid_table_collation.test (+1/-1)
plugin/tableprototester/tests/t/missing_engine.test (+1/-1)
plugin/tableprototester/tests/t/too_many_enum_values.test (+2/-2)
tests/suite/broken/t/packet.test (+1/-1)
tests/suite/broken/t/strict-date.test (+121/-121)
tests/suite/jp/t/jp_like_utf8.test (+3/-3)
tests/suite/jp/t/jp_select_utf8.test (+3/-3)
tests/suite/jp/t/jp_where_utf8.test (+3/-3)
tests/t/almost_full.test (+2/-2)
tests/t/alter_column_drop_default.test (+1/-1)
tests/t/alter_table.test (+3/-3)
tests/t/alter_table_options.test (+1/-1)
tests/t/analyze.test (+2/-2)
tests/t/auto_increment.test (+4/-4)
tests/t/binary.test (+1/-1)
tests/t/broken_table_proto_file.test (+2/-2)
tests/t/case.test (+3/-3)
tests/t/cast.test (+2/-2)
tests/t/comment_column.test (+4/-4)
tests/t/comment_index.test (+2/-2)
tests/t/comments.test (+1/-1)
tests/t/connect.test (+6/-6)
tests/t/create.test (+65/-65)
tests/t/create_schema_options.test (+4/-4)
tests/t/create_select_column_order.test (+3/-3)
tests/t/create_select_tmp.test (+10/-10)
tests/t/create_table_options.test (+4/-4)
tests/t/ctype_utf8.test (+4/-4)
tests/t/data_dictionary_like_info.test (+5/-5)
tests/t/dayofmonth.test (+10/-10)
tests/t/dayofyear.test (+10/-10)
tests/t/default.test (+3/-3)
tests/t/derived.test (+9/-9)
tests/t/drop.test (+8/-8)
tests/t/errors.test (+13/-13)
tests/t/explain.test (+2/-2)
tests/t/flush.test (+1/-1)
tests/t/func_date_add.test (+2/-2)
tests/t/func_default.test (+1/-1)
tests/t/func_gconcat.test (+2/-2)
tests/t/func_sapdb.test (+1/-1)
tests/t/func_str.test (+3/-3)
tests/t/func_time.test (+26/-26)
tests/t/group_by.test (+2/-2)
tests/t/having.test (+7/-7)
tests/t/heap.test (+5/-5)
tests/t/heap_var.test (+1/-1)
tests/t/hour.test (+13/-13)
tests/t/innodb.test (+35/-35)
tests/t/insert.test (+9/-9)
tests/t/insert_select.test (+6/-6)
tests/t/insert_update.test (+7/-7)
tests/t/join.test (+2/-2)
tests/t/join_outer.test (+4/-4)
tests/t/key.test (+11/-11)
tests/t/kill.test (+3/-3)
tests/t/loaddata.test (+5/-5)
tests/t/lowercase_fs_off.test (+1/-1)
tests/t/microsecond.test (+14/-14)
tests/t/minute.test (+13/-13)
tests/t/month.test (+10/-10)
tests/t/null.test (+22/-22)
tests/t/null_key.test (+2/-2)
tests/t/olap.test (+3/-3)
tests/t/optimizer.test (+1/-1)
tests/t/order_by.test (+24/-24)
tests/t/outfile.test (+4/-4)
tests/t/parser.test (+1/-1)
tests/t/plugin-remove.test (+1/-1)
tests/t/quarter.test (+10/-10)
tests/t/regression_385808.test (+2/-2)
tests/t/rename.test (+5/-5)
tests/t/round.test (+2/-2)
tests/t/row.test (+9/-9)
tests/t/second.test (+13/-13)
tests/t/select.test (+12/-12)
tests/t/select_safe.test (+5/-5)
tests/t/show_check.test (+1/-1)
tests/t/small_tmp_table.test (+1/-1)
tests/t/strict.test (+57/-57)
tests/t/subselect.test (+9/-9)
tests/t/temp_table.test (+4/-4)
tests/t/timezone.test (+1/-1)
tests/t/timezone4.test (+1/-1)
tests/t/truncate.test (+2/-2)
tests/t/type_blob.test (+3/-3)
tests/t/type_date.test (+1/-1)
tests/t/type_datetime.test (+24/-24)
tests/t/type_decimal.test (+78/-78)
tests/t/type_enum.test (+19/-19)
tests/t/type_enum_max_elements.test (+3/-3)
tests/t/type_enum_too_many_elements.test (+1/-1)
tests/t/type_float.test (+8/-8)
tests/t/type_newdecimal.test (+16/-16)
tests/t/type_ranges.test (+5/-5)
tests/t/type_timestamp.test (+5/-5)
tests/t/type_uint.test (+1/-1)
tests/t/type_varbinary.test (+2/-2)
tests/t/union.test (+28/-28)
tests/t/update.test (+6/-6)
tests/t/user_var.test (+4/-4)
tests/t/varbinary.test (+2/-2)
tests/t/variables.test (+24/-24)
tests/t/warnings.test (+20/-20)
tests/t/weekday.test (+10/-10)
tests/t/year.test (+10/-10)
tests/test-run.pl (+2/-9)
To merge this branch: bzr merge lp:~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum-2
Reviewer Review Type Date Requested Status
Monty Taylor Approve
Review via email: mp+33963@code.launchpad.net

Description of the change

Missed a few when converting from using error numbers to enum values. This will fix the embedded-innodb valgrind build in staging

To post a comment you must log in.
Revision history for this message
Monty Taylor (mordred) wrote :

Looks great.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'client/errname.cc'
2--- client/errname.cc 2010-01-09 00:50:53 +0000
3+++ client/errname.cc 2010-08-27 21:22:40 +0000
4@@ -298,7 +298,7 @@
5 { "ER_WARN_TOO_MANY_RECORDS",1262 },
6 { "ER_WARN_NULL_TO_NOTNULL",1263 },
7 { "ER_WARN_DATA_OUT_OF_RANGE",1264 },
8- { "WARN_DATA_TRUNCATED",1265 },
9+ { "ER_WARN_DATA_TRUNCATED",1265 },
10 { "ER_WARN_USING_OTHER_HANDLER",1266 },
11 { "ER_CANT_AGGREGATE_2COLLATIONS",1267 },
12 { "ER_DROP_USER",1268 },
13@@ -715,7 +715,27 @@
14 { "ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN",1679 },
15 { "ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN",1680 },
16 { "ER_CONST_EXPR_IN_VCOL",1681 },
17+ { "ER_UNKNOWN_TEMPORAL_TYPE",1682 },
18+ { "ER_INVALID_STRING_FORMAT_FOR_DATE",1683 },
19+ { "ER_INVALID_STRING_FORMAT_FOR_TIME",1684 },
20+ { "ER_INVALID_UNIX_TIMESTAMP_VALUE",1685 },
21+ { "ER_INVALID_DATETIME_VALUE",1686 },
22+ { "ER_INVALID_NULL_ARGUMENT",1687 },
23+ { "ER_INVALID_NEGATIVE_ARGUMENT",1688 },
24+ { "ER_ARGUMENT_OUT_OF_RANGE",1689 },
25+ { "ER_INVALID_TIME_VALUE",1690 },
26+ { "ER_INVALID_ENUM_VALUE",1691 },
27 { "ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE", 1692},
28+ { "ER_CORRUPT_TABLE_DEFINITION", 1693},
29+ { "ER_SCHEMA_DOES_NOT_EXIST", 1694},
30+ { "ER_ALTER_SCHEMA", 1695},
31+ { "ER_DROP_SCHEMA", 1696},
32+ { "ER_USE_SQL_BIG_RESULT", 1697},
33+ { "ER_UNKNOWN_ENGINE_OPTION", 1698},
34+ { "ER_UNKNOWN_SCHEMA_OPTION", 1699},
35+ { "ER_EVENT_OBSERVER_PLUGIN", 1700},
36+ { "ER_CORRUPT_SCHEMA_DEFINITION", 1701},
37+ { "ER_CARTESIAN_JOIN_ATTEMPTED", 1702},
38 { 0, 0 }
39 };
40
41
42=== modified file 'plugin/archive/tests/t/archive.test'
43--- plugin/archive/tests/t/archive.test 2009-12-04 10:20:37 +0000
44+++ plugin/archive/tests/t/archive.test 2010-08-27 21:22:40 +0000
45@@ -1333,14 +1333,14 @@
46 #
47 # For bug #12836
48 # Delete was allowing all rows to be removed
49---error 1031
50+--error ER_ILLEGAL_HA
51 DELETE FROM t2;
52 SELECT * FROM t2;
53 INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
54 INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
55 INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
56 SELECT * FROM t2;
57---error 1031
58+--error ER_ILLEGAL_HA
59 TRUNCATE TABLE t2;
60 SELECT * FROM t2;
61
62@@ -1370,11 +1370,11 @@
63 INSERT INTO t5 VALUES (NULL, "foo");
64 INSERT INTO t5 VALUES (NULL, "foo");
65 INSERT INTO t5 VALUES (32, "foo");
66---error 1022
67+--error ER_DUP_KEY
68 INSERT INTO t5 VALUES (23, "foo");
69 INSERT INTO t5 VALUES (NULL, "foo");
70 INSERT INTO t5 VALUES (NULL, "foo");
71---error 1022
72+--error ER_DUP_KEY
73 INSERT INTO t5 VALUES (3, "foo");
74 INSERT INTO t5 VALUES (NULL, "foo");
75 SELECT * FROM t5;
76
77=== modified file 'plugin/archive/tests/t/archive_aio_posix.test'
78--- plugin/archive/tests/t/archive_aio_posix.test 2009-12-04 10:20:37 +0000
79+++ plugin/archive/tests/t/archive_aio_posix.test 2010-08-27 21:22:40 +0000
80@@ -1333,14 +1333,14 @@
81 #
82 # For bug #12836
83 # Delete was allowing all rows to be removed
84---error 1031
85+--error ER_ILLEGAL_HA
86 DELETE FROM t2;
87 SELECT * FROM t2;
88 INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
89 INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
90 INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
91 SELECT * FROM t2;
92---error 1031
93+--error ER_ILLEGAL_HA
94 TRUNCATE TABLE t2;
95 SELECT * FROM t2;
96
97@@ -1370,11 +1370,11 @@
98 INSERT INTO t5 VALUES (NULL, "foo");
99 INSERT INTO t5 VALUES (NULL, "foo");
100 INSERT INTO t5 VALUES (32, "foo");
101---error 1022
102+--error ER_DUP_KEY
103 INSERT INTO t5 VALUES (23, "foo");
104 INSERT INTO t5 VALUES (NULL, "foo");
105 INSERT INTO t5 VALUES (NULL, "foo");
106---error 1022
107+--error ER_DUP_KEY
108 INSERT INTO t5 VALUES (3, "foo");
109 INSERT INTO t5 VALUES (NULL, "foo");
110 SELECT * FROM t5;
111
112=== modified file 'plugin/archive/tests/t/archive_discover.test'
113--- plugin/archive/tests/t/archive_discover.test 2009-11-12 00:43:38 +0000
114+++ plugin/archive/tests/t/archive_discover.test 2010-08-27 21:22:40 +0000
115@@ -3,5 +3,5 @@
116 SELECT * from t1;
117 --remove_file $MYSQLTEST_VARDIR/master-data/test/t1.arz
118 FLUSH TABLES;
119---error 1146
120+--error ER_NO_SUCH_TABLE
121 SELECT * FROM t1;
122
123=== modified file 'plugin/blackhole/tests/t/blackhole.test'
124--- plugin/blackhole/tests/t/blackhole.test 2010-08-20 22:04:44 +0000
125+++ plugin/blackhole/tests/t/blackhole.test 2010-08-27 21:22:40 +0000
126@@ -46,12 +46,12 @@
127 CREATE TABLE t5 (a int) ENGINE=BLACKHOLE;
128 INSERT INTO t5 VALUES (1);
129 FLUSH TABLES WITH READ LOCK;
130---error 1223
131+--error ER_CANT_UPDATE_WITH_READLOCK
132 INSERT INTO t5 VALUES (1);
133 UNLOCK TABLES;
134 INSERT INTO t5 VALUES (1);
135 FLUSH TABLES WITH READ LOCK;
136---error 1223
137+--error ER_CANT_UPDATE_WITH_READLOCK
138 DROP TABLE t5;
139 UNLOCK TABLES;
140 INSERT INTO t5 VALUES (1);
141
142=== modified file 'plugin/blackhole/tests/t/create_max_fields.test'
143--- plugin/blackhole/tests/t/create_max_fields.test 2010-03-23 10:01:41 +0000
144+++ plugin/blackhole/tests/t/create_max_fields.test 2010-08-27 21:22:40 +0000
145@@ -4104,7 +4104,7 @@
146 SHOW CREATE TABLE t1;
147 DROP TABLE t1;
148 --echo Now, MAX_FIELDS. This fails.
149---error 1117
150+--error ER_TOO_MANY_FIELDS
151 CREATE TABLE t1 (
152 f0 int,
153 f1 int,
154
155=== modified file 'plugin/blitzdb/tests/t/blitzdb-alter.test'
156--- plugin/blitzdb/tests/t/blitzdb-alter.test 2010-06-09 09:52:51 +0000
157+++ plugin/blitzdb/tests/t/blitzdb-alter.test 2010-08-27 21:22:40 +0000
158@@ -23,9 +23,9 @@
159 primary key (pk)
160 ) ENGINE=blitzdb ;
161
162---error 1112
163+--error ER_UNSUPPORTED_EXTENSION
164 ALTER TABLE `t1` DISABLE KEYS;
165---error 1112
166+--error ER_UNSUPPORTED_EXTENSION
167 ALTER TABLE `t1` ENABLE KEYS;
168
169 DROP TABLE `t1`;
170
171=== modified file 'plugin/blitzdb/tests/t/blitzdb-basic.test'
172--- plugin/blitzdb/tests/t/blitzdb-basic.test 2010-07-13 06:12:40 +0000
173+++ plugin/blitzdb/tests/t/blitzdb-basic.test 2010-08-27 21:22:40 +0000
174@@ -8,13 +8,13 @@
175 create table t1 (a int, b double, c float) engine = blitzdb;
176 create table t2 (a int, b text, c blob) engine = blitzdb;
177
178---error 1050
179+--error ER_TABLE_EXISTS_ERROR
180 create table t1 (a int, b double, c float) engine = blitzdb;
181---error 1050
182+--error ER_TABLE_EXISTS_ERROR
183 create table t2 (a int, b text, c blob) engine = blitzdb;
184---error 1050
185+--error ER_TABLE_EXISTS_ERROR
186 create table t1 (a int) engine = blitzdb;
187---error 1050
188+--error ER_TABLE_EXISTS_ERROR
189 create table t2 (a int) engine = blitzdb;
190
191 show tables;
192@@ -136,7 +136,7 @@
193 insert into t1 values (1, NULL), (2, NULL), (3, NULL), (4, NULL);
194 insert into t1 values (5, NULL), (6, NULL), (7, NULL), (8, NULL);
195
196---error 1048 # NOT NULL Violation
197+--error ER_BAD_NULL_ERROR # NOT NULL Violation
198 insert into t1 values (NULL, 1);
199
200 select * from t1;
201@@ -162,9 +162,9 @@
202
203 # Test(12): Boundary Check
204 create table t1 (a int) engine = blitzdb;
205---error 1264
206+--error ER_WARN_DATA_OUT_OF_RANGE
207 insert into t1 values(2147483649);
208---error 1264
209+--error ER_WARN_DATA_OUT_OF_RANGE
210 insert into t1 values(-2147483649);
211 insert into t1 values(2147483647);
212 select * from t1;
213@@ -177,13 +177,13 @@
214 insert into t1 select repeat('x', 8);
215 insert into t1 select repeat('x', 16);
216 insert into t1 select repeat('x', 32);
217---error 1406
218+--error ER_DATA_TOO_LONG
219 insert into t1 select repeat('x', 33);
220 select * from t1;
221
222 create table t2 (a varchar(16383)) engine = blitzdb; # Theoretical Max
223 insert into t2 select repeat('x', 16383);
224---error 1406
225+--error ER_DATA_TOO_LONG
226 insert into t2 select repeat('x', 16384);
227 select count(*) from t2;
228 drop table t1, t2;
229@@ -192,13 +192,13 @@
230 create table t1 (a varchar(32)) engine = blitzdb;
231 insert into t1 select repeat('�', 8);
232 insert into t1 select repeat('�', 32);
233---error 1406
234+--error ER_DATA_TOO_LONG
235 insert into t1 select repeat('�', 33);
236 select * from t1;
237
238 create table t2 (a varchar(16383)) engine = blitzdb;
239 insert into t2 select repeat('値', 16383);
240---error 1406
241+--error ER_DATA_TOO_LONG
242 insert into t2 select repeat('値', 16384);
243 select count(*) from t2;
244 drop table t1, t2;
245
246=== modified file 'plugin/blitzdb/tests/t/blitzdb-decimal.test'
247--- plugin/blitzdb/tests/t/blitzdb-decimal.test 2010-06-02 09:39:56 +0000
248+++ plugin/blitzdb/tests/t/blitzdb-decimal.test 2010-08-27 21:22:40 +0000
249@@ -18,19 +18,19 @@
250 # Test the max number of possible digits
251 create table t2 (a decimal(65,0)) engine = blitzdb;
252 insert into t2 select repeat(1, 65);
253---error 1264
254+--error ER_WARN_DATA_OUT_OF_RANGE
255 insert into t2 select repeat(1, 66);
256 select * from t2;
257 drop table t2;
258
259 create table t2 (a decimal(65,8)) engine = blitzdb;
260 insert into t2 select repeat(1, 57);
261---error 1264
262+--error ER_WARN_DATA_OUT_OF_RANGE
263 insert into t2 select repeat(1, 58);
264
265 delete from t2;
266
267---error 1264 # Out of Range
268+--error ER_WARN_DATA_OUT_OF_RANGE # Out of Range
269 insert into t2 values (
270 -1111111111111111111111111111111111111111111111111111111111
271 );
272@@ -39,7 +39,7 @@
273 1111111111111111111111111111111111111111111111111.11111111
274 );
275
276---error 1265 # Truncated
277+--error ER_WARN_DATA_TRUNCATED # Truncated
278 insert into t2 values (
279 111111111111111111111111111111111111111111111111.111111111
280 );
281@@ -94,11 +94,11 @@
282
283 # Exponent overflow bug
284 create table t1 (a decimal(10,0)) engine = blitzdb;
285---error 1366 incorrect decimal value
286+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
287 insert into t1 values ("1e4294967295");
288 select * from t1;
289 delete from t1;
290---error 1366 incorrect decimal value
291+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
292 insert into t1 values("1e4294967297");
293 select * from t1;
294 drop table t1;
295
296=== modified file 'plugin/blitzdb/tests/t/blitzdb-index.test'
297--- plugin/blitzdb/tests/t/blitzdb-index.test 2010-07-13 06:12:40 +0000
298+++ plugin/blitzdb/tests/t/blitzdb-index.test 2010-08-27 21:22:40 +0000
299@@ -18,17 +18,17 @@
300 explain select count (*) from t1;
301
302 # overflow
303---error 1264
304+--error ER_WARN_DATA_OUT_OF_RANGE
305 insert into t1 values (2147483648, 1, 1);
306
307 # duplicates
308---error 1062
309+--error ER_DUP_ENTRY
310 insert into t1 values (1, 0, 0);
311---error 1062
312+--error ER_DUP_ENTRY
313 insert into t1 values (2, 0, 0);
314---error 1062
315+--error ER_DUP_ENTRY
316 insert into t1 values (3, 0, 0);
317---error 1062
318+--error ER_DUP_ENTRY
319 insert into t1 values (4, 0, 0);
320
321 # needle in a haystack
322@@ -42,7 +42,7 @@
323 select * from t1 order by id;
324
325 # update the key
326---error 1062
327+--error ER_DUP_ENTRY
328 update t1 set id = 2 where id = 1;
329
330 update t1 set id = 17 where id = 1;
331@@ -53,7 +53,7 @@
332 update t1 set id = 22 where id = 6;
333 update t1 set id = 23 where id = 7;
334
335---error 1062
336+--error ER_DUP_ENTRY
337 update t1 set id = 20 where id = 8;
338
339 # TODO: This is using filesort. Investigate why.
340@@ -100,12 +100,12 @@
341 insert into t1 values (1.8e+18, 2);
342
343 # overflow
344---error 1264
345+--error ER_WARN_DATA_OUT_OF_RANGE
346 insert into t1 values (1.8e+19, 3);
347
348 insert into t1 values (1,1), (2,2), (3,3), (4,4);
349
350---error 1062
351+--error ER_DUP_ENTRY
352 update t1 set id = 4 where id = 1;
353
354 update t1 set id = 10 where id = 1;
355@@ -183,9 +183,9 @@
356 insert into t1 values (2.2222, 8);
357 select * from t1;
358
359---error 1062
360+--error ER_DUP_ENTRY
361 update t1 set id = 1.11 where id = 1.1;
362---error 1062
363+--error ER_DUP_ENTRY
364 update t1 set id = 2.22 where id = 2.2;
365
366 update t1 set id = 3.3 where id = 1.1;
367@@ -194,7 +194,7 @@
368 update t1 set id = 3.3333 where id = 1.1111;
369 select * from t1 order by id;
370
371---error 1062
372+--error ER_DUP_ENTRY
373 update t1 set id = 2.2 where id = 3.3;
374
375 delete from t1 where id = 3.3;
376@@ -225,7 +225,7 @@
377 select country from t1 where id = 'budapest';
378 select count (id) from t1;
379
380---error 1062
381+--error ER_DUP_ENTRY
382 update t1 set id = 'dublin' where id = 'geneva';
383 update t1 set id = 'berlin', country = 'germany' where id = 'budapest';
384 update t1 set id = 'london', country = 'england' where id = 'copenhagen';
385@@ -263,9 +263,9 @@
386 delete from t1 where a = 'hhh';
387 select * from t1;
388
389---error 1062
390+--error ER_DUP_ENTRY
391 update t1 set a = 'ddd' where a = 'aaa';
392---error 1062
393+--error ER_DUP_ENTRY
394 update t1 set a = 'ccc' where a = 'bbb';
395
396 update t1 set a = 'zzz' where a = 'fff';
397@@ -289,9 +289,9 @@
398 select * from t1 where a = '1984-09-24';
399 select * from t1 where a = '1984-09-25';
400
401---error 1062
402+--error ER_DUP_ENTRY
403 update t1 set a = '1984-09-22' where a = '1984-09-25';
404---error 1062
405+--error ER_DUP_ENTRY
406 update t1 set a = '19840922' where a = '1984-09-25';
407
408 update t1 set a = '2010-03-10' where a = '1984-09-22';
409@@ -384,9 +384,9 @@
410 create table t1 (a int, unique index(a)) engine = blitzdb;
411 insert into t1 values (1), (2);
412
413---error 1062
414+--error ER_DUP_ENTRY
415 insert into t1 values (1);
416---error 1062
417+--error ER_DUP_ENTRY
418 insert into t1 values (2);
419
420 insert into t1 values (NULL);
421@@ -404,11 +404,11 @@
422 create table t1 (a varchar(32), unique index(a)) engine = blitzdb;
423 insert into t1 values ('a'), ('b'), ('c');
424
425---error 1062
426+--error ER_DUP_ENTRY
427 insert into t1 values ('a');
428---error 1062
429+--error ER_DUP_ENTRY
430 insert into t1 values ('b');
431---error 1062
432+--error ER_DUP_ENTRY
433 insert into t1 values ('c');
434
435 insert into t1 values ('f'), ('e'), ('d');
436@@ -484,7 +484,7 @@
437 select * from t1;
438 select * from t1 where a is NULL;
439 insert into t1 values (1, 5), (2, 6);
440---error 1062
441+--error ER_DUP_ENTRY
442 insert into t1 values (1, 7), (1, 8);
443 select * from t1 where a is not NULL;
444 delete from t1 where a is NULL;
445@@ -522,17 +522,17 @@
446 # | COMPOSITE INDEX CHECK |
447 # +-----------------------+
448
449---error 1005
450+--error ER_CANT_CREATE_TABLE
451 create table t1 (a int, b int, c int, d int, primary key(a, b)) engine = blitzdb;
452---error 1005
453+--error ER_CANT_CREATE_TABLE
454 create table t1 (a int, b int, c int, d int, primary key(a, b, c)) engine = blitzdb;
455---error 1005
456+--error ER_CANT_CREATE_TABLE
457 create table t1 (a int, b int, c int, d int, index(a, b)) engine = blitzdb;
458---error 1005
459+--error ER_CANT_CREATE_TABLE
460 create table t1 (a int, b int, c int, d int, index(a, b, c)) engine = blitzdb;
461---error 1005
462+--error ER_CANT_CREATE_TABLE
463 create table t1 (a int, b int, c int, d int, unique(a, b)) engine = blitzdb;
464---error 1005
465+--error ER_CANT_CREATE_TABLE
466 create table t1 (a int, b int, c int, d int, unique(a, b, c)) engine = blitzdb;
467
468 # +------------------------------------------+
469
470=== modified file 'plugin/csv/tests/t/csv.test'
471--- plugin/csv/tests/t/csv.test 2009-11-12 00:44:36 +0000
472+++ plugin/csv/tests/t/csv.test 2010-08-27 21:22:40 +0000
473@@ -1472,22 +1472,22 @@
474 # Bug #31473: does not work with NULL value in datetime field
475 #
476 create temporary table t1(a datetime not null) engine=csv;
477---error 1364
478+--error ER_NO_DEFAULT_FOR_FIELD
479 insert into t1 values();
480 select * from t1;
481 drop table t1;
482 create temporary table t1(a varchar(32) not null) engine=csv;
483---error 1364
484+--error ER_NO_DEFAULT_FOR_FIELD
485 insert into t1 values();
486 select * from t1;
487 drop table t1;
488 create temporary table t1(a int not null) engine=csv;
489---error 1364
490+--error ER_NO_DEFAULT_FOR_FIELD
491 insert into t1 values();
492 select * from t1;
493 drop table t1;
494 create temporary table t1(a blob not null) engine=csv;
495---error 1364
496+--error ER_NO_DEFAULT_FOR_FIELD
497 insert into t1 values();
498 select * from t1;
499 drop table t1;
500
501=== modified file 'plugin/csv/tests/t/csv_not_null.test'
502--- plugin/csv/tests/t/csv_not_null.test 2009-11-12 00:44:36 +0000
503+++ plugin/csv/tests/t/csv_not_null.test 2010-08-27 21:22:40 +0000
504@@ -42,7 +42,7 @@
505 CREATE TEMPORARY TABLE t1 (a int NOT NULL, b blob NOT NULL, c CHAR(20) NOT NULL,
506 d VARCHAR(20) NOT NULL, e enum('foo','bar') NOT NULL,f DATE NOT NULL)
507 ENGINE = CSV;
508---error 1364
509+--error ER_NO_DEFAULT_FOR_FIELD
510 INSERT INTO t1 VALUES();
511 SELECT * FROM t1;
512
513@@ -73,7 +73,7 @@
514
515
516 CREATE TEMPORARY TABLE t1 (a int NOT NULL, b char(10) NOT NULL) ENGINE = CSV;
517---error 1364
518+--error ER_NO_DEFAULT_FOR_FIELD
519 INSERT INTO t1 VALUES();
520 insert into t1 values (0,"");
521 SELECT * FROM t1;
522
523=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test'
524--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test 2010-05-13 14:10:16 +0000
525+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test 2010-08-27 21:22:40 +0000
526@@ -2,7 +2,7 @@
527 INSERT INTO t1 values ();
528 SELECT * FROM t1;
529 ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
530---error 1364
531+--error ER_NO_DEFAULT_FOR_FIELD
532 INSERT INTO t1 values ();
533 INSERT INTO t1 (a) VALUES (11);
534 SELECT * FROM t1 ORDER BY a;
535
536=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test'
537--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test 2010-08-04 02:11:50 +0000
538+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test 2010-08-27 21:22:40 +0000
539@@ -522,11 +522,11 @@
540 #create table t1(f1 int);
541 #alter table t1 add column f2 datetime not null, add column f21 date not null;
542 #insert into t1 values(1,'2000-01-01','2000-01-01');
543-#--error 1292
544+#--error ER_TRUNCATED_WRONG_VALUE
545 #alter table t1 add column f3 datetime not null;
546-#--error 1292
547+#--error ER_TRUNCATED_WRONG_VALUE
548 #alter table t1 add column f3 date not null;
549-#--error 1292
550+#--error ER_TRUNCATED_WRONG_VALUE
551 #alter table t1 add column f4 datetime not null default '2002-02-02',
552 # add column f41 date not null;
553 #alter table t1 add column f4 datetime not null default '2002-02-02',
554
555=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test'
556--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test 2010-04-21 02:30:12 +0000
557+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test 2010-08-27 21:22:40 +0000
558@@ -110,7 +110,7 @@
559 select last_insert_id();
560 insert into t1 values (NULL, 15);
561 select last_insert_id();
562---error ER_DUP_ENTRY,1022
563+--error ER_DUP_ENTRY, ER_DUP_KEY
564 insert into t1 values (NULL, 10);
565 select last_insert_id();
566
567@@ -140,7 +140,7 @@
568 update t1 set a=0 where b=5;
569 select * from t1 order by b;
570 delete from t1 where a=0;
571---error 1048
572+--error ER_BAD_NULL_ERROR
573 update t1 set a=NULL where b=6;
574 update t1 set a=300 where b=7;
575 insert into t1(a,b)values(NULL,8);
576@@ -155,7 +155,7 @@
577 update t1 set a=0 where b=12;
578 select * from t1 order by b;
579 delete from t1 where a=0;
580---error 1048
581+--error ER_BAD_NULL_ERROR
582 update t1 set a=NULL where b=13;
583 update t1 set a=500 where b=14;
584 select * from t1 order by b;
585@@ -173,7 +173,7 @@
586
587 create table t1 (a bigint, b int auto_increment primary key);
588 insert into t1 (a) values (1), (2), (3), (0), (0);
589---error 1022,1062
590+--error ER_DUP_KEY, ER_DUP_ENTRY
591 alter table t1 drop column b, modify a bigint not null auto_increment primary key;
592 select * from t1;
593 drop table t1;
594@@ -202,7 +202,7 @@
595 select * from t1;
596 #set sql_mode= '';
597 alter table t1 modify b varchar(255);
598---error 1022,1062
599+--error ER_DUP_KEY, ER_DUP_ENTRY
600 insert into t1 values (0,4);
601 select * from t1;
602 drop table t1;
603@@ -302,7 +302,7 @@
604 INSERT INTO t1 VALUES(0, 0);
605 INSERT INTO t1 VALUES(1, 1);
606 ALTER TABLE t1 CHANGE t1 t1 INT auto_increment;
607---error 1022, ER_DUP_ENTRY
608+--error ER_DUP_KEY, ER_DUP_ENTRY
609 INSERT INTO t1 VALUES(0,0);
610 DROP TABLE t1;
611
612
613=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test'
614--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test 2010-04-06 06:52:59 +0000
615+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test 2010-08-27 21:22:40 +0000
616@@ -1,9 +1,9 @@
617 create table t1 (a int, b int not null, c int null, d int not null, pk int primary key);
618 show create table t1;
619 insert into t1 values (0,0, 0, 0,0);
620---error 1048
621+--error ER_BAD_NULL_ERROR
622 insert into t1 values (NULL, NULL, NULL, NULL, 1);
623 insert into t1 values (NULL, 1, NULL, 1, 2);
624---error 1048
625+--error ER_BAD_NULL_ERROR
626 insert into t1 values (1,2,3,NULL, 3);
627 drop table t1;
628
629=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test'
630--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test 2010-04-28 02:53:17 +0000
631+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test 2010-08-27 21:22:40 +0000
632@@ -1,6 +1,6 @@
633 CREATE TABLE t1 (a int primary key);
634 SHOW CREATE TABLE t1;
635---error 1050
636+--error ER_TABLE_EXISTS_ERROR
637 CREATE TABLE t1 (a int primary key);
638 CREATE TABLE t2 (a int primary key, b varchar(20), c bigint);
639
640
641=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test'
642--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test 2010-04-06 06:52:59 +0000
643+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test 2010-08-27 21:22:40 +0000
644@@ -2,6 +2,6 @@
645 CREATE TABLE t2 (a int primary key);
646 DROP TABLE t1;
647 DROP TABLE t2;
648---error 1051
649+--error ER_BAD_TABLE_ERROR
650 DROP TABLE t3;
651
652
653=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test'
654--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test 2010-02-24 01:42:24 +0000
655+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test 2010-08-27 21:22:40 +0000
656@@ -1,5 +1,5 @@
657 create table t1 (a int primary key);
658 insert into t1 values (1);
659---error 1022
660+--error ER_DUP_KEY
661 insert into t1 values (1);
662 drop table t1;
663
664=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test'
665--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test 2010-03-11 05:13:23 +0000
666+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test 2010-08-27 21:22:40 +0000
667@@ -3,7 +3,7 @@
668 select * from t1;
669 begin;
670 insert into t1 values (5);
671---error 1022,1062
672+--error ER_DUP_KEY, ER_DUP_ENTRY
673 insert into t1 values (1),(2),(3),(4);
674 commit;
675 select * from t1;
676
677=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test'
678--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test 2010-06-09 04:35:15 +0000
679+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test 2010-08-27 21:22:40 +0000
680@@ -5,7 +5,7 @@
681 select 1+2/*hello*/+3;
682 select 1 /* long
683 multi line comment */;
684---error 1065
685+--error ER_EMPTY_QUERY
686 ;
687 select 1 /*!32301 +1 */;
688 select 1 /*!72301 +1 */;
689
690=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test'
691--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test 2010-05-05 02:33:31 +0000
692+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test 2010-08-27 21:22:40 +0000
693@@ -6,7 +6,7 @@
694 SET GLOBAL innodb_file_format='barracuda';
695 SHOW VARIABLES LIKE 'innodb_file_format';
696 SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME='file_format';
697---error 1210
698+--error ER_WRONG_ARGUMENTS
699 SET GLOBAL innodb_file_format='broccolini';
700 SHOW VARIABLES LIKE 'innodb_file_format';
701 SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME='file_format';
702
703=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test'
704--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test 2010-06-21 05:39:42 +0000
705+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test 2010-08-27 21:22:40 +0000
706@@ -1,4 +1,4 @@
707 CREATE TABLE t1 (pk int primary key, a varbinary(767) unique);
708 drop table t1;
709---error 1071
710+--error ER_TOO_LONG_KEY
711 CREATE TABLE t1 (pk int primary key, a varbinary(4097) unique);
712
713=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test'
714--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test 2010-06-21 05:01:48 +0000
715+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test 2010-08-27 21:22:40 +0000
716@@ -1,12 +1,12 @@
717 create table t1 (a int primary key, b varchar(111), unique index b_idx (b(5)));
718 insert into t1 values (1, "foobar"),(2,"barbarbar");
719---error 1062,1022
720+--error ER_DUP_ENTRY, ER_DUP_KEY
721 insert into t1 values (3, "barbarpub");
722 select * from t1;
723 drop table t1;
724 create table t2 (a int primary key, b varbinary(111), unique index b_idx (b(5)));
725 insert into t2 values (1, "foobar"),(2,"barbarbar");
726---error 1062,1022
727+--error ER_DUP_ENTRY, ER_DUP_KEY
728 insert into t2 values (3, "barbarpub");
729 select * from t2;
730 drop table t2;
731
732=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test'
733--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test 2010-04-06 06:52:59 +0000
734+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test 2010-08-27 21:22:40 +0000
735@@ -19,14 +19,14 @@
736 select * from t1;
737
738 # The following should give errors
739---error 1050,1050
740+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
741 rename table t1 to t2;
742---error 1050,1050
743+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
744 rename table t1 to t1;
745---error 1050,1050
746+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
747 rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
748 show tables like "t_";
749---error 1050,1050
750+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
751 rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
752 --error ER_NO_SUCH_TABLE
753 rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
754
755=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test'
756--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test 2010-05-11 04:27:51 +0000
757+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test 2010-08-27 21:22:40 +0000
758@@ -12,7 +12,7 @@
759
760 create table t1 (a int not null auto_increment primary key, b char(20) default "default_value");
761 insert into t1 values (126,"first"),(63, "middle"),(1,"last");
762---error ER_DUP_ENTRY,1022
763+--error ER_DUP_ENTRY, ER_DUP_KEY
764 insert into t1 values (1,"error");
765 replace into t1 values (1,"error");
766 replace into t1 values (126,"first updated");
767
768=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test'
769--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test 2010-06-07 08:46:37 +0000
770+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test 2010-08-27 21:22:40 +0000
771@@ -1,4 +1,4 @@
772---error 1005
773+--error ER_CANT_CREATE_TABLE
774 CREATE TABLE t1 (a int) ENGINE=INNODB ROW_FORMAT=COMPRESSED;
775 SHOW WARNINGS;
776
777
778=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test'
779--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test 2010-04-27 13:00:14 +0000
780+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test 2010-08-27 21:22:40 +0000
781@@ -15,14 +15,14 @@
782 select * from t1;
783 drop table t1;
784 # The following should fail
785---error 1146
786+--error ER_NO_SUCH_TABLE
787 select count(*) from t1;
788 create table t1 (n int primary key);
789 insert into t1 values (1),(2),(3);
790 truncate table t1;
791 select * from t1;
792 drop table t1;
793---error 1146
794+--error ER_NO_SUCH_TABLE
795 truncate non_existing_table;
796
797 #
798
799=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test'
800--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test 2010-05-26 14:53:47 +0000
801+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test 2010-08-27 21:22:40 +0000
802@@ -31,13 +31,13 @@
803 # Check errors with blob
804 #
805
806---error 1101
807+--error ER_BLOB_CANT_HAVE_DEFAULT
808 CREATE TABLE t1 (a blob default "hello");
809 CREATE TABLE t2 (a varchar(256));
810 drop table t2;
811---error 1074
812+--error ER_TOO_BIG_FIELDLENGTH
813 CREATE TABLE t1 (a varchar(70000) default "hello");
814---error 1101
815+--error ER_BLOB_CANT_HAVE_DEFAULT
816 CREATE TABLE t2 (a blob default "hello");
817
818 # Safety to be able to continue with other tests if above fails
819
820=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test'
821--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test 2010-04-28 02:30:54 +0000
822+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test 2010-08-27 21:22:40 +0000
823@@ -118,7 +118,7 @@
824 select @d:=011111;
825 select year(@d), month(@d), day(@d), cast(@d as date);
826 select @d:=1311;
827---error 1686 # Invalid datetime of 1311
828+--error ER_INVALID_DATETIME_VALUE # Invalid datetime of 1311
829 select year(@d), month(@d), day(@d), cast(@d as date);
830 create table t1 (d date , dt datetime , ts timestamp, primary key (d));
831 -- error 1686 # Bad dates
832
833=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test'
834--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test 2010-04-28 02:52:03 +0000
835+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test 2010-08-27 21:22:40 +0000
836@@ -19,12 +19,12 @@
837 insert into t1 (t) values (991231235959);
838 insert into t1 (t) values (10000101000000);
839 insert into t1 (t) values (99991231235959);
840---error 1686 # Bad datetime
841+--error ER_INVALID_DATETIME_VALUE # Bad datetime
842 insert into t1 (t) values (20030100000000);
843---error 1686 # Bad datetime
844+--error ER_INVALID_DATETIME_VALUE # Bad datetime
845 insert into t1 (t) values (20030000000000);
846 select t from t1;
847---error 1686 # Bad datetime
848+--error ER_INVALID_DATETIME_VALUE # Bad datetime
849 delete from t1 where t > 0;
850 # try earliest datetime end point which is actually a friggin datetime, not a 0.
851 delete from t1 where t > "0001-01-01 00:00:00";
852@@ -35,40 +35,40 @@
853 insert into t1 (t) values("691231");
854 insert into t1 (t) values("700101");
855 insert into t1 (t) values("991231");
856---error 1686 # Bad datetime
857+--error ER_INVALID_DATETIME_VALUE # Bad datetime
858 insert into t1 (t) values("00000101");
859 insert into t1 (t) values("00010101");
860 insert into t1 (t) values("99991231");
861---error 1686 # Bad datetime
862+--error ER_INVALID_DATETIME_VALUE # Bad datetime
863 insert into t1 (t) values("00101000000");
864---error 1686 # Bad datetime
865+--error ER_INVALID_DATETIME_VALUE # Bad datetime
866 insert into t1 (t) values("691231000000");
867---error 1686 # Bad datetime
868+--error ER_INVALID_DATETIME_VALUE # Bad datetime
869 insert into t1 (t) values("700101000000");
870---error 1686 # Bad datetime
871+--error ER_INVALID_DATETIME_VALUE # Bad datetime
872 insert into t1 (t) values("991231235959");
873 insert into t1 (t) values("10000101000000");
874 insert into t1 (t) values("99991231235959");
875---error 1686 # Bad datetime
876+--error ER_INVALID_DATETIME_VALUE # Bad datetime
877 insert into t1 (t) values("20030100000000");
878---error 1686 # Bad datetime
879+--error ER_INVALID_DATETIME_VALUE # Bad datetime
880 insert into t1 (t) values("20030000000000");
881
882 # Strange dates
883---error 1686 # Bad datetime
884+--error ER_INVALID_DATETIME_VALUE # Bad datetime
885 insert into t1 (t) values ("2003-003-03");
886
887 # Bug #7308: ISO-8601 date format not handled correctly
888---error 1686 # Bad datetime
889+--error ER_INVALID_DATETIME_VALUE # Bad datetime
890 insert into t1 (t) values ("20030102T131415");
891 insert into t1 (t) values ("2001-01-01T01:01:01");
892---error 1686 # Bad datetime
893+--error ER_INVALID_DATETIME_VALUE # Bad datetime
894 insert into t1 (t) values ("2001-1-1T1:01:01");
895 select t from t1;
896
897 # Test some wrong dates
898 truncate table t1;
899---error 1686 # Bad datetime
900+--error ER_INVALID_DATETIME_VALUE # Bad datetime
901 insert into t1 (t) values("2003-0303 12:13:14");
902 select t from t1;
903 drop table t1;
904@@ -124,18 +124,18 @@
905 # warnings (for both strings and numbers)
906 #
907 create table t1 (t datetime primary key);
908---error 1686 # Bad datetime
909+--error ER_INVALID_DATETIME_VALUE # Bad datetime
910 insert into t1 values (20030102030460),(20030102036301),(20030102240401),
911 (20030132030401),(20031302030401),(100001202030401);
912 select * from t1;
913 delete from t1;
914---error 1686 # Bad datetime
915+--error ER_INVALID_DATETIME_VALUE # Bad datetime
916 insert into t1 values
917 ("2003-01-02 03:04:60"),("2003-01-02 03:63:01"),("2003-01-02 24:04:01"),
918 ("2003-01-32 03:04:01"),("2003-13-02 03:04:01"), ("10000-12-02 03:04:00");
919 select * from t1;
920 delete from t1;
921---error 1686 # Bad datetime
922+--error ER_INVALID_DATETIME_VALUE # Bad datetime
923 insert into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");
924 select * from t1 order by t;
925 drop table t1;
926@@ -148,7 +148,7 @@
927 # These dates should be treated as dates in 21st century
928 insert into t1 values ("12-01-01"), ("01-01-01 01:00:00");
929 # Zero dates are still special :/
930---error 1686 # Yeah special uh no its wrong
931+--error ER_INVALID_DATETIME_VALUE # Yeah special uh no its wrong
932 insert into t1 values ("00-00-00"), ("00-00-00 00:00:00");
933 select * from t1;
934 drop table t1;
935@@ -190,11 +190,11 @@
936 insert into t1 (da, dt) values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
937 insert into t1 set dt='2007-03-23 13:49:38',da=dt;
938 # Test error handling
939---error 1686 # Bad date
940+--error ER_INVALID_DATETIME_VALUE # Bad date
941 insert into t1 (da, dt) values ('2007-03-32','2007-03-23 13:49:38');
942 select da,dt from t1;
943 drop table t1;
944---error 1686 # Bad datetime
945+--error ER_INVALID_DATETIME_VALUE # Bad datetime
946 create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03', pk int auto_increment primary key);
947
948
949@@ -273,9 +273,9 @@
950 create table t1(f1 datetime primary key);
951 insert into t1 values('2001-01-01'),('2002-02-02');
952 select * from t1 where f1 between 20020101 and 20070101000000;
953---error 1686 # 2002010 is not a datetime.
954+--error ER_INVALID_DATETIME_VALUE # 2002010 is not a datetime.
955 select * from t1 where f1 between 2002010 and 20070101000000;
956---error 1686 # 2007010100000 is not a datetime.
957+--error ER_INVALID_DATETIME_VALUE # 2007010100000 is not a datetime.
958 select * from t1 where f1 between 20020101 and 2007010100000;
959 drop table t1;
960
961@@ -330,9 +330,9 @@
962 insert into t1 (da, dt) values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
963 insert into t1 set dt='2007-03-23 13:49:38',da=dt;
964 # Test error handling
965---error 1686 # Bad date
966+--error ER_INVALID_DATETIME_VALUE # Bad date
967 insert into t1 (da, dt) values ('2007-03-32','2007-03-23 13:49:38');
968 select da,dt from t1;
969 drop table t1;
970---error 1686 # Bad date
971+--error ER_INVALID_DATETIME_VALUE # Bad date
972 create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03' primary key);
973
974=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test'
975--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test 2010-05-27 06:09:12 +0000
976+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test 2010-08-27 21:22:40 +0000
977@@ -174,59 +174,59 @@
978 insert into t1 values ("00000000000001");
979 insert into t1 values ("+0000000000001");
980 insert into t1 values ("-0000000000001");
981---error 1264 out of range value
982+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
983 insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
984---error 1264 out of range value
985+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
986 insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
987---error 1366 incorrect decimal value
988+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
989 insert into t1 values ("1e+1000");
990---error 1366 incorrect decimal value
991+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
992 insert into t1 values ("1e-1000");
993---error 1366 incorrect decimal value
994+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
995 insert into t1 values ("-1e+1000");
996---error 1366 incorrect decimal value
997+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
998 insert into t1 values ("1e+4294967296");
999---error 1366 incorrect decimal value
1000+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1001 insert into t1 values ("1e-4294967296");
1002---error 1366 incorrect decimal value
1003+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1004 insert into t1 values ("1e+18446744073709551615");
1005---error 1366 incorrect decimal value
1006+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1007 insert into t1 values ("1e+18446744073709551616");
1008---error 1366 incorrect decimal value
1009+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1010 insert into t1 values ("1e-9223372036854775807");
1011---error 1366 incorrect decimal value
1012+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1013 insert into t1 values ("1e-9223372036854775809");
1014---error 1366 incorrect decimal value
1015-insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
1016-select * from t1;
1017-drop table t1;
1018-
1019-create table t1 (a decimal(10,2));
1020-insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
1021-insert into t1 values ("-.1"),("+.1"),(".1");
1022-insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
1023---error 1264 out of range value
1024-insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
1025---error 1264 out of range value
1026-insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
1027---error 1366 incorrect decimal value
1028-insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
1029---error 1366 incorrect decimal value
1030-insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
1031-select * from t1;
1032-drop table t1;
1033-
1034-create table t1 (a decimal(10,2));
1035-insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
1036-insert into t1 values ("-.1"),("+.1"),(".1");
1037-insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
1038---error 1264 out of range value
1039-insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
1040---error 1264 out of range value
1041-insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
1042---error 1366 incorrect decimal value
1043-insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
1044---error 1366 incorrect decimal value
1045+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1046+insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
1047+select * from t1;
1048+drop table t1;
1049+
1050+create table t1 (a decimal(10,2));
1051+insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
1052+insert into t1 values ("-.1"),("+.1"),(".1");
1053+insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
1054+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1055+insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
1056+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1057+insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
1058+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1059+insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
1060+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1061+insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
1062+select * from t1;
1063+drop table t1;
1064+
1065+create table t1 (a decimal(10,2));
1066+insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
1067+insert into t1 values ("-.1"),("+.1"),(".1");
1068+insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
1069+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1070+insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
1071+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1072+insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
1073+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1074+insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
1075+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1076 insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
1077 select * from t1;
1078 drop table t1;
1079@@ -237,18 +237,18 @@
1080 insert into t1 values (0.0),("-0.0"),(+0.0),(01.0),(+01.0),(-01.0);
1081 insert into t1 values (-.1),(+.1),(.1);
1082 insert into t1 values (00000000000001),(+0000000000001),(-0000000000001);
1083---error 1264 out of range value
1084+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1085 insert into t1 values (+111111111.11),(111111111.11),(-11111111.11);
1086---error 1264 out of range value
1087+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1088 insert into t1 values (-111111111.11),(+1111111111.11),(1111111111.11);
1089---error 1264 out of range value
1090+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1091 insert into t1 values (1e+100),(1e-100),(-1e+100);
1092 insert into t1 values (123.4e0);
1093 insert into t1 values (123.4e+2);
1094 # This INSERT statement will give an error since truncation of a
1095 # decimal number in Drizzle is an error. See bug#337038 for further
1096 # details.
1097---error 1265
1098+--error ER_WARN_DATA_TRUNCATED
1099 insert into t1 values (123.4e-2);
1100 insert into t1 values (123e1);
1101 insert into t1 values (123e+0);
1102@@ -263,33 +263,33 @@
1103 #
1104
1105 create table t1 (a decimal);
1106---error 1264 out of range value
1107+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1108 insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+12345678901'),(99999999999999);
1109 select * from t1;
1110 drop table t1;
1111 create table t1 (a decimal);
1112---error 1264 out of range value
1113-insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
1114-select * from t1;
1115-drop table t1;
1116-create table t1 (a decimal);
1117---error 1264 out of range value
1118-insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
1119-select * from t1;
1120-drop table t1;
1121-create table t1 (a decimal);
1122---error 1264 out of range value
1123+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1124+insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
1125+select * from t1;
1126+drop table t1;
1127+create table t1 (a decimal);
1128+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1129+insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
1130+select * from t1;
1131+drop table t1;
1132+create table t1 (a decimal);
1133+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1134 insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
1135 select * from t1;
1136 drop table t1;
1137
1138 # Exponent overflow bug
1139 create table t1(a decimal(10,0));
1140---error 1366 incorrect decimal value
1141+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1142 insert into t1 values ("1e4294967295");
1143 select * from t1;
1144 delete from t1;
1145---error 1366 incorrect decimal value
1146+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
1147 insert into t1 values("1e4294967297");
1148 select * from t1;
1149 drop table t1;
1150@@ -298,13 +298,13 @@
1151 # Test of wrong decimal type
1152 #
1153
1154---error 1064
1155+--error ER_PARSE_ERROR
1156 CREATE TABLE t1 (a_dec DECIMAL(-1,0));
1157---error 1064
1158+--error ER_PARSE_ERROR
1159 CREATE TABLE t1 (a_dec DECIMAL(-2,1));
1160---error 1064
1161+--error ER_PARSE_ERROR
1162 CREATE TABLE t1 (a_dec DECIMAL(-1,1));
1163---error 1427
1164+--error ER_M_BIGGER_THAN_D
1165 CREATE TABLE t1 (a_dec DECIMAL(0,11));
1166
1167 #
1168@@ -312,17 +312,17 @@
1169 #
1170 --disable_warnings
1171 create table t1(a decimal(7,3));
1172---error 1264 out of range value
1173-insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
1174-select * from t1;
1175-drop table t1;
1176-create table t1(a decimal(7,3));
1177---error 1264 out of range value
1178-insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
1179-select * from t1;
1180-drop table t1;
1181-create table t1(a decimal(7,3));
1182---error 1264 out of range value
1183+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1184+insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
1185+select * from t1;
1186+drop table t1;
1187+create table t1(a decimal(7,3));
1188+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1189+insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
1190+select * from t1;
1191+drop table t1;
1192+create table t1(a decimal(7,3));
1193+--error ER_WARN_DATA_OUT_OF_RANGE out of range value
1194 insert into t1 values ('1'),('+1'),('-1'),('0000000001'),('+0000000001'),('-0000000001'),('10'),('+10'),('-10'),('0000000010'),('+0000000010'),('-0000000010'),('100'),('+100'),('-100'),('0000000100'),('+0000000100'),('-0000000100'),('1000'),('+1000'),('-1000'),('0000001000'),('+0000001000'),('-0000001000'),('10000'),('+10000'),('-10000'),('0000010000'),('+0000010000'),('-0000010000'),('100000'),('+100000'),('-100000'),('0000100000'),('+0000100000'),('-0000100000'),('1000000'),('+1000000'),('-1000000'),('0001000000'),('+0001000000'),('-0001000000'),('10000000'),('+10000000'),('-10000000'),('0010000000'),('+0010000000'),('-0010000000'),('100000000'),('+100000000'),('-100000000'),('0100000000'),('+0100000000'),('-0100000000'),('1000000000'),('+1000000000'),('-1000000000'),('1000000000'),('+1000000000'),('-1000000000');
1195 --enable_warnings
1196 select * from t1;
1197@@ -374,7 +374,7 @@
1198 --replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
1199 show create table t1;
1200 drop table t1;
1201---error 1426
1202+--error ER_TOO_BIG_PRECISION
1203 create table t1 (d decimal(66,0));
1204
1205 #
1206@@ -447,7 +447,7 @@
1207 #
1208 # Bug#22183: Unhandled NULL caused server crash
1209 #
1210---error 1689 # 1 is not a valid Julian Day Number for SQL date range
1211+--error ER_ARGUMENT_OUT_OF_RANGE # 1 is not a valid Julian Day Number for SQL date range
1212 create table t1 as
1213 select from_days(s) as date,t
1214 from (select 1 as s,'t' as t union select null, null ) as sub1;
1215@@ -548,7 +548,7 @@
1216 # This INSERT statement will give an error since truncation of a
1217 # decimal number in Drizzle is an error. See bug#337038 for further
1218 # details.
1219---error 1265
1220+--error ER_WARN_DATA_TRUNCATED
1221 INSERT INTO t1 VALUES (999.99, 5);
1222 --replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
1223 show create table t1;
1224
1225=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test'
1226--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test 2010-04-07 05:15:47 +0000
1227+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test 2010-08-27 21:22:40 +0000
1228@@ -31,7 +31,7 @@
1229 #
1230
1231 create table t1 (a enum ('0','1') primary key);
1232---error 1691 # Bad enum
1233+--error ER_INVALID_ENUM_VALUE # Bad enum
1234 insert into t1 set a='foobar';
1235 select * from t1;
1236 update t1 set a = replace(a,'x','y');
1237@@ -142,14 +142,14 @@
1238 id INT AUTO_INCREMENT PRIMARY KEY,
1239 c1 ENUM('a', '', 'b')
1240 );
1241---error 1691 # 0 is not valid way to insert. Must use 1-based index of key.
1242+--error ER_INVALID_ENUM_VALUE # 0 is not valid way to insert. Must use 1-based index of key.
1243 INSERT INTO t1 (c1) VALUES (0), ('a'), (''), ('b');
1244---error 1691 # 0 is not valid way to insert. Must use 1-based index of key.
1245+--error ER_INVALID_ENUM_VALUE # 0 is not valid way to insert. Must use 1-based index of key.
1246 INSERT INTO t1 (c1) VALUES (0), ('a'), (''), ('b');
1247 INSERT INTO t1 (c1) VALUES ('a'), ('b');
1248 SELECT id, c1 + 0, c1 FROM t1;
1249
1250---error 1691 # Bad en
1251+--error ER_INVALID_ENUM_VALUE # Bad en
1252 ALTER TABLE t1 CHANGE c1 c1 ENUM('a', '') NOT NULL;
1253 # Below works because '' was not inserted in any statement above...
1254 ALTER TABLE t1 CHANGE c1 c1 ENUM('a', 'b') NOT NULL;
1255@@ -163,9 +163,9 @@
1256 # Bug#28729: Field_enum wrongly reported an error while storing an empty string.
1257 #
1258 create table t1(f1 enum('a','b') primary key);
1259---error 1691 # Bad enum
1260+--error ER_INVALID_ENUM_VALUE # Bad enum
1261 insert into t1 values(''),(''),('a'),('b');
1262---error 1691 # Bad enum
1263+--error ER_INVALID_ENUM_VALUE # Bad enum
1264 select * from t1 where f1='';
1265 drop table t1;
1266
1267@@ -177,7 +177,7 @@
1268 CREATE TABLE t1 (c1 ENUM('a', '', 'b') primary key);
1269 INSERT INTO t1 (c1) VALUES ('b');
1270 INSERT INTO t1 (c1) VALUES ('');
1271---error 1691 # Bad enum 0
1272+--error ER_INVALID_ENUM_VALUE # Bad enum 0
1273 INSERT INTO t1 (c1) VALUES (0);
1274 INSERT INTO t1 (c1) VALUES ('a');
1275
1276@@ -193,7 +193,7 @@
1277 #
1278
1279 CREATE TABLE t1(a enum('a','b','c','d'), pk int auto_increment primary key);
1280---error 1691 # Bad enum 0
1281+--error ER_INVALID_ENUM_VALUE # Bad enum 0
1282 INSERT INTO t1 (a) VALUES (4),(1),(0),(3);
1283 INSERT INTO t1 (a) VALUES (4),(1),(2),(3);
1284
1285@@ -212,9 +212,9 @@
1286
1287 ALTER TABLE t1 drop column pk, ADD PRIMARY KEY (a);
1288
1289---error 1691 # Bad enum 0
1290+--error ER_INVALID_ENUM_VALUE # Bad enum 0
1291 EXPLAIN SELECT a FROM t1 WHERE a=0;
1292---error 1691 # Bad enum 0
1293+--error ER_INVALID_ENUM_VALUE # Bad enum 0
1294 SELECT a FROM t1 WHERE a=0;
1295
1296 DROP TABLE t1;
1297
1298=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test'
1299--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test 2010-04-07 03:10:54 +0000
1300+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test 2010-08-27 21:22:40 +0000
1301@@ -60,9 +60,9 @@
1302 # float in a char(1) field
1303 #
1304 create table t1 (c20 char primary key);
1305---error 1406
1306+--error ER_DATA_TOO_LONG
1307 insert into t1 values (5000.0);
1308---error 1406
1309+--error ER_DATA_TOO_LONG
1310 insert into t1 values (0.5e4);
1311 drop table t1;
1312
1313@@ -76,12 +76,12 @@
1314 # Ensure that maximum values as the result of number of decimals
1315 # being specified in table schema are enforced (Bug #7361)
1316 create table t1 (f float(4,3) primary key);
1317---error 1264
1318+--error ER_WARN_DATA_OUT_OF_RANGE
1319 insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
1320 select * from t1;
1321 drop table if exists t1;
1322 create table t1 (f double(4,3) primary key);
1323---error 1264
1324+--error ER_WARN_DATA_OUT_OF_RANGE
1325 insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
1326 select * from t1;
1327 drop table if exists t1;
1328@@ -187,9 +187,9 @@
1329 # bug #12694 (float(m,d) specifications)
1330 #
1331
1332---error 1427
1333+--error ER_M_BIGGER_THAN_D
1334 create table t1 (s1 float(0,2));
1335---error 1427
1336+--error ER_M_BIGGER_THAN_D
1337 create table t1 (s1 float(1,2));
1338
1339 # Bug #28121 "INSERT or UPDATE into DOUBLE(200,0) field being truncated to 31 digits"
1340@@ -198,7 +198,7 @@
1341 create table t1 (f1 double(200, 0) primary key);
1342 insert into t1 values (1e199), (-1e199);
1343 insert into t1 values (1e200), (-1e200);
1344---error 1264
1345+--error ER_WARN_DATA_OUT_OF_RANGE
1346 insert into t1 values (2e200), (-2e200);
1347 select f1 + 0e0 from t1;
1348 drop table t1;
1349@@ -206,7 +206,7 @@
1350 create table t1 (f1 float(30, 0) primary key);
1351 insert into t1 values (1e29), (-1e29);
1352 insert into t1 values (1e30), (-1e30);
1353---error 1264
1354+--error ER_WARN_DATA_OUT_OF_RANGE
1355 insert into t1 values (2e30), (-2e30);
1356 select f1 + 0e0 from t1;
1357 drop table t1;
1358
1359=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test'
1360--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test 2010-04-27 04:31:43 +0000
1361+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test 2010-08-27 21:22:40 +0000
1362@@ -83,15 +83,15 @@
1363 # (for both strings and numbers)
1364 #
1365 create table t1 (ix timestamp primary key);
1366---error 1685 # Bad unix timestamp
1367+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad unix timestamp
1368 insert into t1 values (0),(20030101010160),(20030101016001),(20030101240101),(20030132010101),(20031301010101),(20031200000000),(20030000000000);
1369 select ix+0 from t1;
1370 truncate table t1;
1371---error 1685 # Bad unix timestamp
1372+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad unix timestamp
1373 insert into t1 values ("00000000000000"),("20030101010160"),("20030101016001"),("20030101240101"),("20030132010101"),("20031301010101"),("20031200000000"),("20030000000000");
1374 select ix+0 from t1;
1375 truncate table t1;
1376---error 1685 # Bad unix timestamp
1377+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad unix timestamp
1378 insert into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");
1379 select ix+0 from t1;
1380 drop table t1;
1381@@ -100,9 +100,9 @@
1382 # Test for TIMESTAMP column with default now() and on update now() clauses
1383 #
1384
1385---error 1293
1386+--error ER_TOO_MUCH_AUTO_TIMESTAMP_COLS
1387 create table t1 (t1 timestamp default now(), t2 timestamp on update now());
1388---error 1293
1389+--error ER_TOO_MUCH_AUTO_TIMESTAMP_COLS
1390 create table t1 (t1 timestamp on update now(), t2 timestamp default now() on update now());
1391
1392 # Let us test TIMESTAMP auto-update behaviour
1393@@ -314,12 +314,12 @@
1394 --sorted_result
1395 select * from t1;
1396 # Embedded InnoDB needs to have HailDB instead of libinnodb before this will work
1397---error 1022
1398+--error ER_DUP_KEY
1399 insert into t1 (a) values (3), (5) on duplicate key update b = 3, c = c;
1400 --sorted_result
1401 select * from t1;
1402 # Embedded InnoDB needs to have HailDB instead of libinnodb before this will work
1403---error 1022
1404+--error ER_DUP_KEY
1405 insert into t1 (a, c) values (4, '2004-04-04 00:00:00'),
1406 (6, '2006-06-06 06:06:06') on duplicate key update b = 4;
1407 --sorted_result
1408
1409=== modified file 'plugin/filesystem_engine/tests/t/basic_create_table.test'
1410--- plugin/filesystem_engine/tests/t/basic_create_table.test 2010-06-29 13:21:24 +0000
1411+++ plugin/filesystem_engine/tests/t/basic_create_table.test 2010-08-27 21:22:40 +0000
1412@@ -3,21 +3,21 @@
1413 --enable_warnings
1414
1415 # test file not existed
1416---error 1005
1417+--error ER_CANT_CREATE_TABLE
1418 CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/_FILE_NOT_EXISTED_";
1419
1420 # test col separator not empty
1421---error 1698
1422+--error ER_UNKNOWN_ENGINE_OPTION
1423 CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data",COL_SEPARATOR="";
1424
1425 # test row separator not empty
1426---error 1698
1427+--error ER_UNKNOWN_ENGINE_OPTION
1428 CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data",ROW_SEPARATOR="";
1429
1430 CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data";
1431
1432 # test table existed
1433---error 1050
1434+--error ER_TABLE_EXISTS_ERROR
1435 CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data";
1436
1437 SHOW CREATE TABLE t1;
1438
1439=== modified file 'plugin/myisam/tests/t/myisam.test'
1440--- plugin/myisam/tests/t/myisam.test 2010-08-10 18:09:11 +0000
1441+++ plugin/myisam/tests/t/myisam.test 2010-08-27 21:22:40 +0000
1442@@ -329,10 +329,10 @@
1443 # Test of creating table with too long key
1444 #
1445
1446---error 1071
1447+--error ER_TOO_LONG_KEY
1448 CREATE TEMPORARY TABLE t1 (a varchar(300), b varchar(300), c varchar(300), d varchar(300), e varchar(300), KEY t1 (a, b, c, d, e)) ENGINE=MyISAM;
1449 CREATE TEMPORARY TABLE t1 (a varchar(300), b varchar(300), c varchar(300), d varchar(300), e varchar(300)) ENGINE=MyISAM;
1450---error 1071
1451+--error ER_TOO_LONG_KEY
1452 ALTER TABLE t1 ADD INDEX t1 (a, b, c, d, e);
1453 DROP TABLE t1;
1454
1455@@ -805,15 +805,15 @@
1456 # Some errors/warnings on create
1457 #
1458
1459---error 1074
1460+--error ER_TOO_BIG_FIELDLENGTH
1461 create temporary table t1 (v varchar(65530), key(v));
1462---error 1074
1463+--error ER_TOO_BIG_FIELDLENGTH
1464 create temporary table t1 (v varchar(65536));
1465---error 1074
1466+--error ER_TOO_BIG_FIELDLENGTH
1467 create temporary table t1 (v varchar(65530));
1468
1469 # MyISAM specific varchar tests
1470---error 1074
1471+--error ER_TOO_BIG_FIELDLENGTH
1472 create temporary table t1 (v varchar(65535));
1473
1474 eval set storage_engine=$default;
1475
1476=== modified file 'plugin/pbxt/tests/t/basic_create_nullable.test'
1477--- plugin/pbxt/tests/t/basic_create_nullable.test 2010-08-12 22:49:45 +0000
1478+++ plugin/pbxt/tests/t/basic_create_nullable.test 2010-08-27 21:22:40 +0000
1479@@ -1,9 +1,9 @@
1480 create table t1 (a int, b int not null, c int null, d int not null, pk int primary key);
1481 show create table t1;
1482 insert into t1 values (0,0, 0, 0,0);
1483---error 1048
1484+--error ER_BAD_NULL_ERROR
1485 insert into t1 values (NULL, NULL, NULL, NULL, 1);
1486 insert into t1 values (NULL, 1, NULL, 1, 2);
1487---error 1048
1488+--error ER_BAD_NULL_ERROR
1489 insert into t1 values (1,2,3,NULL, 3);
1490 drop table t1;
1491
1492=== modified file 'plugin/pbxt/tests/t/basic_create_table.test'
1493--- plugin/pbxt/tests/t/basic_create_table.test 2010-08-12 22:49:45 +0000
1494+++ plugin/pbxt/tests/t/basic_create_table.test 2010-08-27 21:22:40 +0000
1495@@ -1,6 +1,6 @@
1496 CREATE TABLE t1 (a int primary key);
1497 SHOW CREATE TABLE t1;
1498---error 1050
1499+--error ER_TABLE_EXISTS_ERROR
1500 CREATE TABLE t1 (a int primary key);
1501 CREATE TABLE t2 (a int primary key, b varchar(20), c bigint);
1502
1503
1504=== modified file 'plugin/pbxt/tests/t/basic_drop_table.test'
1505--- plugin/pbxt/tests/t/basic_drop_table.test 2010-08-12 22:49:45 +0000
1506+++ plugin/pbxt/tests/t/basic_drop_table.test 2010-08-27 21:22:40 +0000
1507@@ -2,6 +2,6 @@
1508 CREATE TABLE t2 (a int primary key);
1509 DROP TABLE t1;
1510 DROP TABLE t2;
1511---error 1051
1512+--error ER_BAD_TABLE_ERROR
1513 DROP TABLE t3;
1514
1515
1516=== modified file 'plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test'
1517--- plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test 2010-08-12 22:49:45 +0000
1518+++ plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test 2010-08-27 21:22:40 +0000
1519@@ -1,5 +1,5 @@
1520 create table t1 (a int primary key);
1521 insert into t1 values (1);
1522---error 1062,1022
1523+--error ER_DUP_ENTRY, ER_DUP_KEY
1524 insert into t1 values (1);
1525 drop table t1;
1526
1527=== modified file 'plugin/pbxt/tests/t/basic_statement_rollback.test'
1528--- plugin/pbxt/tests/t/basic_statement_rollback.test 2010-08-12 22:49:45 +0000
1529+++ plugin/pbxt/tests/t/basic_statement_rollback.test 2010-08-27 21:22:40 +0000
1530@@ -3,7 +3,7 @@
1531 select * from t1;
1532 begin;
1533 insert into t1 values (5);
1534---error 1022,1062
1535+--error ER_DUP_KEY, ER_DUP_ENTRY
1536 insert into t1 values (1),(2),(3),(4);
1537 commit;
1538 select * from t1;
1539
1540=== modified file 'plugin/rand_function/tests/t/basic.test'
1541--- plugin/rand_function/tests/t/basic.test 2010-06-04 09:22:02 +0000
1542+++ plugin/rand_function/tests/t/basic.test 2010-08-27 21:22:40 +0000
1543@@ -3,7 +3,7 @@
1544 # Bug #7281: problem with rand()
1545 #
1546
1547---error 1054
1548+--error ER_BAD_FIELD_ERROR
1549 select rand(rand);
1550
1551 #
1552
1553=== modified file 'plugin/schema_dictionary/tests/t/no_default.test'
1554--- plugin/schema_dictionary/tests/t/no_default.test 2010-03-17 13:39:11 +0000
1555+++ plugin/schema_dictionary/tests/t/no_default.test 2010-08-27 21:22:40 +0000
1556@@ -1,5 +1,5 @@
1557 create table t1 (a int primary key);
1558---error 1364
1559+--error ER_NO_DEFAULT_FOR_FIELD
1560 insert into t1 values ();
1561 select COLUMN_NAME,COLUMN_DEFAULT,COLUMN_DEFAULT_IS_NULL FROM DATA_DICTIONARY.COLUMNS WHERE TABLE_SCHEMA="test" AND TABLE_NAME="t1";
1562 drop table t1;
1563
1564=== modified file 'plugin/show_schema_proto/tests/t/basic.test'
1565--- plugin/show_schema_proto/tests/t/basic.test 2010-03-16 23:42:10 +0000
1566+++ plugin/show_schema_proto/tests/t/basic.test 2010-08-27 21:22:40 +0000
1567@@ -10,7 +10,7 @@
1568 #
1569 #
1570 ##SELECT SHOW_SCHEMA_PROTO('test');
1571---error 1049
1572+--error ER_BAD_DB_ERROR
1573 SELECT SHOW_SCHEMA_PROTO('not_exists');
1574 #CREATE DATABASE foobar COLLATE = utf8_bin;
1575 #SELECT SHOW_SCHEMA_PROTO('foobar');
1576
1577=== modified file 'plugin/sleep/tests/t/sleep.test'
1578--- plugin/sleep/tests/t/sleep.test 2010-03-03 20:57:45 +0000
1579+++ plugin/sleep/tests/t/sleep.test 2010-08-27 21:22:40 +0000
1580@@ -1,6 +1,6 @@
1581---error 1582
1582+--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
1583 select sleep();
1584---error 1582
1585+--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
1586 select sleep(10,10);
1587 select sleep('a');
1588 show warnings;
1589
1590=== modified file 'plugin/tableprototester/tests/t/drop_table.test'
1591--- plugin/tableprototester/tests/t/drop_table.test 2010-03-27 21:22:09 +0000
1592+++ plugin/tableprototester/tests/t/drop_table.test 2010-08-27 21:22:40 +0000
1593@@ -1,2 +1,2 @@
1594---error 1693
1595+--error ER_CORRUPT_TABLE_DEFINITION
1596 DROP TABLE t1;
1597
1598=== modified file 'plugin/tableprototester/tests/t/invalid_table_collation.test'
1599--- plugin/tableprototester/tests/t/invalid_table_collation.test 2010-07-05 03:25:34 +0000
1600+++ plugin/tableprototester/tests/t/invalid_table_collation.test 2010-08-27 21:22:40 +0000
1601@@ -1,3 +1,3 @@
1602---error 1693
1603+--error ER_CORRUPT_TABLE_DEFINITION
1604 SHOW CREATE TABLE test.invalid_table_collation;
1605
1606
1607=== modified file 'plugin/tableprototester/tests/t/missing_engine.test'
1608--- plugin/tableprototester/tests/t/missing_engine.test 2010-06-03 04:49:12 +0000
1609+++ plugin/tableprototester/tests/t/missing_engine.test 2010-08-27 21:22:40 +0000
1610@@ -1,5 +1,5 @@
1611
1612 SHOW TABLES like 't1';
1613
1614---error 1693
1615+--error ER_CORRUPT_TABLE_DEFINITION
1616 SHOW CREATE TABLE t1;
1617
1618=== modified file 'plugin/tableprototester/tests/t/too_many_enum_values.test'
1619--- plugin/tableprototester/tests/t/too_many_enum_values.test 2010-06-03 07:57:13 +0000
1620+++ plugin/tableprototester/tests/t/too_many_enum_values.test 2010-08-27 21:22:40 +0000
1621@@ -1,5 +1,5 @@
1622---error 1693
1623+--error ER_CORRUPT_TABLE_DEFINITION
1624 SHOW CREATE TABLE too_many_enum_values;
1625---error 1693
1626+--error ER_CORRUPT_TABLE_DEFINITION
1627 SELECT * FROM too_many_enum_values;
1628
1629
1630=== modified file 'tests/suite/broken/t/packet.test'
1631--- tests/suite/broken/t/packet.test 2008-10-18 15:43:20 +0000
1632+++ tests/suite/broken/t/packet.test 2010-08-27 21:22:40 +0000
1633@@ -20,7 +20,7 @@
1634 connect (con2,localhost,root,,);
1635 connection con2;
1636 select @@net_buffer_length, @@max_allowed_packet;
1637---error 1153
1638+--error ER_NET_PACKET_TOO_LARGE
1639 SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
1640 set global max_allowed_packet=default;
1641 set max_allowed_packet=default;
1642
1643=== modified file 'tests/suite/broken/t/strict-date.test'
1644--- tests/suite/broken/t/strict-date.test 2009-01-12 02:31:02 +0000
1645+++ tests/suite/broken/t/strict-date.test 2010-08-27 21:22:40 +0000
1646@@ -16,42 +16,42 @@
1647
1648 # All test cases expected to fail should return
1649 # SQLSTATE 22007 <invalid date value>
1650---error 1292
1651+--error ER_TRUNCATED_WRONG_VALUE
1652 INSERT INTO t1 VALUES('2004-0-31');
1653---error 1292
1654+--error ER_TRUNCATED_WRONG_VALUE
1655 INSERT INTO t1 VALUES('2004-01-02'),('2004-0-31');
1656---error 1292
1657+--error ER_TRUNCATED_WRONG_VALUE
1658 INSERT INTO t1 VALUES('2004-10-0');
1659---error 1292
1660+--error ER_TRUNCATED_WRONG_VALUE
1661 INSERT INTO t1 VALUES('2004-09-31');
1662---error 1292
1663+--error ER_TRUNCATED_WRONG_VALUE
1664 INSERT INTO t1 VALUES('2004-10-32');
1665---error 1292
1666+--error ER_TRUNCATED_WRONG_VALUE
1667 INSERT INTO t1 VALUES('2003-02-29');
1668---error 1292
1669+--error ER_TRUNCATED_WRONG_VALUE
1670 INSERT INTO t1 VALUES('2004-13-15');
1671---error 1292
1672+--error ER_TRUNCATED_WRONG_VALUE
1673 INSERT INTO t1 VALUES('0000-00-00');
1674 # Standard says we should return SQLSTATE 22018
1675---error 1292
1676+--error ER_TRUNCATED_WRONG_VALUE
1677 INSERT INTO t1 VALUES ('59');
1678
1679 # Test the different related modes
1680 set @@sql_mode='STRICT_ALL_TABLES';
1681 INSERT INTO t1 VALUES('2004-01-03'),('2004-0-31');
1682 set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
1683---error 1292
1684+--error ER_TRUNCATED_WRONG_VALUE
1685 INSERT INTO t1 VALUES('2004-0-30');
1686---error 1292
1687+--error ER_TRUNCATED_WRONG_VALUE
1688 INSERT INTO t1 VALUES('2004-01-04'),('2004-0-31'),('2004-01-05');
1689 INSERT INTO t1 VALUES('0000-00-00');
1690 INSERT IGNORE INTO t1 VALUES('2004-0-29');
1691 set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
1692---error 1292
1693+--error ER_TRUNCATED_WRONG_VALUE
1694 INSERT INTO t1 VALUES('0000-00-00');
1695 INSERT IGNORE INTO t1 VALUES('0000-00-00');
1696 INSERT INTO t1 VALUES ('2004-0-30');
1697---error 1292
1698+--error ER_TRUNCATED_WRONG_VALUE
1699 INSERT INTO t1 VALUES ('2004-2-30');
1700 set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
1701 INSERT INTO t1 VALUES ('2004-2-30');
1702@@ -64,11 +64,11 @@
1703
1704 set @@sql_mode='strict_trans_tables';
1705 CREATE TABLE t1 (col1 date) engine=myisam;
1706---error 1292
1707+--error ER_TRUNCATED_WRONG_VALUE
1708 INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
1709 INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
1710 INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
1711---error 1292
1712+--error ER_TRUNCATED_WRONG_VALUE
1713 INSERT INTO t1 VALUES ('2003-02-29');
1714 INSERT ignore INTO t1 VALUES('2003-02-30');
1715 set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
1716@@ -78,12 +78,12 @@
1717
1718 set @@sql_mode='strict_trans_tables';
1719 CREATE TABLE t1 (col1 date) engine=innodb;
1720---error 1292
1721+--error ER_TRUNCATED_WRONG_VALUE
1722 INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
1723---error 1292
1724+--error ER_TRUNCATED_WRONG_VALUE
1725 INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
1726 INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
1727---error 1292
1728+--error ER_TRUNCATED_WRONG_VALUE
1729 INSERT INTO t1 VALUES ('2003-02-29');
1730 INSERT ignore INTO t1 VALUES('2003-02-30');
1731 set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
1732@@ -100,22 +100,22 @@
1733
1734 # All test cases expected to fail should return
1735 # SQLSTATE 22007 <invalid datetime value>
1736---error 1292
1737+--error ER_TRUNCATED_WRONG_VALUE
1738 INSERT INTO t1 VALUES('2004-0-31 15:30:00');
1739---error 1292
1740+--error ER_TRUNCATED_WRONG_VALUE
1741 INSERT INTO t1 VALUES('2004-10-0 15:30:00');
1742---error 1292
1743+--error ER_TRUNCATED_WRONG_VALUE
1744 INSERT INTO t1 VALUES('2004-09-31 15:30:00');
1745---error 1292
1746+--error ER_TRUNCATED_WRONG_VALUE
1747 INSERT INTO t1 VALUES('2004-10-32 15:30:00');
1748---error 1292
1749+--error ER_TRUNCATED_WRONG_VALUE
1750 INSERT INTO t1 VALUES('2003-02-29 15:30:00');
1751---error 1292
1752+--error ER_TRUNCATED_WRONG_VALUE
1753 INSERT INTO t1 VALUES('2004-13-15 15:30:00');
1754---error 1292
1755+--error ER_TRUNCATED_WRONG_VALUE
1756 INSERT INTO t1 VALUES('0000-00-00 15:30:00');
1757 # Standard says we should return SQLSTATE 22018
1758---error 1292
1759+--error ER_TRUNCATED_WRONG_VALUE
1760 INSERT INTO t1 VALUES ('59');
1761 select * from t1;
1762 drop table t1;
1763@@ -129,49 +129,49 @@
1764 # All test cases expected to fail should return
1765 # SQLSTATE 22007 <invalid datetime value>
1766 # Standard says we should return ok, but we can't as this is out of range
1767---error 1292
1768+--error ER_TRUNCATED_WRONG_VALUE
1769 INSERT INTO t1 VALUES('0000-10-31 15:30:00');
1770---error 1292
1771+--error ER_TRUNCATED_WRONG_VALUE
1772 INSERT INTO t1 VALUES('2004-0-31 15:30:00');
1773---error 1292
1774+--error ER_TRUNCATED_WRONG_VALUE
1775 INSERT INTO t1 VALUES('2004-10-0 15:30:00');
1776---error 1292
1777+--error ER_TRUNCATED_WRONG_VALUE
1778 INSERT INTO t1 VALUES('2004-09-31 15:30:00');
1779---error 1292
1780+--error ER_TRUNCATED_WRONG_VALUE
1781 INSERT INTO t1 VALUES('2004-10-32 15:30:00');
1782---error 1292
1783+--error ER_TRUNCATED_WRONG_VALUE
1784 INSERT INTO t1 VALUES('2003-02-29 15:30:00');
1785---error 1292
1786+--error ER_TRUNCATED_WRONG_VALUE
1787 INSERT INTO t1 VALUES('2004-13-15 15:30:00');
1788---error 1292
1789+--error ER_TRUNCATED_WRONG_VALUE
1790 INSERT INTO t1 VALUES('2004-02-29 25:30:00');
1791---error 1292
1792+--error ER_TRUNCATED_WRONG_VALUE
1793 INSERT INTO t1 VALUES('2004-02-29 15:65:00');
1794---error 1292
1795+--error ER_TRUNCATED_WRONG_VALUE
1796 INSERT INTO t1 VALUES('2004-02-29 15:31:61');
1797---error 1292
1798+--error ER_TRUNCATED_WRONG_VALUE
1799 INSERT INTO t1 VALUES('0000-00-00 15:30:00');
1800---error 1292
1801+--error ER_TRUNCATED_WRONG_VALUE
1802 INSERT INTO t1 VALUES('0000-00-00 00:00:00');
1803 INSERT IGNORE INTO t1 VALUES('0000-00-00 00:00:00');
1804 # Standard says we should return SQLSTATE 22018
1805---error 1292
1806+--error ER_TRUNCATED_WRONG_VALUE
1807 INSERT INTO t1 VALUES ('59');
1808
1809 set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
1810---error 1292
1811+--error ER_TRUNCATED_WRONG_VALUE
1812 INSERT INTO t1 VALUES('2004-0-31 15:30:00');
1813---error 1292
1814+--error ER_TRUNCATED_WRONG_VALUE
1815 INSERT INTO t1 VALUES('2004-10-0 15:30:00');
1816---error 1292
1817+--error ER_TRUNCATED_WRONG_VALUE
1818 INSERT INTO t1 VALUES('2004-10-32 15:30:00');
1819---error 1292
1820+--error ER_TRUNCATED_WRONG_VALUE
1821 INSERT INTO t1 VALUES('2004-02-30 15:30:04');
1822 INSERT INTO t1 VALUES('0000-00-00 00:00:00');
1823 set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
1824 INSERT INTO t1 VALUES('0000-00-00 00:00:00');
1825 set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
1826---error 1292
1827+--error ER_TRUNCATED_WRONG_VALUE
1828 INSERT INTO t1 VALUES('0000-00-00 00:00:00');
1829 set @@sql_mode='ansi,traditional';
1830 SELECT * FROM t1;
1831@@ -191,19 +191,19 @@
1832
1833 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
1834
1835---error 1292
1836+--error ER_TRUNCATED_WRONG_VALUE
1837 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
1838---error 1292
1839+--error ER_TRUNCATED_WRONG_VALUE
1840 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
1841---error 1292
1842+--error ER_TRUNCATED_WRONG_VALUE
1843 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
1844---error 1411
1845+--error ER_WRONG_VALUE_FOR_TYPE
1846 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
1847---error 1292
1848+--error ER_TRUNCATED_WRONG_VALUE
1849 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
1850---error 1411
1851+--error ER_WRONG_VALUE_FOR_TYPE
1852 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
1853---error 1292
1854+--error ER_TRUNCATED_WRONG_VALUE
1855 INSERT INTO t1 (col1) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
1856
1857 ## Test INSERT with STR_TO_DATE into DATETIME
1858@@ -212,40 +212,40 @@
1859
1860 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
1861
1862---error 1292
1863+--error ER_TRUNCATED_WRONG_VALUE
1864 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
1865---error 1292
1866+--error ER_TRUNCATED_WRONG_VALUE
1867 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
1868---error 1292
1869+--error ER_TRUNCATED_WRONG_VALUE
1870 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
1871---error 1411
1872+--error ER_WRONG_VALUE_FOR_TYPE
1873 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
1874---error 1292
1875+--error ER_TRUNCATED_WRONG_VALUE
1876 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
1877---error 1411
1878+--error ER_WRONG_VALUE_FOR_TYPE
1879 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
1880---error 1292
1881+--error ER_TRUNCATED_WRONG_VALUE
1882 INSERT INTO t1 (col2) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
1883
1884 ## Test INSERT with STR_TO_DATE into TIMESTAMP
1885 # All test cases expected to fail should return
1886 # SQLSTATE 22007 <invalid datetime value>
1887
1888---error 1292
1889+--error ER_TRUNCATED_WRONG_VALUE
1890 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
1891---error 1292
1892+--error ER_TRUNCATED_WRONG_VALUE
1893 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
1894---error 1292
1895+--error ER_TRUNCATED_WRONG_VALUE
1896 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
1897---error 1292
1898+--error ER_TRUNCATED_WRONG_VALUE
1899 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
1900---error 1411
1901+--error ER_WRONG_VALUE_FOR_TYPE
1902 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
1903---error 1292
1904+--error ER_TRUNCATED_WRONG_VALUE
1905 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
1906---error 1411
1907+--error ER_WRONG_VALUE_FOR_TYPE
1908 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
1909---error 1292
1910+--error ER_TRUNCATED_WRONG_VALUE
1911 INSERT INTO t1 (col3) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
1912
1913 drop table t1;
1914@@ -265,25 +265,25 @@
1915
1916 INSERT INTO t1 (col1) VALUES(CAST('0000-10-31' AS DATE));
1917
1918---error 1292
1919+--error ER_TRUNCATED_WRONG_VALUE
1920 INSERT INTO t1 (col1) VALUES(CAST('2004-10-0' AS DATE));
1921---error 1292
1922+--error ER_TRUNCATED_WRONG_VALUE
1923 INSERT INTO t1 (col1) VALUES(CAST('2004-0-10' AS DATE));
1924
1925 # deactivated because of Bug#8294
1926 # Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
1927-# --error 1292
1928+# --error ER_TRUNCATED_WRONG_VALUE
1929 # INSERT INTO t1 (col1) VALUES(CAST('2004-9-31' AS DATE));
1930-# --error 1292
1931+# --error ER_TRUNCATED_WRONG_VALUE
1932 # INSERT INTO t1 (col1) VALUES(CAST('2004-10-32' AS DATE));
1933-# --error 1292
1934+# --error ER_TRUNCATED_WRONG_VALUE
1935 # INSERT INTO t1 (col1) VALUES(CAST('2003-02-29' AS DATE));
1936-# --error 1292
1937+# --error ER_TRUNCATED_WRONG_VALUE
1938 # INSERT INTO t1 (col1) VALUES(CAST('2004-13-15' AS DATE));
1939
1940 # deactivated because of Bug#6145
1941 # Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
1942---error 1292
1943+--error ER_TRUNCATED_WRONG_VALUE
1944 INSERT INTO t1 (col1) VALUES(CAST('0000-00-00' AS DATE));
1945
1946 ## Test INSERT with CAST AS DATETIME into DATETIME
1947@@ -292,53 +292,53 @@
1948
1949 INSERT INTO t1 (col2) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
1950
1951---error 1292
1952+--error ER_TRUNCATED_WRONG_VALUE
1953 INSERT INTO t1 (col2) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
1954---error 1292
1955+--error ER_TRUNCATED_WRONG_VALUE
1956 INSERT INTO t1 (col2) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
1957
1958 # deactivated because of Bug#8294
1959 # Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
1960-#--error 1292
1961+#--error ER_TRUNCATED_WRONG_VALUE
1962 #INSERT INTO t1 (col2) VALUES(CAST('2004-9-31 15:30' AS DATETIME));
1963-#--error 1292
1964+#--error ER_TRUNCATED_WRONG_VALUE
1965 #INSERT INTO t1 (col2) VALUES(CAST('2004-10-32 15:30' AS DATETIME));
1966-#--error 1292
1967+#--error ER_TRUNCATED_WRONG_VALUE
1968 #INSERT INTO t1 (col2) VALUES(CAST('2003-02-29 15:30' AS DATETIME));
1969-#--error 1292
1970+#--error ER_TRUNCATED_WRONG_VALUE
1971 #INSERT INTO t1 (col2) VALUES(CAST('2004-13-15 15:30' AS DATETIME));
1972
1973 # Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
1974---error 1292
1975+--error ER_TRUNCATED_WRONG_VALUE
1976 INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME));
1977
1978 ## Test INSERT with CAST AS DATETIME into TIMESTAMP
1979 # All test cases expected to fail should return
1980 # SQLSTATE 22007 <invalid datetime value>
1981---error 1292
1982+--error ER_TRUNCATED_WRONG_VALUE
1983 INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
1984 # should return OK
1985 # We accept this to be a failure
1986
1987---error 1292
1988+--error ER_TRUNCATED_WRONG_VALUE
1989 INSERT INTO t1 (col3) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
1990---error 1292
1991+--error ER_TRUNCATED_WRONG_VALUE
1992 INSERT INTO t1 (col3) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
1993 # should return SQLSTATE 22007 <invalid datetime value>
1994
1995 # deactivated because of Bug#8294
1996 # Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
1997-#--error 1292
1998+#--error ER_TRUNCATED_WRONG_VALUE
1999 #INSERT INTO t1 (col3) VALUES(CAST('2004-9-31 15:30' AS DATETIME));
2000-#--error 1292
2001+#--error ER_TRUNCATED_WRONG_VALUE
2002 #INSERT INTO t1 (col3) VALUES(CAST('2004-10-32 15:30' AS DATETIME));
2003-#--error 1292
2004+#--error ER_TRUNCATED_WRONG_VALUE
2005 #INSERT INTO t1 (col3) VALUES(CAST('2003-02-29 15:30' AS DATETIME));
2006-#--error 1292
2007+#--error ER_TRUNCATED_WRONG_VALUE
2008 #INSERT INTO t1 (col3) VALUES(CAST('2004-13-15 15:30' AS DATETIME));
2009
2010 # Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
2011---error 1292
2012+--error ER_TRUNCATED_WRONG_VALUE
2013 INSERT INTO t1 (col3) VALUES(CAST('0000-00-00' AS DATETIME));
2014
2015 drop table t1;
2016@@ -359,24 +359,24 @@
2017
2018 INSERT INTO t1 (col1) VALUES(CONVERT('0000-10-31' , DATE));
2019
2020---error 1292
2021+--error ER_TRUNCATED_WRONG_VALUE
2022 INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-0' , DATE));
2023---error 1292
2024+--error ER_TRUNCATED_WRONG_VALUE
2025 INSERT INTO t1 (col1) VALUES(CONVERT('2004-0-10' , DATE));
2026
2027 # deactivated because of Bug#8294
2028 # Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
2029-#--error 1292
2030+#--error ER_TRUNCATED_WRONG_VALUE
2031 #INSERT INTO t1 (col1) VALUES(CONVERT('2004-9-31' , DATE));
2032-#--error 1292
2033+#--error ER_TRUNCATED_WRONG_VALUE
2034 #INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-32' , DATE));
2035-#--error 1292
2036+#--error ER_TRUNCATED_WRONG_VALUE
2037 #INSERT INTO t1 (col1) VALUES(CONVERT('2003-02-29' , DATE));
2038-#--error 1292
2039+#--error ER_TRUNCATED_WRONG_VALUE
2040 #INSERT INTO t1 (col1) VALUES(CONVERT('2004-13-15',DATE));
2041
2042 # Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
2043---error 1292
2044+--error ER_TRUNCATED_WRONG_VALUE
2045 INSERT INTO t1 (col1) VALUES(CONVERT('0000-00-00',DATE));
2046
2047 ## Test INSERT with CONVERT to DATETIME into DATETIME
2048@@ -385,52 +385,52 @@
2049
2050 INSERT INTO t1 (col2) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
2051
2052---error 1292
2053+--error ER_TRUNCATED_WRONG_VALUE
2054 INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
2055---error 1292
2056+--error ER_TRUNCATED_WRONG_VALUE
2057 INSERT INTO t1 (col2) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
2058
2059 # deactivated because of Bug#8294
2060 # Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
2061-#--error 1292
2062+#--error ER_TRUNCATED_WRONG_VALUE
2063 #INSERT INTO t1 (col2) VALUES(CONVERT('2004-9-31 15:30',DATETIME));
2064-#--error 1292
2065+#--error ER_TRUNCATED_WRONG_VALUE
2066 #INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-32 15:30',DATETIME));
2067-#--error 1292
2068+#--error ER_TRUNCATED_WRONG_VALUE
2069 #INSERT INTO t1 (col2) VALUES(CONVERT('2003-02-29 15:30',DATETIME));
2070-#--error 1292
2071+#--error ER_TRUNCATED_WRONG_VALUE
2072 #INSERT INTO t1 (col2) VALUES(CONVERT('2004-13-15 15:30',DATETIME));
2073
2074 # Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
2075---error 1292
2076+--error ER_TRUNCATED_WRONG_VALUE
2077 INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME));
2078
2079 ## Test INSERT with CONVERT to DATETIME into DATETIME
2080 # All test cases expected to fail should return
2081 # SQLSTATE 22007 <invalid datetime value>
2082---error 1292
2083+--error ER_TRUNCATED_WRONG_VALUE
2084 INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
2085 # should return OK
2086 # We accept this to be a failure
2087
2088---error 1292
2089+--error ER_TRUNCATED_WRONG_VALUE
2090 INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
2091---error 1292
2092+--error ER_TRUNCATED_WRONG_VALUE
2093 INSERT INTO t1 (col3) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
2094
2095 # deactivated because of Bug#8294
2096 # Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
2097-#--error 1292
2098+#--error ER_TRUNCATED_WRONG_VALUE
2099 #INSERT INTO t1 (col3) VALUES(CONVERT('2004-9-31 15:30',DATETIME));
2100-#--error 1292
2101+#--error ER_TRUNCATED_WRONG_VALUE
2102 #INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-32 15:30',DATETIME));
2103-#--error 1292
2104+#--error ER_TRUNCATED_WRONG_VALUE
2105 #INSERT INTO t1 (col3) VALUES(CONVERT('2003-02-29 15:30',DATETIME));
2106-#--error 1292
2107+#--error ER_TRUNCATED_WRONG_VALUE
2108 #INSERT INTO t1 (col3) VALUES(CONVERT('2004-13-15 15:30',DATETIME));
2109
2110 # Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
2111---error 1292
2112+--error ER_TRUNCATED_WRONG_VALUE
2113 INSERT INTO t1 (col3) VALUES(CONVERT('0000-00-00',DATETIME));
2114
2115 drop table t1;
2116@@ -440,13 +440,13 @@
2117 #
2118
2119 create table t1 (col1 date, col2 datetime, col3 timestamp);
2120---error 1292
2121+--error ER_TRUNCATED_WRONG_VALUE
2122 insert into t1 values (0,0,0);
2123---error 1292
2124+--error ER_TRUNCATED_WRONG_VALUE
2125 insert into t1 values (0.0,0.0,0.0);
2126---error 1292
2127+--error ER_TRUNCATED_WRONG_VALUE
2128 insert into t1 (col1) values (convert('0000-00-00',date));
2129---error 1292
2130+--error ER_TRUNCATED_WRONG_VALUE
2131 insert into t1 (col1) values (cast('0000-00-00' as date));
2132
2133 set sql_mode='no_zero_date';
2134@@ -456,16 +456,16 @@
2135 set sql_mode='traditional';
2136 create table t1 (col1 date);
2137 insert ignore into t1 values ('0000-00-00');
2138---error 1292
2139+--error ER_TRUNCATED_WRONG_VALUE
2140 insert into t1 select * from t1;
2141 insert ignore into t1 values ('0000-00-00');
2142 insert ignore into t1 (col1) values (cast('0000-00-00' as date));
2143---error 1292
2144+--error ER_TRUNCATED_WRONG_VALUE
2145 insert into t1 select * from t1;
2146---error 1292
2147+--error ER_TRUNCATED_WRONG_VALUE
2148 alter table t1 modify col1 datetime;
2149 alter ignore table t1 modify col1 datetime;
2150---error 1292
2151+--error ER_TRUNCATED_WRONG_VALUE
2152 insert into t1 select * from t1;
2153 select * from t1;
2154 drop table t1;
2155@@ -474,12 +474,12 @@
2156 # Bug #5906: handle invalid date due to conversion
2157 #
2158 create table t1 (d date);
2159---error 1292
2160+--error ER_TRUNCATED_WRONG_VALUE
2161 insert into t1 values ('2000-10-00');
2162---error 1292
2163+--error ER_TRUNCATED_WRONG_VALUE
2164 insert into t1 values (1000);
2165 insert into t1 values ('2000-10-01');
2166---error 1292
2167+--error ER_TRUNCATED_WRONG_VALUE
2168 update t1 set d = 1100;
2169 select * from t1;
2170 drop table t1;
2171
2172=== modified file 'tests/suite/jp/t/jp_like_utf8.test'
2173--- tests/suite/jp/t/jp_like_utf8.test 2010-06-22 19:48:34 +0000
2174+++ tests/suite/jp/t/jp_like_utf8.test 2010-08-27 21:22:40 +0000
2175@@ -30,15 +30,15 @@
2176 # jisx0212 supplemental character data
2177
2178 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;
2179---error 1406
2180+--error ER_DATA_TOO_LONG
2181 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;
2182 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;
2183 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;
2184---error 1406
2185+--error ER_DATA_TOO_LONG
2186 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;
2187 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;
2188 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;
2189---error 1406
2190+--error ER_DATA_TOO_LONG
2191 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;
2192 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;
2193
2194
2195=== modified file 'tests/suite/jp/t/jp_select_utf8.test'
2196--- tests/suite/jp/t/jp_select_utf8.test 2010-06-22 19:48:34 +0000
2197+++ tests/suite/jp/t/jp_select_utf8.test 2010-08-27 21:22:40 +0000
2198@@ -30,15 +30,15 @@
2199 # jisx0212 supplemental character data
2200
2201 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;
2202---error 1406
2203+--error ER_DATA_TOO_LONG
2204 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;
2205 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;
2206 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;
2207---error 1406
2208+--error ER_DATA_TOO_LONG
2209 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;
2210 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;
2211 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;
2212---error 1406
2213+--error ER_DATA_TOO_LONG
2214 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;
2215 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;
2216
2217
2218=== modified file 'tests/suite/jp/t/jp_where_utf8.test'
2219--- tests/suite/jp/t/jp_where_utf8.test 2010-06-22 19:48:34 +0000
2220+++ tests/suite/jp/t/jp_where_utf8.test 2010-08-27 21:22:40 +0000
2221@@ -30,15 +30,15 @@
2222 # jisx0212 supplemental character data
2223
2224 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;
2225---error 1406
2226+--error ER_DATA_TOO_LONG
2227 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;
2228 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;
2229 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;
2230---error 1406
2231+--error ER_DATA_TOO_LONG
2232 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;
2233 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;
2234 LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;
2235---error 1406
2236+--error ER_DATA_TOO_LONG
2237 LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;
2238 LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;
2239
2240
2241=== modified file 'tests/t/almost_full.test'
2242--- tests/t/almost_full.test 2010-08-13 17:44:18 +0000
2243+++ tests/t/almost_full.test 2010-08-27 21:22:40 +0000
2244@@ -21,11 +21,11 @@
2245
2246 #DELETE FROM t1 WHERE a=1 or a=5;
2247
2248-#--error 1114
2249+#--error ER_RECORD_FILE_FULL
2250 #INSERT INTO t1 SET b=repeat('a',600);
2251 #CHECK TABLE t1 EXTENDED;
2252
2253-#--error 1114
2254+#--error ER_RECORD_FILE_FULL
2255 #UPDATE t1 SET b=repeat('a', 800) where a=10;
2256 #CHECK TABLE t1 EXTENDED;
2257
2258
2259=== modified file 'tests/t/alter_column_drop_default.test'
2260--- tests/t/alter_column_drop_default.test 2009-05-19 07:45:34 +0000
2261+++ tests/t/alter_column_drop_default.test 2010-08-27 21:22:40 +0000
2262@@ -2,7 +2,7 @@
2263 INSERT INTO t1 values ();
2264 SELECT * FROM t1;
2265 ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
2266---error 1364
2267+--error ER_NO_DEFAULT_FOR_FIELD
2268 INSERT INTO t1 values ();
2269 INSERT INTO t1 (a) VALUES (11);
2270 SELECT * FROM t1 ORDER BY a;
2271
2272=== modified file 'tests/t/alter_table.test'
2273--- tests/t/alter_table.test 2010-06-08 05:20:09 +0000
2274+++ tests/t/alter_table.test 2010-08-27 21:22:40 +0000
2275@@ -522,11 +522,11 @@
2276 #create table t1(f1 int);
2277 #alter table t1 add column f2 datetime not null, add column f21 date not null;
2278 #insert into t1 values(1,'2000-01-01','2000-01-01');
2279-#--error 1292
2280+#--error ER_TRUNCATED_WRONG_VALUE
2281 #alter table t1 add column f3 datetime not null;
2282-#--error 1292
2283+#--error ER_TRUNCATED_WRONG_VALUE
2284 #alter table t1 add column f3 date not null;
2285-#--error 1292
2286+#--error ER_TRUNCATED_WRONG_VALUE
2287 #alter table t1 add column f4 datetime not null default '2002-02-02',
2288 # add column f41 date not null;
2289 #alter table t1 add column f4 datetime not null default '2002-02-02',
2290
2291=== modified file 'tests/t/alter_table_options.test'
2292--- tests/t/alter_table_options.test 2010-05-12 21:58:06 +0000
2293+++ tests/t/alter_table_options.test 2010-08-27 21:22:40 +0000
2294@@ -1,5 +1,5 @@
2295 CREATE TABLE t1 (a int);
2296---error 1698
2297+--error ER_UNKNOWN_ENGINE_OPTION
2298 ALTER TABLE t1 FOO=BAR, INVALIDFOOBAR=0;
2299 SHOW WARNINGS;
2300 DROP TABLE t1;
2301
2302=== modified file 'tests/t/analyze.test'
2303--- tests/t/analyze.test 2010-05-12 21:58:06 +0000
2304+++ tests/t/analyze.test 2010-08-27 21:22:40 +0000
2305@@ -64,9 +64,9 @@
2306 # Bug #30495: optimize table t1,t2,t3 extended errors
2307 #
2308 #create table t1(a int);
2309-#--error 1064
2310+#--error ER_PARSE_ERROR
2311 #analyze table t1 extended;
2312-#--error 1064
2313+#--error ER_PARSE_ERROR
2314 #optimize table t1 extended;
2315 #drop table t1;
2316
2317
2318=== modified file 'tests/t/auto_increment.test'
2319--- tests/t/auto_increment.test 2010-03-09 22:42:17 +0000
2320+++ tests/t/auto_increment.test 2010-08-27 21:22:40 +0000
2321@@ -136,7 +136,7 @@
2322 update t1 set a=0 where b=5;
2323 select * from t1 order by b;
2324 delete from t1 where a=0;
2325---error 1048
2326+--error ER_BAD_NULL_ERROR
2327 update t1 set a=NULL where b=6;
2328 update t1 set a=300 where b=7;
2329 insert into t1(a,b)values(NULL,8);
2330@@ -151,7 +151,7 @@
2331 update t1 set a=0 where b=12;
2332 select * from t1 order by b;
2333 delete from t1 where a=0;
2334---error 1048
2335+--error ER_BAD_NULL_ERROR
2336 update t1 set a=NULL where b=13;
2337 update t1 set a=500 where b=14;
2338 select * from t1 order by b;
2339@@ -169,7 +169,7 @@
2340
2341 create table t1 (a bigint);
2342 insert into t1 values (1), (2), (3), (0), (0);
2343---error 1062
2344+--error ER_DUP_ENTRY
2345 alter table t1 modify a bigint not null auto_increment primary key;
2346 select * from t1;
2347 drop table t1;
2348@@ -198,7 +198,7 @@
2349 select * from t1;
2350 #set sql_mode= '';
2351 alter table t1 modify b varchar(255);
2352---error 1062
2353+--error ER_DUP_ENTRY
2354 insert into t1 values (0,4);
2355 select * from t1;
2356 drop table t1;
2357
2358=== modified file 'tests/t/binary.test'
2359--- tests/t/binary.test 2009-11-13 00:56:59 +0000
2360+++ tests/t/binary.test 2010-08-27 21:22:40 +0000
2361@@ -88,7 +88,7 @@
2362 --replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
2363 show create table t1;
2364 drop table t1;
2365---error 1064
2366+--error ER_PARSE_ERROR
2367 create table t2 (a varbinary);
2368
2369 # End of 4.1 tests
2370
2371=== modified file 'tests/t/broken_table_proto_file.test'
2372--- tests/t/broken_table_proto_file.test 2010-03-27 21:22:09 +0000
2373+++ tests/t/broken_table_proto_file.test 2010-08-27 21:22:40 +0000
2374@@ -11,9 +11,9 @@
2375 system echo "this is a junk file for test" >> $MYSQLTEST_VARDIR/master-data/test/t1.dfe ;
2376 --replace_column 6 # 7 # 8 # 9 #
2377 SHOW TABLE STATUS like 't1';
2378---error 1693
2379+--error ER_CORRUPT_TABLE_DEFINITION
2380 show create table t1;
2381---error 1693
2382+--error ER_CORRUPT_TABLE_DEFINITION
2383 drop table if exists t1;
2384 system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.dfe;
2385
2386
2387=== modified file 'tests/t/case.test'
2388--- tests/t/case.test 2009-03-25 09:18:25 +0000
2389+++ tests/t/case.test 2010-08-27 21:22:40 +0000
2390@@ -66,14 +66,14 @@
2391 SHOW CREATE TABLE t1;
2392 DROP TABLE t1;
2393
2394---error 1267
2395+--error ER_CANT_AGGREGATE_2COLLATIONS
2396 SELECT CASE
2397 WHEN 1
2398 THEN 'a' COLLATE utf8_bin
2399 ELSE 'a' COLLATE utf8_swedish_ci
2400 END;
2401
2402---error 1270
2403+--error ER_CANT_AGGREGATE_3COLLATIONS
2404 SELECT CASE 'a' COLLATE utf8_bin
2405 WHEN 'a' COLLATE utf8_danish_ci THEN 1
2406 WHEN 'a' COLLATE utf8_swedish_ci THEN 2
2407@@ -96,7 +96,7 @@
2408 #
2409 # Check COALESCE argument types aggregation
2410
2411---error 1267
2412+--error ER_CANT_AGGREGATE_2COLLATIONS
2413 CREATE TABLE t1 SELECT COALESCE('a' COLLATE utf8_swedish_ci,'b' COLLATE utf8_bin);
2414 CREATE TABLE t1 SELECT
2415 COALESCE(1), COALESCE(1.0),COALESCE('a'),
2416
2417=== modified file 'tests/t/cast.test'
2418--- tests/t/cast.test 2010-03-22 23:04:11 +0000
2419+++ tests/t/cast.test 2010-08-27 21:22:40 +0000
2420@@ -37,7 +37,7 @@
2421 select cast(1000 as CHAR(3));
2422
2423 # Should throw an error about 'abc' being too large for a char(2)
2424---error 1292
2425+--error ER_TRUNCATED_WRONG_VALUE
2426 create table t1 select
2427 cast('ab' AS char) as c1,
2428 cast('a ' AS char) as c2,
2429@@ -57,7 +57,7 @@
2430
2431 # BUG in drizzletest - can't handle these chars right
2432 # # Should throw an error about incorrect
2433-#--error 1292
2434+#--error ER_TRUNCATED_WRONG_VALUE
2435 #create table t1 select
2436 # cast('ÆÇ' AS char) as c1,
2437 # cast('Æ ' AS char) as c2,
2438
2439=== modified file 'tests/t/comment_column.test'
2440--- tests/t/comment_column.test 2010-02-19 23:07:45 +0000
2441+++ tests/t/comment_column.test 2010-08-27 21:22:40 +0000
2442@@ -62,7 +62,7 @@
2443
2444
2445 # comment overflow(warning)
2446---error 1470
2447+--error ER_WRONG_STRING_LENGTH
2448 ALTER TABLE t1 ADD COLUMN c11 INTEGER COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
2449 SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
2450 SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';
2451@@ -92,7 +92,7 @@
2452
2453 # comment overflow(warning)
2454 drop table t1;
2455---error 1470
2456+--error ER_WRONG_STRING_LENGTH
2457 create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdaBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
2458 ) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
2459 SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
2460@@ -100,11 +100,11 @@
2461 SELECT index_comment,char_length(index_comment) FROM data_dictionary.indexes WHERE table_name='t1';
2462 let $ENGINE=`select variable_value from data_dictionary.global_variables where variable_name='STORAGE_ENGINE'`;
2463 --replace_result $ENGINE ENGINE
2464---error 1146
2465+--error ER_NO_SUCH_TABLE
2466 SHOW CREATE TABLE t1;
2467
2468 # comment overflow(error)
2469---error 1051
2470+--error ER_BAD_TABLE_ERROR
2471 DROP TABLE t1;
2472 --error ER_WRONG_STRING_LENGTH
2473 create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdaBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, INDEX i1 (c1) COMMENT 'i1 comment',INDEX i2(c2)
2474
2475=== modified file 'tests/t/comment_index.test'
2476--- tests/t/comment_index.test 2010-02-19 23:07:45 +0000
2477+++ tests/t/comment_index.test 2010-08-27 21:22:40 +0000
2478@@ -57,7 +57,7 @@
2479
2480
2481 # comment overflow(warning)
2482---error 1470
2483+--error ER_WRONG_STRING_LENGTH
2484 CREATE INDEX i11 ON t1(c11) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
2485 SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
2486 SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';
2487@@ -66,7 +66,7 @@
2488 --replace_result $ENGINE ENGINE
2489 SHOW CREATE TABLE t1;
2490
2491---error 1470
2492+--error ER_WRONG_STRING_LENGTH
2493 ALTER TABLE t1 ADD INDEX (c13) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
2494 SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
2495 SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';
2496
2497=== modified file 'tests/t/comments.test'
2498--- tests/t/comments.test 2009-03-03 07:39:39 +0000
2499+++ tests/t/comments.test 2010-08-27 21:22:40 +0000
2500@@ -5,7 +5,7 @@
2501 select 1+2/*hello*/+3;
2502 select 1 /* long
2503 multi line comment */;
2504---error 1065
2505+--error ER_EMPTY_QUERY
2506 ;
2507 select 1 /*!32301 +1 */;
2508 select 1 /*!72301 +1 */;
2509
2510=== modified file 'tests/t/connect.test'
2511--- tests/t/connect.test 2010-03-03 20:57:45 +0000
2512+++ tests/t/connect.test 2010-08-27 21:22:40 +0000
2513@@ -15,7 +15,7 @@
2514 show tables;
2515
2516 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2517---error 1049
2518+--error ER_BAD_DB_ERROR
2519 connect (fail_con,localhost,root,z,test2);
2520 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2521 connect (fail_con,localhost,root,z,);
2522@@ -30,13 +30,13 @@
2523 show tables;
2524
2525 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2526---error 1049
2527+--error ER_BAD_DB_ERROR
2528 connect (fail_con,localhost,test,,test2);
2529 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2530---error 1049
2531+--error ER_BAD_DB_ERROR
2532 connect (fail_con,localhost,test,,"");
2533 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2534---error 1049
2535+--error ER_BAD_DB_ERROR
2536 connect (fail_con,localhost,test,zorro,test2);
2537 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2538 connect (fail_con,localhost,test,zorro,);
2539@@ -45,13 +45,13 @@
2540
2541
2542 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2543---error 1049
2544+--error ER_BAD_DB_ERROR
2545 connect (fail_con,localhost,test,,test2);
2546 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2547 connect (fail_con,localhost,test,,);
2548 --disconnect fail_con
2549 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2550---error 1049
2551+--error ER_BAD_DB_ERROR
2552 connect (fail_con,localhost,test,zorro,test2);
2553 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
2554 connect (fail_con,localhost,test,zorro,);
2555
2556=== modified file 'tests/t/create.test'
2557--- tests/t/create.test 2010-05-20 00:15:10 +0000
2558+++ tests/t/create.test 2010-08-27 21:22:40 +0000
2559@@ -14,7 +14,7 @@
2560
2561 create table t1 (b char(0) not null);
2562 create table if not exists t1 (b char(0) not null);
2563---error 1048
2564+--error ER_BAD_NULL_ERROR
2565 insert into t1 values (""),(null);
2566 select * from t1;
2567 drop table t1;
2568@@ -26,18 +26,18 @@
2569 # Test of some CREATE TABLE'S that should fail
2570 #
2571
2572---error 1146
2573+--error ER_NO_SUCH_TABLE
2574 create temporary table t2 engine=MEMORY select * from t1;
2575---error 1146
2576+--error ER_NO_SUCH_TABLE
2577 create table t2 select auto+1 from t1;
2578 drop table if exists t1,t2;
2579---error 1167
2580+--error ER_WRONG_KEY_COLUMN
2581 create table t1 (b char(0) not null, index(b));
2582---error 1163
2583+--error ER_TABLE_CANT_HANDLE_BLOB
2584 create temporary table t1 (a int not null,b text) engine=MEMORY;
2585 drop table if exists t1;
2586
2587---error 1075
2588+--error ER_WRONG_AUTO_KEY
2589 create temporary table t1 (ordid int not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) engine=MEMORY;
2590
2591 -- error 1049
2592@@ -52,30 +52,30 @@
2593 show create table `t1`;
2594 drop table `a/a`;
2595 drop table `t1`;
2596---error 1103
2597+--error ER_WRONG_TABLE_NAME
2598 create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);
2599---error 1059
2600+--error ER_TOO_LONG_IDENT
2601 create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);
2602
2603 #
2604 # Some wrong defaults, so these creates should fail too (Bug #5902)
2605 #
2606---error 1067
2607+--error ER_INVALID_DEFAULT
2608 create table t1 (a datetime default now());
2609---error 1294
2610+--error ER_INVALID_ON_UPDATE
2611 create table t1 (a datetime on update now());
2612---error 1067
2613+--error ER_INVALID_DEFAULT
2614 create table t1 (a int default 100 auto_increment);
2615 # TODO: Should this really fail? What's wrong with default 1000 ???
2616-#--error 1067
2617+#--error ER_INVALID_DEFAULT
2618 #create table t1 (a int default 1000);
2619---error 1067
2620+--error ER_INVALID_DEFAULT
2621 create table t1 (a varchar(5) default 'abcdef');
2622
2623 create table t1 (a varchar(5) default 'abcde');
2624 insert into t1 values();
2625 select * from t1;
2626---error 1067
2627+--error ER_INVALID_DEFAULT
2628 alter table t1 alter column a set default 'abcdef';
2629 drop table t1;
2630
2631@@ -99,13 +99,13 @@
2632 drop table mysqltest.test2$;
2633 drop database mysqltest;
2634
2635---error 1103
2636+--error ER_WRONG_TABLE_NAME
2637 create table `` (a int);
2638---error 1103
2639+--error ER_WRONG_TABLE_NAME
2640 drop table if exists ``;
2641---error 1166
2642+--error ER_WRONG_COLUMN_NAME
2643 create table t1 (`` int);
2644---error 1280
2645+--error ER_WRONG_NAME_FOR_INDEX
2646 create table t1 (i int, index `` (i));
2647
2648 #
2649@@ -144,13 +144,13 @@
2650 describe t1;
2651 describe t2;
2652 drop table if exists t2;
2653---error 1060
2654+--error ER_DUP_FIELDNAME
2655 create table t2 (a int, a float) select * from t1;
2656 drop table if exists t2;
2657---error 1060
2658+--error ER_DUP_FIELDNAME
2659 create table t2 (a int) select a as b, a+1 as b from t1;
2660 drop table if exists t2;
2661---error 1060
2662+--error ER_DUP_FIELDNAME
2663 create table t2 (b int) select a as b, a+1 as b from t1;
2664 drop table if exists t1,t2;
2665
2666@@ -162,7 +162,7 @@
2667 INSERT INTO t1 values (1),(2),(1);
2668 --error ER_DUP_ENTRY
2669 CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
2670---error 1146
2671+--error ER_NO_SUCH_TABLE
2672 SELECT * from t2;
2673 DROP TABLE t1;
2674 DROP TABLE IF EXISTS t2;
2675@@ -189,7 +189,7 @@
2676 CREATE TEMPORARY TABLE t1 (a int not null);
2677 show create table t1;
2678 drop table t1;
2679---error 1286
2680+--error ER_UNKNOWN_STORAGE_ENGINE
2681 SET SESSION storage_engine="gemini";
2682 SELECT @@storage_engine;
2683 CREATE TEMPORARY TABLE t1 (a int not null);
2684@@ -203,11 +203,11 @@
2685 #
2686 create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
2687 insert into t1 values ("a", 1), ("b", 2);
2688---error 1048
2689+--error ER_BAD_NULL_ERROR
2690 insert into t1 values ("c", NULL);
2691---error 1048
2692+--error ER_BAD_NULL_ERROR
2693 insert into t1 values (NULL, 3);
2694---error 1048
2695+--error ER_BAD_NULL_ERROR
2696 insert into t1 values (NULL, NULL);
2697 drop table t1;
2698
2699@@ -223,11 +223,11 @@
2700 #
2701
2702 create table t1 select 1,2,3;
2703---error 1364
2704+--error ER_NO_DEFAULT_FOR_FIELD
2705 create table if not exists t1 select 1,2;
2706---error 1136
2707+--error ER_WRONG_VALUE_COUNT_ON_ROW
2708 create table if not exists t1 select 1,2,3,4;
2709---error 1364
2710+--error ER_NO_DEFAULT_FOR_FIELD
2711 create table if not exists t1 select 1;
2712 select * from t1;
2713 drop table t1;
2714@@ -256,11 +256,11 @@
2715 # "Table truncated when creating another table name with Spaces"
2716 #
2717
2718---error 1103
2719+--error ER_WRONG_TABLE_NAME
2720 create table `t1 `(a int);
2721---error 1102
2722+--error ER_WRONG_DB_NAME
2723 create database `db1 `;
2724---error 1166
2725+--error ER_WRONG_COLUMN_NAME
2726 create table t1(`a ` int);
2727
2728 #
2729@@ -268,11 +268,11 @@
2730 # "Parser permits multiple commas without syntax error"
2731 #
2732
2733---error 1064
2734+--error ER_PARSE_ERROR
2735 create table t1 (a int,);
2736---error 1064
2737+--error ER_PARSE_ERROR
2738 create table t1 (a int,,b int);
2739---error 1064
2740+--error ER_PARSE_ERROR
2741 create table t1 (,b int);
2742
2743 #
2744@@ -281,7 +281,7 @@
2745
2746 create table t1 (a int, key(a));
2747 create table t2 (b int, foreign key(b) references t1(a), key(b));
2748---error 1217
2749+--error ER_ROW_IS_REFERENCED
2750 drop table if exists t1,t2;
2751 drop table if exists t2,t1;
2752
2753@@ -320,15 +320,15 @@
2754 --replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
2755 show create table t2;
2756 select * from t2;
2757---error 1050
2758+--error ER_TABLE_EXISTS_ERROR
2759 create table t3 like t1;
2760---error 1050
2761+--error ER_TABLE_EXISTS_ERROR
2762 create table t3 like mysqltest.t3;
2763---error 1049
2764+--error ER_BAD_DB_ERROR
2765 create table non_existing_database.t1 like t1;
2766 --error ER_NO_SUCH_TABLE
2767 create table t3 like non_existing_table;
2768---error 1050
2769+--error ER_TABLE_EXISTS_ERROR
2770 create temporary table t3 like t1;
2771 drop table t1, t2, t3;
2772 drop database mysqltest;
2773@@ -341,7 +341,7 @@
2774 CREATE TEMPORARY TABLE t1 (a int not null);
2775 show create table t1;
2776 drop table t1;
2777---error 1286
2778+--error ER_UNKNOWN_STORAGE_ENGINE
2779 SET SESSION storage_engine="gemini";
2780 SELECT @@storage_engine;
2781 CREATE TEMPORARY TABLE t1 (a int not null);
2782@@ -412,9 +412,9 @@
2783 #
2784
2785 create table t1(cenum enum('a'));
2786---error 1291
2787+--error ER_DUPLICATED_VALUE_IN_TYPE
2788 create table t2(cenum enum('a','a'));
2789---error 1291
2790+--error ER_DUPLICATED_VALUE_IN_TYPE
2791 create table t3(cenum enum('a','A','a','c','c'));
2792 drop table t1;
2793
2794@@ -434,9 +434,9 @@
2795 #
2796
2797 ## TODO: Is this really a bug? It works in Drizzle. Should it?
2798-#--error 1280
2799+#--error ER_WRONG_NAME_FOR_INDEX
2800 #create table t1 (a int, index `primary` (a));
2801-#--error 1280
2802+#--error ER_WRONG_NAME_FOR_INDEX
2803 #create table t1 (a int, index `PRIMARY` (a));
2804 #
2805 #create table t1 (`primary` int, index(`primary`));
2806@@ -447,9 +447,9 @@
2807 #show create table t2;
2808 #
2809 #create table t3 (a int);
2810-#--error 1280
2811+#--error ER_WRONG_NAME_FOR_INDEX
2812 #alter table t3 add index `primary` (a);
2813-#--error 1280
2814+#--error ER_WRONG_NAME_FOR_INDEX
2815 #alter table t3 add index `PRIMARY` (a);
2816 #
2817 #create table t4 (`primary` int);
2818@@ -485,7 +485,7 @@
2819 # an improper fix is present.
2820 #
2821 create table t1 (a int);
2822---error 1093
2823+--error ER_UPDATE_TABLE_USED
2824 create table t1 select * from t1;
2825 ## TODO: Huh? --error ER_WRONG_OBJECT
2826 #create table t2 union = (t1) select * from t1;
2827@@ -496,11 +496,11 @@
2828 #
2829 # Bug#10413: Invalid column name is not rejected
2830 #
2831---error 1103
2832+--error ER_WRONG_TABLE_NAME
2833 create table t1(column.name int);
2834---error 1103
2835+--error ER_WRONG_TABLE_NAME
2836 create table t1(test.column.name int);
2837---error 1102
2838+--error ER_WRONG_DB_NAME
2839 create table t1(xyz.t1.name int);
2840 create table t1(t1.name int);
2841 create table t2(test.t2.name int);
2842@@ -573,7 +573,7 @@
2843 show create table t1;
2844 drop table t1;
2845
2846---error 1364
2847+--error ER_NO_DEFAULT_FOR_FIELD
2848 create table t1 (
2849 a varchar(12) collate utf8_bin not null,
2850 b int not null, primary key (a)
2851@@ -1027,7 +1027,7 @@
2852 # to be rewritten to hit the limit
2853 #
2854 # Ensure limit is really 64 keys
2855---error 1069
2856+--error ER_TOO_MANY_KEYS
2857 alter table t1 add key
2858 a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
2859 c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
2860@@ -1041,12 +1041,12 @@
2861 c16 int, c17 int);
2862
2863 # Get error for max key parts
2864---error 1070
2865+--error ER_TOO_MANY_KEY_PARTS
2866 alter table t1 add key i1 (
2867 c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16, c17);
2868
2869 # Get error for max key-name length
2870---error 1059
2871+--error ER_TOO_LONG_IDENT
2872 alter table t1 add key
2873 a001_long_123456789_123456789_123456789_123456789_123456789_12345 (c1);
2874
2875@@ -1151,24 +1151,24 @@
2876 # Test incorrect database names
2877 #
2878
2879---error 1102
2880+--error ER_WRONG_DB_NAME
2881 CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
2882---error 1102
2883+--error ER_WRONG_DB_NAME
2884 DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
2885
2886 # TODO: enable these tests when RENAME DATABASE is implemented.
2887-# --error 1049
2888+# --error ER_BAD_DB_ERROR
2889 # RENAME DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa TO a;
2890-# --error 1102
2891+# --error ER_WRONG_DB_NAME
2892 # RENAME DATABASE mysqltest TO aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
2893 # create database mysqltest;
2894-# --error 1102
2895+# --error ER_WRONG_DB_NAME
2896 # RENAME DATABASE mysqltest TO aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
2897 # drop database mysqltest;
2898
2899---error 1102
2900+--error ER_WRONG_DB_NAME
2901 USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
2902---error 1102
2903+--error ER_WRONG_DB_NAME
2904 SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
2905
2906 ##
2907@@ -1212,12 +1212,12 @@
2908 #
2909 # Bug#25629 CREATE TABLE LIKE does not work with INFORMATION_SCHEMA
2910 #
2911---error 1005
2912+--error ER_CANT_CREATE_TABLE
2913 create table t1 like data_dictionary.processlist;
2914 create table t1 like data_dictionary.processlist engine=innodb;
2915 show create table t1;
2916 drop table t1;
2917---error 1005
2918+--error ER_CANT_CREATE_TABLE
2919 create temporary table t1 like data_dictionary.processlist;
2920 create temporary table t1 like data_dictionary.processlist engine=myisam;
2921 show create table t1;
2922@@ -1314,7 +1314,7 @@
2923 --echo
2924
2925 CREATE TABLE t3(c1 DATETIME NOT NULL);
2926---error 1686 # Bad datetime
2927+--error ER_INVALID_DATETIME_VALUE # Bad datetime
2928 INSERT INTO t3 VALUES (0);
2929
2930 --echo
2931
2932=== modified file 'tests/t/create_schema_options.test'
2933--- tests/t/create_schema_options.test 2010-05-12 21:58:06 +0000
2934+++ tests/t/create_schema_options.test 2010-08-27 21:22:40 +0000
2935@@ -1,12 +1,12 @@
2936---error 1699
2937+--error ER_UNKNOWN_SCHEMA_OPTION
2938 CREATE DATABASE foo unknown_key=value;
2939---error 1699
2940+--error ER_UNKNOWN_SCHEMA_OPTION
2941 CREATE DATABASE foo unknown_key=value, anotheR_unknown_key;
2942 SHOW WARNINGS;
2943---error 1699
2944+--error ER_UNKNOWN_SCHEMA_OPTION
2945 CREATE DATABASE foo unknown_key=42;
2946
2947---error 1699
2948+--error ER_UNKNOWN_SCHEMA_OPTION
2949 CREATE DATABASE foo unknown_key;
2950
2951 # These will require us to define schema engines
2952
2953=== modified file 'tests/t/create_select_column_order.test'
2954--- tests/t/create_select_column_order.test 2009-05-12 07:37:24 +0000
2955+++ tests/t/create_select_column_order.test 2010-08-27 21:22:40 +0000
2956@@ -1,14 +1,14 @@
2957 create table t1 (a int not null, b int, primary key (a));
2958 insert into t1 values (1,1);
2959---error 1364
2960+--error ER_NO_DEFAULT_FOR_FIELD
2961 create table if not exists t1 select 2;
2962 select * from t1;
2963 drop table t1;
2964
2965 create table t1 select 1,2,3;
2966---error 1364
2967+--error ER_NO_DEFAULT_FOR_FIELD
2968 create table if not exists t1 select 1,2;
2969---error 1364
2970+--error ER_NO_DEFAULT_FOR_FIELD
2971 create table if not exists t1 select 1;
2972
2973 select * from t1;
2974
2975=== modified file 'tests/t/create_select_tmp.test'
2976--- tests/t/create_select_tmp.test 2009-06-16 00:53:22 +0000
2977+++ tests/t/create_select_tmp.test 2010-08-27 21:22:40 +0000
2978@@ -13,19 +13,19 @@
2979 INSERT INTO t1 VALUES (1),(2),(1);
2980 --error ER_DUP_ENTRY
2981 CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
2982---error 1146
2983+--error ER_NO_SUCH_TABLE
2984 select * from t2;
2985 --error ER_DUP_ENTRY
2986 CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
2987---error 1146
2988-select * from t2;
2989---error ER_DUP_ENTRY
2990-CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
2991---error 1146
2992-select * from t2;
2993---error ER_DUP_ENTRY
2994-CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
2995---error 1146
2996+--error ER_NO_SUCH_TABLE
2997+select * from t2;
2998+--error ER_DUP_ENTRY
2999+CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
3000+--error ER_NO_SUCH_TABLE
3001+select * from t2;
3002+--error ER_DUP_ENTRY
3003+CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
3004+--error ER_NO_SUCH_TABLE
3005 select * from t2;
3006 drop table t1;
3007
3008
3009=== modified file 'tests/t/create_table_options.test'
3010--- tests/t/create_table_options.test 2010-05-12 21:58:06 +0000
3011+++ tests/t/create_table_options.test 2010-08-27 21:22:40 +0000
3012@@ -1,11 +1,11 @@
3013---error 1698
3014+--error ER_UNKNOWN_ENGINE_OPTION
3015 CREATE TABLE t1 (a int) FOO=BAR, INVALIDFOOBAR=0;
3016
3017---error 1698
3018+--error ER_UNKNOWN_ENGINE_OPTION
3019 CREATE TABLE t1 (a int) INVALIDFOOBAR=0;
3020
3021---error 1698
3022+--error ER_UNKNOWN_ENGINE_OPTION
3023 CREATE TABLE t1 (a int) INVALIDFOOBAR=foo;
3024
3025---error 1698
3026+--error ER_UNKNOWN_ENGINE_OPTION
3027 CREATE TABLE t1 (a int) INVALIDFOOBAR="foa";
3028
3029=== modified file 'tests/t/ctype_utf8.test'
3030--- tests/t/ctype_utf8.test 2010-05-12 21:58:06 +0000
3031+++ tests/t/ctype_utf8.test 2010-08-27 21:22:40 +0000
3032@@ -117,19 +117,19 @@
3033 # Bug #2368 Multibyte charsets do not check that incoming data is well-formed
3034 #
3035 create table t1 (s1 char(10));
3036---error 1366
3037+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3038 insert into t1 values (0x41FF);
3039 select hex(s1) from t1;
3040 drop table t1;
3041
3042 create table t1 (s1 varchar(10));
3043---error 1366
3044+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3045 insert into t1 values (0x41FF);
3046 select hex(s1) from t1;
3047 drop table t1;
3048
3049 create table t1 (s1 text);
3050---error 1366
3051+--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3052 insert into t1 values (0x41FF);
3053 select hex(s1) from t1;
3054 drop table t1;
3055@@ -138,7 +138,7 @@
3056 # Bug 2699
3057 # UTF8 breaks primary keys for cols > 333 characters
3058 #
3059---error 1071
3060+--error ER_TOO_LONG_KEY
3061 create table t1 (a text, primary key(a(360))) engine=innodb;
3062
3063 #
3064
3065=== modified file 'tests/t/data_dictionary_like_info.test'
3066--- tests/t/data_dictionary_like_info.test 2010-07-08 22:17:25 +0000
3067+++ tests/t/data_dictionary_like_info.test 2010-08-27 21:22:40 +0000
3068@@ -175,15 +175,15 @@
3069 --error ER_PARSE_ERROR
3070 alter database data_dictionary;
3071 use data_dictionary;
3072-#--error 1044
3073+#--error ER_DBACCESS_DENIED_ERROR
3074 #drop table tables;
3075-#--error 1044
3076+#--error ER_DBACCESS_DENIED_ERROR
3077 #alter table tables;
3078 #
3079 # Bug #9683 INFORMATION_SCH: Creation of temporary table allowed in Information_schema DB
3080 #
3081 use data_dictionary;
3082---error 1044
3083+--error ER_DBACCESS_DENIED_ERROR
3084 create temporary table schemas(f1 char(10));
3085 #
3086 #
3087@@ -370,9 +370,9 @@
3088 #
3089 # Bug#30079 A check for "hidden" I_S tables is flawed
3090 #
3091-#--error 1109
3092+#--error ER_UNKNOWN_TABLE
3093 #show fields from data_dictionary.table_names;
3094-#--error 1109
3095+#--error ER_UNKNOWN_TABLE
3096 #show keys from data_dictionary.table_names;
3097
3098 SET max_heap_table_size = DEFAULT;
3099
3100=== modified file 'tests/t/dayofmonth.test'
3101--- tests/t/dayofmonth.test 2009-01-30 04:01:12 +0000
3102+++ tests/t/dayofmonth.test 2010-08-27 21:22:40 +0000
3103@@ -16,9 +16,9 @@
3104 # Test improper argument list
3105 #
3106 # 1 arg is required.
3107---error 1582 # Wrong parameter count...
3108+--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
3109 SELECT DAYOFMONTH();
3110---error 1582 # Wrong parameter count...
3111+--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
3112 SELECT DAYOFMONTH(1, 0);
3113
3114 #
3115@@ -26,23 +26,23 @@
3116 # produce an error, not a NULL or anything
3117 # else...
3118 #
3119---error 1686
3120+--error ER_INVALID_DATETIME_VALUE
3121 SELECT DAYOFMONTH("xxx");
3122
3123 # Indy, bad dates!
3124---error 1686
3125+--error ER_INVALID_DATETIME_VALUE
3126 SELECT DAYOFMONTH("0000-00-00"); # No 0000-00-00 dates!...
3127---error 1686
3128+--error ER_INVALID_DATETIME_VALUE
3129 SELECT DAYOFMONTH("0000-01-01"); # No zero year parts
3130---error 1686
3131+--error ER_INVALID_DATETIME_VALUE
3132 SELECT DAYOFMONTH("0001-00-01"); # No zero month parts
3133---error 1686
3134+--error ER_INVALID_DATETIME_VALUE
3135 SELECT DAYOFMONTH("0001-01-00"); # No zero day parts
3136---error 1686
3137+--error ER_INVALID_DATETIME_VALUE
3138 SELECT DAYOFMONTH("2000-02-30"); # No Feb 30th!
3139---error 1686
3140+--error ER_INVALID_DATETIME_VALUE
3141 SELECT DAYOFMONTH("1900-02-29"); # Not a leap DAYOFMONTH since not divisible evenly by 400...
3142---error 1686
3143+--error ER_INVALID_DATETIME_VALUE
3144 SELECT DAYOFMONTH('1976-15-15'); # No 15th month!
3145
3146 # A good date, which should output 1
3147
3148=== modified file 'tests/t/dayofyear.test'
3149--- tests/t/dayofyear.test 2009-01-30 04:01:12 +0000
3150+++ tests/t/dayofyear.test 2010-08-27 21:22:40 +0000
3151@@ -16,9 +16,9 @@
3152 # Test improper argument list
3153 #
3154 # 1 arg is required.
3155---error 1582 # Wrong parameter count...
3156+--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
3157 SELECT DAYOFYEAR();
3158---error 1582 # Wrong parameter count...
3159+--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
3160 SELECT DAYOFYEAR(1, 0);
3161
3162 #
3163@@ -26,23 +26,23 @@
3164 # produce an error, not a NULL or anything
3165 # else...
3166 #
3167---error 1686
3168+--error ER_INVALID_DATETIME_VALUE
3169 SELECT DAYOFYEAR("xxx");
3170
3171 # Indy, bad dates!
3172---error 1686
3173+--error ER_INVALID_DATETIME_VALUE
3174 SELECT DAYOFYEAR("0000-00-00"); # No 0000-00-00 dates!...
3175---error 1686
3176+--error ER_INVALID_DATETIME_VALUE
3177 SELECT DAYOFYEAR("0000-01-01"); # No zero year parts
3178---error 1686
3179+--error ER_INVALID_DATETIME_VALUE
3180 SELECT DAYOFYEAR("0001-00-01"); # No zero month parts
3181---error 1686
3182+--error ER_INVALID_DATETIME_VALUE
3183 SELECT DAYOFYEAR("0001-01-00"); # No zero day parts
3184---error 1686
3185+--error ER_INVALID_DATETIME_VALUE
3186 SELECT DAYOFYEAR("2000-02-30"); # No Feb 30th!
3187---error 1686
3188+--error ER_INVALID_DATETIME_VALUE
3189 SELECT DAYOFYEAR("1900-02-29"); # Not a leap DAYOFYEAR since not divisible evenly by 400...
3190---error 1686
3191+--error ER_INVALID_DATETIME_VALUE
3192 SELECT DAYOFYEAR('1976-15-15'); # No 15th month!
3193
3194 # A good date, which should output 1
3195
3196=== modified file 'tests/t/default.test'
3197--- tests/t/default.test 2010-01-08 06:23:08 +0000
3198+++ tests/t/default.test 2010-08-27 21:22:40 +0000
3199@@ -103,7 +103,7 @@
3200 # multiple-row statement, the preceding rows will have been inserted.
3201 #
3202 create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);
3203---error 1364
3204+--error ER_NO_DEFAULT_FOR_FIELD
3205 insert into bug20691 values (7, DEFAULT, DEFAULT), (7, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (7, DEFAULT, DEFAULT);
3206 insert into bug20691 values (7, '1975-07-10 07:10:03', DEFAULT);
3207 select * from bug20691 order by i asc;
3208@@ -118,10 +118,10 @@
3209 i decimal not null,
3210 x int);
3211 insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
3212---error 1364
3213+--error ER_NO_DEFAULT_FOR_FIELD
3214 insert into bug20691 (x) values (2);
3215 insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
3216---error 1364
3217+--error ER_NO_DEFAULT_FOR_FIELD
3218 insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
3219 select * from bug20691 order by x asc;
3220 drop table bug20691;
3221
3222=== modified file 'tests/t/derived.test'
3223--- tests/t/derived.test 2010-08-21 22:42:44 +0000
3224+++ tests/t/derived.test 2010-08-27 21:22:40 +0000
3225@@ -17,15 +17,15 @@
3226 CREATE TABLE t3 (a int not null, b char (10) not null);
3227 insert into t3 values (3,'f'),(4,'y'),(5,'z'),(6,'c');
3228 select t1.a,t4.y from t1,(select t2.a as y from t2,(select t3.b from t3 where t3.a>3) as t5 where t2.b=t5.b) as t4 where t1.a = t4.y;
3229---error 1054
3230+--error ER_BAD_FIELD_ERROR
3231 SELECT a FROM (SELECT 1 FROM (SELECT 1) a HAVING a=1) b;
3232---error 1052
3233+--error ER_NON_UNIQ_ERROR
3234 SELECT a,b as a FROM (SELECT '1' as a,'2' as b) b HAVING a=1;
3235 SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=2;
3236 SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=1;
3237---error 1054
3238+--error ER_BAD_FIELD_ERROR
3239 SELECT 1 FROM (SELECT 1) a WHERE a=2;
3240---error 1054
3241+--error ER_BAD_FIELD_ERROR
3242 SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a;
3243 --sort_result
3244 select * from t1 as x1, (select * from t1) as x2;
3245@@ -62,13 +62,13 @@
3246 drop table t1;
3247 SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;
3248 select * from (select 1 as a) b left join (select 2 as a) c using(a);
3249---error 1054
3250+--error ER_BAD_FIELD_ERROR
3251 SELECT * FROM (SELECT 1 UNION SELECT a) b;
3252---error 1054
3253+--error ER_BAD_FIELD_ERROR
3254 SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
3255---error 1054
3256+--error ER_BAD_FIELD_ERROR
3257 SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
3258---error 1054
3259+--error ER_BAD_FIELD_ERROR
3260 select 1 from (select 2) a order by 0;
3261
3262 #
3263@@ -200,7 +200,7 @@
3264 #
3265 CREATE TABLE t1 (a char(10), b char(10));
3266 INSERT INTO t1 VALUES ('root','localhost'), ('root','%');
3267---error 1242
3268+--error ER_SUBQUERY_NO_1_ROW
3269 SELECT * FROM (SELECT (SELECT a.a FROM t1 AS a WHERE a.a = b.a) FROM t1 AS b) AS c;
3270 DROP TABLE t1;
3271 #
3272
3273=== modified file 'tests/t/drop.test'
3274--- tests/t/drop.test 2010-03-03 04:58:12 +0000
3275+++ tests/t/drop.test 2010-08-27 21:22:40 +0000
3276@@ -6,13 +6,13 @@
3277 drop database if exists client_test_db;
3278 --enable_warnings
3279
3280---error 1051
3281+--error ER_BAD_TABLE_ERROR
3282 drop table t1;
3283 create table t1(n int);
3284 insert into t1 values(1);
3285 create temporary table t1( n int);
3286 insert into t1 values(2);
3287---error 1050
3288+--error ER_TABLE_EXISTS_ERROR
3289 create table t1(n int);
3290 drop table t1;
3291 select * from t1;
3292@@ -37,14 +37,14 @@
3293 # (tableN instead on tN)
3294 #
3295 use mysqltest;
3296---error 1051
3297+--error ER_BAD_TABLE_ERROR
3298 drop table table1, table2, table3, table4, table5, table6,
3299 table7, table8, table9, table10, table11, table12, table13,
3300 table14, table15, table16, table17, table18, table19, table20,
3301 table21, table22, table23, table24, table25, table26, table27,
3302 table28;
3303
3304---error 1051
3305+--error ER_BAD_TABLE_ERROR
3306 drop table table1, table2, table3, table4, table5, table6,
3307 table7, table8, table9, table10, table11, table12, table13,
3308 table14, table15, table16, table17, table18, table19, table20,
3309@@ -56,24 +56,24 @@
3310
3311 # test drop/create database and FLUSH TABLES WITH READ LOCK
3312 flush tables with read lock;
3313---error 1209,1223
3314+--error ER_DROP_DB_WITH_READ_LOCK, ER_CANT_UPDATE_WITH_READLOCK
3315 create database mysqltest;
3316 unlock tables;
3317 create database mysqltest;
3318 show databases;
3319 flush tables with read lock;
3320---error 1208,1223
3321+--error ER_DROP_DB_WITH_READ_LOCK, ER_CANT_UPDATE_WITH_READLOCK
3322 drop database mysqltest;
3323 unlock tables;
3324 drop database mysqltest;
3325 show databases;
3326---error 1008
3327+--error ER_DB_DROP_EXISTS
3328 drop database mysqltest;
3329
3330 # test create table and FLUSH TABLES WITH READ LOCK
3331 drop table t1;
3332 flush tables with read lock;
3333---error 1223
3334+--error ER_CANT_UPDATE_WITH_READLOCK
3335 create table t1(n int);
3336 unlock tables;
3337 create table t1(n int);
3338
3339=== modified file 'tests/t/errors.test'
3340--- tests/t/errors.test 2008-12-16 07:07:50 +0000
3341+++ tests/t/errors.test 2010-08-27 21:22:40 +0000
3342@@ -5,28 +5,28 @@
3343 --disable_warnings
3344 drop table if exists t1;
3345 --enable_warnings
3346---error 1146
3347+--error ER_NO_SUCH_TABLE
3348 insert into t1 values(1);
3349---error 1146
3350+--error ER_NO_SUCH_TABLE
3351 delete from t1;
3352---error 1146
3353+--error ER_NO_SUCH_TABLE
3354 update t1 set a=1;
3355 create table t1 (a int);
3356---error 1054
3357+--error ER_BAD_FIELD_ERROR
3358 select count(test.t1.b) from t1;
3359---error 1054
3360+--error ER_BAD_FIELD_ERROR
3361 select count(not_existing_database.t1) from t1;
3362---error 1054
3363+--error ER_BAD_FIELD_ERROR
3364 select count(not_existing_database.t1.a) from t1;
3365---error 1044,1146
3366+--error ER_DBACCESS_DENIED_ERROR, ER_NO_SUCH_TABLE
3367 select count(not_existing_database.t1.a) from not_existing_database.t1;
3368---error 1054
3369+--error ER_BAD_FIELD_ERROR
3370 select 1 from t1 order by 2;
3371---error 1054
3372+--error ER_BAD_FIELD_ERROR
3373 select 1 from t1 group by 2;
3374---error 1054
3375+--error ER_BAD_FIELD_ERROR
3376 select 1 from t1 order by t1.b;
3377---error 1054
3378+--error ER_BAD_FIELD_ERROR
3379 select count(*),b from t1;
3380 drop table t1;
3381
3382@@ -35,9 +35,9 @@
3383 #
3384 # Bug #6080: Error message for a field with a display width that is too long
3385 #
3386---error 1064
3387+--error ER_PARSE_ERROR
3388 create table t1 (a int(256));
3389---error 1074
3390+--error ER_TOO_BIG_FIELDLENGTH
3391 create table t1 (a varchar(66000));
3392
3393 #
3394
3395=== modified file 'tests/t/explain.test'
3396--- tests/t/explain.test 2009-06-16 00:53:22 +0000
3397+++ tests/t/explain.test 2010-08-27 21:22:40 +0000
3398@@ -15,9 +15,9 @@
3399 explain select * from t1 use key (str,str) where str="foo";
3400
3401 #The following should give errors
3402---error 1176
3403+--error ER_KEY_DOES_NOT_EXITS
3404 explain select * from t1 use key (str,str,foo) where str="foo";
3405---error 1176
3406+--error ER_KEY_DOES_NOT_EXITS
3407 explain select * from t1 ignore key (str,str,foo) where str="foo";
3408 drop table t1;
3409
3410
3411=== modified file 'tests/t/flush.test'
3412--- tests/t/flush.test 2010-03-03 20:57:45 +0000
3413+++ tests/t/flush.test 2010-08-27 21:22:40 +0000
3414@@ -29,7 +29,7 @@
3415 select * from t1;
3416 connection con2;
3417 flush tables with read lock;
3418---error 1223
3419+--error ER_CANT_UPDATE_WITH_READLOCK
3420 drop table t2;
3421 connection con1;
3422 send drop table t2;
3423
3424=== modified file 'tests/t/func_date_add.test'
3425--- tests/t/func_date_add.test 2009-06-16 00:53:22 +0000
3426+++ tests/t/func_date_add.test 2010-08-27 21:22:40 +0000
3427@@ -55,9 +55,9 @@
3428 insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
3429 # These will all work now, and we'll end up with some NULL entries in the
3430 # table and some warnings.
3431---error 1441
3432+--error ER_DATETIME_FUNCTION_OVERFLOW
3433 insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
3434---error 1441
3435+--error ER_DATETIME_FUNCTION_OVERFLOW
3436 insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
3437 insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
3438 insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
3439
3440=== modified file 'tests/t/func_default.test'
3441--- tests/t/func_default.test 2008-12-06 22:41:03 +0000
3442+++ tests/t/func_default.test 2010-08-27 21:22:40 +0000
3443@@ -25,7 +25,7 @@
3444 #
3445 CREATE TABLE t1 (id int, s varchar(20));
3446 INSERT INTO t1 VALUES (1, 'one'), (2, 'two'), (3, 'three');
3447---error 1364
3448+--error ER_NO_DEFAULT_FOR_FIELD
3449 SELECT s, 32 AS mi FROM t1 GROUP BY s HAVING DEFAULT(mi) IS NULL;
3450 DROP TABLE t1;
3451
3452
3453=== modified file 'tests/t/func_gconcat.test'
3454--- tests/t/func_gconcat.test 2009-03-25 09:18:25 +0000
3455+++ tests/t/func_gconcat.test 2010-08-27 21:22:40 +0000
3456@@ -69,9 +69,9 @@
3457
3458 # Test errors
3459
3460---error 1111
3461+--error ER_INVALID_GROUP_FUNC_USE
3462 select group_concat(sum(c)) from t1 group by grp;
3463---error 1054
3464+--error ER_BAD_FIELD_ERROR
3465 select grp,group_concat(c order by 2) from t1 group by grp;
3466
3467 drop table t1;
3468
3469=== modified file 'tests/t/func_sapdb.test'
3470--- tests/t/func_sapdb.test 2009-02-28 17:49:22 +0000
3471+++ tests/t/func_sapdb.test 2010-08-27 21:22:40 +0000
3472@@ -33,7 +33,7 @@
3473 select datediff("1997-11-30 23:59:59.000001","1997-12-31");
3474
3475 # This will give an error
3476---error 1686 # Bad datetime
3477+--error ER_INVALID_DATETIME_VALUE # Bad datetime
3478 select datediff("1997-11-31 23:59:59.000001","1997-12-31");
3479 select datediff("1997-11-30 23:59:59.000001",null);
3480
3481
3482=== modified file 'tests/t/func_str.test'
3483--- tests/t/func_str.test 2010-08-18 21:57:15 +0000
3484+++ tests/t/func_str.test 2010-08-27 21:22:40 +0000
3485@@ -294,9 +294,9 @@
3486 #
3487
3488 create table t1 (c1 INT, c2 INT);
3489---error 1264
3490+--error ER_WARN_DATA_OUT_OF_RANGE
3491 insert into t1 values ('21474836461','21474836461');
3492---error 1264
3493+--error ER_WARN_DATA_OUT_OF_RANGE
3494 insert into t1 values ('-21474836461','-21474836461');
3495 select * from t1;
3496 drop table t1;
3497@@ -335,7 +335,7 @@
3498 PRIMARY KEY (id)
3499 ) ENGINE=MyISAM;
3500
3501---error 1264
3502+--error ER_WARN_DATA_OUT_OF_RANGE
3503 INSERT INTO t1 VALUES ('0','16307858876001849059');
3504
3505 SELECT CONV('e251273eb74a8ee3', 16, 10);
3506
3507=== modified file 'tests/t/func_time.test'
3508--- tests/t/func_time.test 2010-08-21 22:42:44 +0000
3509+++ tests/t/func_time.test 2010-08-27 21:22:40 +0000
3510@@ -14,7 +14,7 @@
3511 select date_format("1997-01-02", concat("%M %W %D ","%Y %y %m %d %h %i %s %w"));
3512 select dayofmonth("1997-01-02"),dayofmonth(19970323);
3513 select month("1997-01-02"),year("98-02-03"),dayofyear("1997-12-31");
3514---error 1686 # No more bad dates!
3515+--error ER_INVALID_DATETIME_VALUE # No more bad dates!
3516 select month("2001-02-00"),year("2001-01-01");
3517 select DAYOFYEAR("1997-03-03"), QUARTER(980303);
3518 select HOUR("1997-03-03 23:03:22"), MINUTE("23:03:22"), SECOND(230322);
3519@@ -92,10 +92,10 @@
3520 select extract(DAY FROM "1999-01-02");
3521 select extract(DAY_HOUR FROM "1999-01-02 10:11:12");
3522 # The following is an interval, not a time!
3523---error 1686 # Bad datetime
3524+--error ER_INVALID_DATETIME_VALUE # Bad datetime
3525 select extract(DAY_MINUTE FROM "02 10:11:12");
3526 # The following is an interval, not a time!
3527---error 1686 # Bad datetime
3528+--error ER_INVALID_DATETIME_VALUE # Bad datetime
3529 select extract(DAY_SECOND FROM "225 10:11:12");
3530 select extract(HOUR FROM "1999-01-02 10:11:12");
3531 select extract(HOUR_MINUTE FROM "10:11:12");
3532@@ -103,7 +103,7 @@
3533 select extract(MINUTE FROM "10:11:12");
3534 select extract(MINUTE_SECOND FROM "10:11:12");
3535 select extract(SECOND FROM "1999-01-02 10:11:12");
3536---error 1686 # Bad datetime
3537+--error ER_INVALID_DATETIME_VALUE # Bad datetime
3538 select extract(MONTH FROM "2001-02-00");
3539
3540 #
3541@@ -160,9 +160,9 @@
3542
3543 CREATE TEMPORARY TABLE t1 (updated text) ENGINE=MyISAM;
3544 INSERT INTO t1 VALUES ('');
3545---error 1686 # "" is not a date!
3546+--error ER_INVALID_DATETIME_VALUE # "" is not a date!
3547 SELECT month(updated) from t1;
3548---error 1686 # "" is not a date for pete's sake.
3549+--error ER_INVALID_DATETIME_VALUE # "" is not a date for pete's sake.
3550 SELECT year(updated) from t1;
3551 drop table t1;
3552
3553@@ -173,21 +173,21 @@
3554
3555 create table t1 (d date, dt datetime, t timestamp, c char(10));
3556 insert into t1 values (null, null, null, null);
3557---error 1686 # Bad dates...
3558+--error ER_INVALID_DATETIME_VALUE # Bad dates...
3559 insert into t1 values ("0000-00-00", "0000-00-00", "0000-00-00", "0000-00-00");
3560---error 1686 # 0000-00-00 is a bad date
3561+--error ER_INVALID_DATETIME_VALUE # 0000-00-00 is a bad date
3562 select dayofyear("0000-00-00"),dayofyear(d),dayofyear(dt),dayofyear(t),dayofyear(c) from t1;
3563---error 1686 # 0000-00-00 is a bad date
3564+--error ER_INVALID_DATETIME_VALUE # 0000-00-00 is a bad date
3565 select dayofmonth("0000-00-00"),dayofmonth(d),dayofmonth(dt),dayofmonth(t),dayofmonth(c) from t1;
3566---error 1686 # 0000-00-00 is not a damn date.
3567+--error ER_INVALID_DATETIME_VALUE # 0000-00-00 is not a damn date.
3568 select month("0000-00-00"),month(d),month(dt),month(t),month(c) from t1;
3569---error 1686 # 0000-00-00 not a date
3570+--error ER_INVALID_DATETIME_VALUE # 0000-00-00 not a date
3571 select quarter("0000-00-00"),quarter(d),quarter(dt),quarter(t),quarter(c) from t1;
3572---error 1686 # Argh. 0000-00-00 is not a date.
3573+--error ER_INVALID_DATETIME_VALUE # Argh. 0000-00-00 is not a date.
3574 select year("0000-00-00"),year(d),year(dt),year(t),year(c) from t1;
3575---error 1686 # Bad datetime
3576+--error ER_INVALID_DATETIME_VALUE # Bad datetime
3577 select to_days("0000-00-00"),to_days(d),to_days(dt),to_days(c) from t1;
3578---error 1686 # Ugh. bad datetime
3579+--error ER_INVALID_DATETIME_VALUE # Ugh. bad datetime
3580 select extract(MONTH FROM "0000-00-00"),extract(MONTH FROM d),extract(MONTH FROM dt),extract(MONTH FROM t),extract(MONTH FROM c) from t1;
3581 drop table t1;
3582
3583@@ -243,19 +243,19 @@
3584 # check for invalid dates
3585
3586 # bad year
3587---error 1685 # Bad timestamp
3588+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
3589 select unix_timestamp('2039-01-20 01:00:00');
3590---error 1685 # Bad timestamp
3591+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
3592 select unix_timestamp('1968-01-20 01:00:00');
3593 # bad month
3594---error 1685 # Bad timestamp
3595+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
3596 select unix_timestamp('2038-02-10 01:00:00');
3597---error 1685 # Bad timestamp
3598+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
3599 select unix_timestamp('1969-11-20 01:00:00');
3600 # bad day
3601---error 1685 # Bad timestamp
3602+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
3603 select unix_timestamp('2038-01-20 01:00:00');
3604---error 1685 # Bad timestamp
3605+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
3606 select unix_timestamp('1969-12-30 01:00:00');
3607
3608 #
3609@@ -358,7 +358,7 @@
3610 # test for last_day
3611 select last_day('2000-02-05');
3612 select last_day('2002-12-31');
3613---error 1686 # Bad date
3614+--error ER_INVALID_DATETIME_VALUE # Bad date
3615 select last_day('2003-03-32');
3616 select last_day('2003-04-01');
3617 select last_day('2001-01-01 01:01:01');
3618@@ -399,11 +399,11 @@
3619 # Bug #10568
3620 #
3621
3622---error 1686 # Bad date
3623+--error ER_INVALID_DATETIME_VALUE # Bad date
3624 select last_day('2005-00-00');
3625---error 1686 # Bad date
3626+--error ER_INVALID_DATETIME_VALUE # Bad date
3627 select last_day('2005-00-01');
3628---error 1686 # Bad date
3629+--error ER_INVALID_DATETIME_VALUE # Bad date
3630 select last_day('2005-01-00');
3631
3632 #
3633@@ -426,7 +426,7 @@
3634 drop table t1;
3635
3636 # check if EXTRACT() handles out-of-range values correctly
3637---error 1686 # Bad datetime
3638+--error ER_INVALID_DATETIME_VALUE # Bad datetime
3639 SELECT EXTRACT(HOUR FROM '100000:02:03');
3640
3641 #
3642@@ -447,7 +447,7 @@
3643 # Bug #23653: crash if last_day('0000-00-00')
3644 #
3645
3646---error 1686 # Bad date
3647+--error ER_INVALID_DATETIME_VALUE # Bad date
3648 select last_day('0000-00-00');
3649
3650 --echo End of 4.1 tests
3651
3652=== modified file 'tests/t/group_by.test'
3653--- tests/t/group_by.test 2010-08-23 19:49:47 +0000
3654+++ tests/t/group_by.test 2010-08-27 21:22:40 +0000
3655@@ -82,7 +82,7 @@
3656
3657 INSERT INTO t1 VALUES (1,'1970-01-01','1997-10-17 00:00:00',2529,1,21000,11886,'check',0,'F',16200,6);
3658
3659---error 1056
3660+--error ER_WRONG_GROUP_FIELD
3661 SELECT COUNT(P.URID),SUM(P.amount),P.method, MIN(PP.recdate+0) > 19980501000000 AS IsNew FROM t1 AS P JOIN t1 as PP WHERE P.URID = PP.URID GROUP BY method,IsNew;
3662
3663 drop table t1;
3664@@ -168,7 +168,7 @@
3665 # KEY votes (votes)
3666 #);
3667 #
3668-#--error 1265
3669+#--error ER_WARN_DATA_TRUNCATED
3670 #INSERT INTO t1 VALUES (1,0,0,'','normal','','2000-02-10 09:25:12',20000321114747,'','','Linux','P1','TestProduct','PC',3,'other','TestComponent','','M1',0,'',0);
3671 #INSERT INTO t1 VALUES (9,0,0,'','enhancement','','2000-03-10 11:49:36',20000321114747,'','','All','P5','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - conversion','','',0,'',0);
3672 #INSERT INTO t1 VALUES (10,0,0,'','enhancement','','2000-03-10 18:10:16',20000321114747,'','','All','P4','AAAAA','PC',3,'2.00 CD - Pre','BBBBBBBBBBBBB - conversion','','',0,'',0);
3673
3674=== modified file 'tests/t/having.test'
3675--- tests/t/having.test 2009-06-16 00:53:22 +0000
3676+++ tests/t/having.test 2010-08-27 21:22:40 +0000
3677@@ -207,7 +207,7 @@
3678 select count(*) as count_col1 from t1 group by col1 having col1 = 10;
3679 select count(*) as count_col1 from t1 as tmp1 group by col1 having col1 = 10;
3680 select count(*) from t1 group by col2 having col2 = 'hello';
3681---error 1054
3682+--error ER_BAD_FIELD_ERROR
3683 select count(*) from t1 group by col2 having col1 = 10;
3684 select col1 as count_col1 from t1 as tmp1 group by col1 having col1 = 10;
3685 select col1 as count_col1 from t1 as tmp1 group by col1 having count_col1 = 10;
3686@@ -221,10 +221,10 @@
3687 select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having count_col1 = 10;
3688 select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col2 = 'hello';
3689 select col1 as count_col1,col2 as group_col2 from t1 as tmp1 group by col1,col2 having group_col2 = 'hello';
3690---error 1064
3691+--error ER_PARSE_ERROR
3692 select sum(col1) as co12 from t1 group by col2 having col2 10;
3693 select sum(col1) as co2, count(col2) as cc from t1 group by col1 having col1 =10;
3694---error 1054
3695+--error ER_BAD_FIELD_ERROR
3696 select t2.col2 from t2 group by t2.col1, t2.col2 having t1.col1 <= 10;
3697
3698
3699@@ -273,7 +273,7 @@
3700
3701 # nested queries with HAVING, inner having column resolved in outer FROM clause
3702 # the outer having column is not referenced in GROUP BY which results in an error
3703---error 1054
3704+--error ER_BAD_FIELD_ERROR
3705 select t1.col1 from t1
3706 where t1.col2 in
3707 (select t2.col2 from t2
3708@@ -302,7 +302,7 @@
3709 # correlated subqueries - inner having column 't1.col2' resolves to
3710 # the outer FROM clause, which cannot be used because the outer query
3711 # is grouped
3712---error 1054
3713+--error ER_BAD_FIELD_ERROR
3714 select sum(col1) from t1
3715 group by col_t1
3716 having col_t1 in (select sum(t2.col1) from t2
3717@@ -318,11 +318,11 @@
3718 #
3719 # queries with joins and ambiguous column names
3720 #
3721---error 1052
3722+--error ER_NON_UNIQ_ERROR
3723 select t1.col1, t2.col1 from t1, t2 where t1.col1 = t2.col1
3724 group by t1.col1, t2.col1 having col1 = 2;
3725
3726---error 1052
3727+--error ER_NON_UNIQ_ERROR
3728 select t1.col1*10+t2.col1 from t1,t2 where t1.col1=t2.col1
3729 group by t1.col1, t2.col1 having col1 = 2;
3730
3731
3732=== modified file 'tests/t/heap.test'
3733--- tests/t/heap.test 2010-06-22 19:48:34 +0000
3734+++ tests/t/heap.test 2010-08-27 21:22:40 +0000
3735@@ -215,10 +215,10 @@
3736 create temporary table t1 (v varchar(10), c char(10), t varchar(50));
3737 insert into t1 values('+ ', '+ ', '+ ');
3738 set @a=repeat(' ',20);
3739---error 1406
3740+--error ER_DATA_TOO_LONG
3741 insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
3742 set @a=repeat(' ',10);
3743---error 1406
3744+--error ER_DATA_TOO_LONG
3745 insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
3746 set @a=repeat(' ',9);
3747 insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
3748@@ -315,7 +315,7 @@
3749 insert into t1 values ('a '),('a '),('a '),('a ');
3750 --error ER_DUP_ENTRY
3751 insert into t1 values ('a ');
3752---error 1406
3753+--error ER_DATA_TOO_LONG
3754 insert into t1 values ('a ');
3755 --error ER_DUP_ENTRY
3756 insert into t1 values ('a ');
3757@@ -393,7 +393,7 @@
3758 insert into t1 values ('a '),('a '),('a '),('a ');
3759 --error ER_DUP_ENTRY
3760 insert into t1 values ('a ');
3761---error 1406
3762+--error ER_DATA_TOO_LONG
3763 insert into t1 values ('a ');
3764 --error ER_DUP_ENTRY
3765 insert into t1 values ('a ');
3766@@ -436,7 +436,7 @@
3767 select * from t1;
3768 drop table t1;
3769
3770---error 1075
3771+--error ER_WRONG_AUTO_KEY
3772 create temporary table t1 (a int not null, b int not null auto_increment,
3773 primary key(a, b)) engine=MEMORY;
3774
3775
3776=== modified file 'tests/t/heap_var.test'
3777--- tests/t/heap_var.test 2010-05-11 04:37:30 +0000
3778+++ tests/t/heap_var.test 2010-08-27 21:22:40 +0000
3779@@ -51,7 +51,7 @@
3780
3781 select count(*) from t1;
3782
3783---error 1062
3784+--error ER_DUP_ENTRY
3785 insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
3786
3787 --replace_column 1 # 6 # 7 # 8 # 9 # 10 #
3788
3789=== modified file 'tests/t/hour.test'
3790--- tests/t/hour.test 2009-01-30 04:01:12 +0000
3791+++ tests/t/hour.test 2010-08-27 21:22:40 +0000
3792@@ -16,11 +16,11 @@
3793 # Test improper argument list
3794 #
3795 # 1 arg is required.
3796---error 1064
3797+--error ER_PARSE_ERROR
3798 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
3799 # the SQL parser, which considers HOUR a keyword before being a function symbol
3800 SELECT HOUR();
3801---error 1064
3802+--error ER_PARSE_ERROR
3803 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
3804 # the SQL parser, which considers HOUR a keyword before being a function symbol
3805 SELECT HOUR(1, 0);
3806@@ -30,7 +30,7 @@
3807 # produce an error, not a NULL or anything
3808 # else...
3809 #
3810---error 1686
3811+--error ER_INVALID_DATETIME_VALUE
3812 SELECT HOUR("xxx");
3813
3814 #
3815@@ -39,25 +39,25 @@
3816 # The following are all bad dates, with no possibility of interpreting
3817 # the values as TIME-only components.
3818 #
3819---error 1686
3820+--error ER_INVALID_DATETIME_VALUE
3821 SELECT HOUR("0000-00-00"); # No 0000-00-00 dates!...
3822---error 1686
3823+--error ER_INVALID_DATETIME_VALUE
3824 SELECT HOUR("0000-01-01"); # No zero year parts
3825---error 1686
3826+--error ER_INVALID_DATETIME_VALUE
3827 SELECT HOUR("0001-00-01"); # No zero month parts
3828---error 1686
3829+--error ER_INVALID_DATETIME_VALUE
3830 SELECT HOUR("0001-01-00"); # No zero day parts
3831---error 1686
3832+--error ER_INVALID_DATETIME_VALUE
3833 SELECT HOUR("2000-02-30"); # No Feb 30th!
3834---error 1686
3835+--error ER_INVALID_DATETIME_VALUE
3836 SELECT HOUR("1900-02-29"); # Not a leap HOUR since not divisible evenly by 400...
3837---error 1686
3838+--error ER_INVALID_DATETIME_VALUE
3839 SELECT HOUR('1976-15-15'); # No 15th month!
3840---error 1686
3841+--error ER_INVALID_DATETIME_VALUE
3842 SELECT HOUR('23:59:70'); # No 70th second!
3843---error 1686
3844+--error ER_INVALID_DATETIME_VALUE
3845 SELECT HOUR('23:70:59'); # No 70th minute!
3846---error 1686
3847+--error ER_INVALID_DATETIME_VALUE
3848 SELECT HOUR('26:00:00'); # No 26th hour!
3849
3850 # A good date, which cannot be interpreted as a TIME component. Should return 0.
3851
3852=== modified file 'tests/t/innodb.test'
3853--- tests/t/innodb.test 2010-08-24 16:57:49 +0000
3854+++ tests/t/innodb.test 2010-08-27 21:22:40 +0000
3855@@ -157,12 +157,12 @@
3856 select n from t1;
3857 savepoint savept3;
3858 rollback to savepoint savept2;
3859---error 1305
3860+--error ER_SP_DOES_NOT_EXIST
3861 rollback to savepoint savept3;
3862 rollback to savepoint savept2;
3863 release savepoint `my_savepoint`;
3864 select n from t1;
3865--- error 1305
3866+--error 1305
3867 rollback to savepoint `my_savepoint`;
3868 rollback to savepoint savept2;
3869 insert into t1 values (8);
3870@@ -184,7 +184,7 @@
3871 flush tables with read lock;
3872 #
3873 # Current code can't handle a read lock in middle of transaction
3874-#--error 1223;
3875+#--error ER_CANT_UPDATE_WITH_READLOCK
3876 commit;
3877 unlock tables;
3878 commit;
3879@@ -540,7 +540,7 @@
3880 commit;
3881 drop database mysqltest;
3882 # Don't check error message
3883---error 1049
3884+--error ER_BAD_DB_ERROR
3885 show tables from mysqltest;
3886
3887 #
3888@@ -869,7 +869,7 @@
3889 create index id2 on t2 (id);
3890 show create table t2;
3891 drop index id2 on t2;
3892---error 1025,1025
3893+--error ER_ERROR_ON_RENAME, ER_ERROR_ON_RENAME
3894 drop index id on t2;
3895 show create table t2;
3896 drop table t2;
3897@@ -923,22 +923,22 @@
3898 #
3899 # Bug #6126: Duplicate columns in keys gives misleading error message
3900 #
3901---error 1060
3902+--error ER_DUP_FIELDNAME
3903 create table t1 (c char(10), index (c,c)) engine=innodb;
3904---error 1060
3905+--error ER_DUP_FIELDNAME
3906 create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1)) engine=innodb;
3907---error 1060
3908+--error ER_DUP_FIELDNAME
3909 create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2)) engine=innodb;
3910---error 1060
3911+--error ER_DUP_FIELDNAME
3912 create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1)) engine=innodb;
3913 create table t1 (c1 char(10), c2 char(10)) engine=innodb;
3914---error 1060
3915+--error ER_DUP_FIELDNAME
3916 alter table t1 add key (c1,c1);
3917---error 1060
3918+--error ER_DUP_FIELDNAME
3919 alter table t1 add key (c2,c1,c1);
3920---error 1060
3921+--error ER_DUP_FIELDNAME
3922 alter table t1 add key (c1,c2,c1);
3923---error 1060
3924+--error ER_DUP_FIELDNAME
3925 alter table t1 add key (c1,c1,c2);
3926 drop table t1;
3927
3928@@ -1197,7 +1197,7 @@
3929 id INT PRIMARY KEY
3930 ) ENGINE=InnoDB;
3931
3932---error 1005,1005
3933+--error ER_CANT_CREATE_TABLE, ER_CANT_CREATE_TABLE
3934 CREATE TEMPORARY TABLE t2
3935 (
3936 id INT NOT NULL PRIMARY KEY,
3937@@ -1251,16 +1251,16 @@
3938 drop table t1, t2, t3, t4;
3939
3940 # these should be refused
3941---error 1071
3942+--error ER_TOO_LONG_KEY
3943 create table t1 (col1 varchar(768) primary key)
3944 engine = innodb;
3945---error 1071
3946+--error ER_TOO_LONG_KEY
3947 create table t2 (col1 varbinary(1024) primary key)
3948 engine = innodb;
3949---error 1071
3950+--error ER_TOO_LONG_KEY
3951 create table t3 (col1 text, primary key(col1(768)))
3952 engine = innodb;
3953---error 1071
3954+--error ER_TOO_LONG_KEY
3955 create table t4 (col1 blob, primary key(col1(1024)))
3956 engine = innodb;
3957
3958@@ -1279,23 +1279,23 @@
3959 CONSTRAINT c1 FOREIGN KEY (v) REFERENCES t1(id)
3960 ) ENGINE=InnoDB;
3961
3962---error 1452
3963+--error ER_NO_REFERENCED_ROW_2
3964 INSERT INTO t2 VALUES(2);
3965
3966 INSERT INTO t1 VALUES(1);
3967 INSERT INTO t2 VALUES(1);
3968
3969---error 1451
3970+--error ER_ROW_IS_REFERENCED_2
3971 DELETE FROM t1 WHERE id = 1;
3972
3973---error 1217
3974+--error ER_ROW_IS_REFERENCED
3975 DROP TABLE t1;
3976
3977 SET FOREIGN_KEY_CHECKS=0;
3978 DROP TABLE t1;
3979 SET FOREIGN_KEY_CHECKS=1;
3980
3981---error 1452
3982+--error ER_NO_REFERENCED_ROW_2
3983 INSERT INTO t2 VALUES(3);
3984
3985 DROP TABLE t2;
3986@@ -1580,12 +1580,12 @@
3987 #
3988 # S-lock to records (2,2),(4,2), and (6,2) should not be released in a update
3989 #
3990---error 1205
3991+--error ER_LOCK_WAIT_TIMEOUT
3992 select * from t1 where a = 2 and b = 2 for update;
3993 #
3994 # X-lock to record (1,1),(3,1),(5,1) should not be released in a update
3995 #
3996---error 1205
3997+--error ER_LOCK_WAIT_TIMEOUT
3998 connection a;
3999 commit;
4000 connection b;
4001@@ -1715,39 +1715,39 @@
4002 create table t10(a int not null, b int, primary key(a)) engine=innodb select * from t2 for update;
4003
4004 connection b;
4005---error 1205
4006+--error ER_LOCK_WAIT_TIMEOUT
4007 reap;
4008
4009 connection c;
4010---error 1205
4011+--error ER_LOCK_WAIT_TIMEOUT
4012 reap;
4013
4014 connection d;
4015---error 1205
4016+--error ER_LOCK_WAIT_TIMEOUT
4017 reap;
4018
4019 connection e;
4020---error 1205
4021+--error ER_LOCK_WAIT_TIMEOUT
4022 reap;
4023
4024 connection f;
4025---error 1205
4026+--error ER_LOCK_WAIT_TIMEOUT
4027 reap;
4028
4029 connection g;
4030---error 1205
4031+--error ER_LOCK_WAIT_TIMEOUT
4032 reap;
4033
4034 connection h;
4035---error 1205
4036+--error ER_LOCK_WAIT_TIMEOUT
4037 reap;
4038
4039 connection i;
4040---error 1205
4041+--error ER_LOCK_WAIT_TIMEOUT
4042 reap;
4043
4044 connection j;
4045---error 1205
4046+--error ER_LOCK_WAIT_TIMEOUT
4047 reap;
4048
4049 connection a;
4050@@ -1767,7 +1767,7 @@
4051 drop table t1, t2, t3, t5, t6, t8, t9;
4052
4053 # bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"
4054---error 1005
4055+--error ER_CANT_CREATE_TABLE
4056 CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
4057
4058 #
4059@@ -1844,7 +1844,7 @@
4060 --replace_regex /'[^']*test\/#sql-[0-9a-f_]*'/'#sql-temporary'/
4061 # Embedded server doesn't chdir to data directory
4062 --replace_result $MYSQLTEST_VARDIR . master-data/ ''
4063---error 1025
4064+--error ER_ERROR_ON_RENAME
4065 ALTER TABLE t2 MODIFY a INT NOT NULL;
4066 DELETE FROM t1;
4067 DROP TABLE t2,t1;
4068
4069=== modified file 'tests/t/insert.test'
4070--- tests/t/insert.test 2010-04-20 18:23:07 +0000
4071+++ tests/t/insert.test 2010-08-27 21:22:40 +0000
4072@@ -33,7 +33,7 @@
4073 create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);
4074 insert into t1 values (default,default,default,default);
4075 insert into t1 values (default,default,default,default);
4076---error 1685 # Bad timestamp
4077+--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
4078 insert into t1 values (4,0,"a",5);
4079 insert into t1 values (default,default,default,default);
4080 select a,t is not null,c,i from t1;
4081@@ -116,7 +116,7 @@
4082 }
4083 enable_query_log;
4084 select count(*) from t2;
4085---error 1697
4086+--error ER_USE_SQL_BIG_RESULT
4087 insert into t2 select t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
4088 insert into t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
4089 select count(*) from t2;
4090@@ -131,19 +131,19 @@
4091 insert into t1 SET a=1, b=a+1;
4092 insert into t1 (a,b) select 1,2;
4093 INSERT INTO t1 ( a ) SELECT 0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);
4094---error 1110
4095+--error ER_FIELD_SPECIFIED_TWICE
4096 replace into t1 (a,a) select 100, 'hundred';
4097---error 1110
4098+--error ER_FIELD_SPECIFIED_TWICE
4099 insert into t1 (a,b,b) values (1,1,1);
4100---error 1136
4101+--error ER_WRONG_VALUE_COUNT_ON_ROW
4102 insert into t1 (a,a) values (1,1,1);
4103---error 1110
4104+--error ER_FIELD_SPECIFIED_TWICE
4105 insert into t1 (a,a) values (1,1);
4106---error 1110
4107+--error ER_FIELD_SPECIFIED_TWICE
4108 insert into t1 SET a=1,b=2,a=1;
4109---error 1110
4110+--error ER_FIELD_SPECIFIED_TWICE
4111 insert into t1 (b,b) select 1,2;
4112---error 1110
4113+--error ER_FIELD_SPECIFIED_TWICE
4114 INSERT INTO t1 (b,b) SELECT 0,0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);
4115 drop table t1;
4116
4117
4118=== modified file 'tests/t/insert_select.test'
4119--- tests/t/insert_select.test 2010-02-15 18:29:31 +0000
4120+++ tests/t/insert_select.test 2010-08-27 21:22:40 +0000
4121@@ -89,7 +89,7 @@
4122 select * from t1;
4123 insert into t1 select t2.a from t1,t2;
4124 select * from t1;
4125---error 1066
4126+--error ER_NONUNIQ_TABLE
4127 insert into t1 select * from t1,t1;
4128 drop table t1,t2;
4129
4130@@ -194,11 +194,11 @@
4131 insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= a + 10;
4132
4133 #Some error cases
4134---error 1052
4135+--error ER_NON_UNIQ_ERROR
4136 insert into t1 select t2.a from t2 on duplicate key update a= a + t2.b;
4137---error 1054
4138+--error ER_BAD_FIELD_ERROR
4139 insert into t1 select t2.a from t2 on duplicate key update t2.a= a + t2.b;
4140---error 1054
4141+--error ER_BAD_FIELD_ERROR
4142 insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= t1.a + t2.b;
4143 drop table t1,t2,t3;
4144
4145@@ -218,9 +218,9 @@
4146 create table t1(x int, y int);
4147 create table t2(x int, z int);
4148 insert into t1(x,y) select x,z from t2 on duplicate key update x=values(x);
4149---error 1054
4150+--error ER_BAD_FIELD_ERROR
4151 insert into t1(x,y) select x,z from t2 on duplicate key update x=values(z);
4152---error 1054
4153+--error ER_BAD_FIELD_ERROR
4154 insert into t1(x,y) select x,z from t2 on duplicate key update x=values(t2.x);
4155 drop table t1,t2;
4156
4157
4158=== modified file 'tests/t/insert_update.test'
4159--- tests/t/insert_update.test 2010-04-05 23:46:43 +0000
4160+++ tests/t/insert_update.test 2010-08-27 21:22:40 +0000
4161@@ -93,7 +93,7 @@
4162 INSERT t1 SET a=5 ON DUPLICATE KEY UPDATE b=0;
4163 --sorted_result
4164 SELECT * FROM t1;
4165---error 1052
4166+--error ER_NON_UNIQ_ERROR
4167 INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=c+VALUES(a);
4168 INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=t1.c+VALUES(t1.a);
4169 --sorted_result
4170@@ -113,9 +113,9 @@
4171 select * from t1;
4172 insert into t1 select 1 on duplicate key update a=2;
4173 select * from t1;
4174---error 1052
4175+--error ER_NON_UNIQ_ERROR
4176 insert into t1 select a from t1 on duplicate key update a=a+1 ;
4177---error 1052
4178+--error ER_NON_UNIQ_ERROR
4179 insert ignore into t1 select a from t1 on duplicate key update a=t1.a+1 ;
4180 drop table t1;
4181
4182@@ -187,13 +187,13 @@
4183 #
4184 CREATE TABLE t1 (a INT PRIMARY KEY, b INT NOT NULL);
4185
4186---error 1364
4187+--error ER_NO_DEFAULT_FOR_FIELD
4188 INSERT INTO t1 (a) VALUES (1);
4189
4190---error 1364
4191+--error ER_NO_DEFAULT_FOR_FIELD
4192 INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE a = b;
4193
4194---error 1364
4195+--error ER_NO_DEFAULT_FOR_FIELD
4196 INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE b = b;
4197
4198 SELECT * FROM t1;
4199@@ -292,7 +292,7 @@
4200 SELECT * FROM t1;
4201 CREATE TABLE t2 (id INT, c1 INT);
4202 INSERT INTO t2 VALUES (1,NULL), (2,2);
4203---error 1048
4204+--error ER_BAD_NULL_ERROR
4205 INSERT INTO t1 (id,c1) SELECT 1,NULL
4206 ON DUPLICATE KEY UPDATE c1=NULL;
4207 SELECT * FROM t1;
4208
4209=== modified file 'tests/t/join.test'
4210--- tests/t/join.test 2010-08-21 22:42:44 +0000
4211+++ tests/t/join.test 2010-08-27 21:22:40 +0000
4212@@ -113,11 +113,11 @@
4213 insert into t1 values(1),(2);
4214 select t1.a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a);
4215 --replace_result "31 tables" "XX tables" "61 tables" "XX tables"
4216---error 1116
4217+--error ER_TOO_MANY_TABLES
4218 select t1.a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a) left join t1 as t32 using (a) left join t1 as t33 using (a) left join t1 as t34 using (a) left join t1 as t35 using (a) left join t1 as t36 using (a) left join t1 as t37 using (a) left join t1 as t38 using (a) left join t1 as t39 using (a) left join t1 as t40 using (a) left join t1 as t41 using (a) left join t1 as t42 using (a) left join t1 as t43 using (a) left join t1 as t44 using (a) left join t1 as t45 using (a) left join t1 as t46 using (a) left join t1 as t47 using (a) left join t1 as t48 using (a) left join t1 as t49 using (a) left join t1 as t50 using (a) left join t1 as t51 using (a) left join t1 as t52 using (a) left join t1 as t53 using (a) left join t1 as t54 using (a) left join t1 as t55 using (a) left join t1 as t56 using (a) left join t1 as t57 using (a) left join t1 as t58 using (a) left join t1 as t59 using (a) left join t1 as t60 using (a) left join t1 as t61 using (a) left join t1 as t62 using (a) left join t1 as t63 using (a) left join t1 as t64 using (a) left join t1 as t65 using (a);
4219 select a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a);
4220 --replace_result "31 tables" "XX tables" "61 tables" "XX tables"
4221---error 1116
4222+--error ER_TOO_MANY_TABLES
4223 select a from t1 as t1 left join t1 as t2 using (a) left join t1 as t3 using (a) left join t1 as t4 using (a) left join t1 as t5 using (a) left join t1 as t6 using (a) left join t1 as t7 using (a) left join t1 as t8 using (a) left join t1 as t9 using (a) left join t1 as t10 using (a) left join t1 as t11 using (a) left join t1 as t12 using (a) left join t1 as t13 using (a) left join t1 as t14 using (a) left join t1 as t15 using (a) left join t1 as t16 using (a) left join t1 as t17 using (a) left join t1 as t18 using (a) left join t1 as t19 using (a) left join t1 as t20 using (a) left join t1 as t21 using (a) left join t1 as t22 using (a) left join t1 as t23 using (a) left join t1 as t24 using (a) left join t1 as t25 using (a) left join t1 as t26 using (a) left join t1 as t27 using (a) left join t1 as t28 using (a) left join t1 as t29 using (a) left join t1 as t30 using (a) left join t1 as t31 using (a) left join t1 as t32 using (a) left join t1 as t33 using (a) left join t1 as t34 using (a) left join t1 as t35 using (a) left join t1 as t36 using (a) left join t1 as t37 using (a) left join t1 as t38 using (a) left join t1 as t39 using (a) left join t1 as t40 using (a) left join t1 as t41 using (a) left join t1 as t42 using (a) left join t1 as t43 using (a) left join t1 as t44 using (a) left join t1 as t45 using (a) left join t1 as t46 using (a) left join t1 as t47 using (a) left join t1 as t48 using (a) left join t1 as t49 using (a) left join t1 as t50 using (a) left join t1 as t51 using (a) left join t1 as t52 using (a) left join t1 as t53 using (a) left join t1 as t54 using (a) left join t1 as t55 using (a) left join t1 as t56 using (a) left join t1 as t57 using (a) left join t1 as t58 using (a) left join t1 as t59 using (a) left join t1 as t60 using (a) left join t1 as t61 using (a) left join t1 as t62 using (a) left join t1 as t63 using (a) left join t1 as t64 using (a) left join t1 as t65 using (a);
4224 drop table t1;
4225
4226
4227=== modified file 'tests/t/join_outer.test'
4228--- tests/t/join_outer.test 2010-08-21 22:42:44 +0000
4229+++ tests/t/join_outer.test 2010-08-27 21:22:40 +0000
4230@@ -36,13 +36,13 @@
4231 select t1.*,t2.*,t3.a from t1 left join t2 on (t1.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
4232
4233 # The next query should rearange the left joins to get this to work
4234---error 1054
4235+--error ER_BAD_FIELD_ERROR
4236 explain select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
4237---error 1054
4238+--error ER_BAD_FIELD_ERROR
4239 select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
4240
4241 # The next query should give an error in MySQL
4242---error 1054
4243+--error ER_BAD_FIELD_ERROR
4244 select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
4245
4246 # Test of inner join
4247@@ -294,7 +294,7 @@
4248 insert into t4 values (1,1);
4249 insert into t5 values (1,1);
4250
4251---error 1054
4252+--error ER_BAD_FIELD_ERROR
4253 explain select * from t3 left join t4 on t4.seq_1_id = t2.t2_id left join t1 on t1.t1_id = t4.seq_0_id left join t5 on t5.seq_0_id = t1.t1_id left join t2 on t2.t2_id = t5.seq_1_id where t3.t3_id = 23;
4254
4255 drop table t1,t2,t3,t4,t5;
4256
4257=== modified file 'tests/t/key.test'
4258--- tests/t/key.test 2009-11-13 00:56:59 +0000
4259+++ tests/t/key.test 2010-08-27 21:22:40 +0000
4260@@ -183,7 +183,7 @@
4261 #
4262
4263 CREATE TABLE t1 (c VARCHAR(10) NOT NULL,i INT PRIMARY KEY NOT NULL AUTO_INCREMENT, UNIQUE (c,i));
4264---error 1048
4265+--error ER_BAD_NULL_ERROR
4266 INSERT INTO t1 (c) VALUES (NULL),(NULL);
4267 SELECT * FROM t1;
4268 INSERT INTO t1 (c) VALUES ('a'),('a');
4269@@ -286,29 +286,29 @@
4270 # create dedicated error code for this and
4271 # and change my_printf_error() to my_error
4272
4273---error 1391
4274+--error ER_KEY_PART_0
4275 create table t1 (c char(10), index (c(0)));
4276
4277 #
4278 # Bug #6126: Duplicate columns in keys should fail
4279 # Bug #6252: (dup)
4280 #
4281---error 1060
4282+--error ER_DUP_FIELDNAME
4283 create table t1 (c char(10), index (c,c));
4284---error 1060
4285+--error ER_DUP_FIELDNAME
4286 create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1));
4287---error 1060
4288+--error ER_DUP_FIELDNAME
4289 create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2));
4290---error 1060
4291+--error ER_DUP_FIELDNAME
4292 create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1));
4293 create table t1 (c1 char(10), c2 char(10));
4294---error 1060
4295+--error ER_DUP_FIELDNAME
4296 alter table t1 add key (c1,c1);
4297---error 1060
4298+--error ER_DUP_FIELDNAME
4299 alter table t1 add key (c2,c1,c1);
4300---error 1060
4301+--error ER_DUP_FIELDNAME
4302 alter table t1 add key (c1,c2,c1);
4303---error 1060
4304+--error ER_DUP_FIELDNAME
4305 alter table t1 add key (c1,c1,c2);
4306 drop table t1;
4307
4308@@ -416,7 +416,7 @@
4309 alter table t1 add primary key (c1, c2), drop primary key;
4310 alter table t1 drop primary key;
4311 # Drop is checked first. Primary key must exist.
4312---error 1091
4313+--error ER_CANT_DROP_FIELD_OR_KEY
4314 alter table t1 add primary key (c1, c2), drop primary key;
4315 show create table t1;
4316 # Insert non-unique values.
4317
4318=== modified file 'tests/t/kill.test'
4319--- tests/t/kill.test 2009-03-27 20:35:31 +0000
4320+++ tests/t/kill.test 2010-08-27 21:22:40 +0000
4321@@ -106,7 +106,7 @@
4322 #kill query $ID;
4323 #enable_query_log;
4324 #connection con2;
4325-#--error 1317
4326+#--error ER_QUERY_INTERRUPTED
4327 #reap;
4328 #select @a;
4329 #connection con1;
4330@@ -122,7 +122,7 @@
4331 #eval kill query $ID;
4332 #enable_query_log;
4333 #connection con2;
4334-#--error 1317
4335+#--error ER_QUERY_INTERRUPTED
4336 #reap;
4337 #select @a;
4338 #connection con1;
4339@@ -137,7 +137,7 @@
4340 #eval kill query $ID;
4341 #enable_query_log;
4342 #connection con2;
4343-#--error 1317
4344+#--error ER_QUERY_INTERRUPTED
4345 #reap;
4346 #select @a;
4347 #
4348
4349=== modified file 'tests/t/loaddata.test'
4350--- tests/t/loaddata.test 2009-02-12 18:16:06 +0000
4351+++ tests/t/loaddata.test 2010-08-27 21:22:40 +0000
4352@@ -106,7 +106,7 @@
4353 load data infile '../std_data_ln/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, b) set c=concat(a,"+",b,"+",@c,"+",b,"+",if(c is null,"NIL",c));
4354 select * from t1;
4355 # and this should bark
4356---error 1409
4357+--error ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR
4358 load data infile '../std_data_ln/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, @b);
4359
4360 # Now let us test LOAD DATA with subselect
4361@@ -125,13 +125,13 @@
4362 show variables like "secure_file_pri%";
4363 --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
4364 select @@secure_file_priv;
4365---error 1238
4366+--error ER_INCORRECT_GLOBAL_LOCAL_VAR
4367 set @@secure_file_priv= 0;
4368
4369 # Test "load data"
4370 truncate table t1;
4371 --replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
4372---error 1290
4373+--error ER_OPTION_PREVENTS_STATEMENT
4374 eval load data infile '$DRIZZLE_TEST_DIR/t/loaddata.test' into table t1;
4375 select * from t1;
4376
4377@@ -151,7 +151,7 @@
4378 insert into t2 values(1),(2);
4379 disable_query_log;
4380 eval select * into outfile '$MYSQLTEST_VARDIR/tmp/t2' from t2;
4381---error 1261
4382+--error ER_WARN_TOO_FEW_RECORDS
4383 eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1;
4384 enable_query_log;
4385 select f1 from t1 where f2 IS NOT NULL order by f1;
4386@@ -161,7 +161,7 @@
4387 eval SELECT * INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/t2'
4388 FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\r\n'
4389 FROM t2;
4390---error 1261
4391+--error ER_WARN_TOO_FEW_RECORDS
4392 eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1
4393 FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\r\n';
4394 enable_query_log;
4395
4396=== modified file 'tests/t/lowercase_fs_off.test'
4397--- tests/t/lowercase_fs_off.test 2008-12-16 17:34:59 +0000
4398+++ tests/t/lowercase_fs_off.test 2010-08-27 21:22:40 +0000
4399@@ -11,7 +11,7 @@
4400 connection sample;
4401 select database();
4402 create database d2;
4403---error 1007
4404+--error ER_DB_CREATE_EXISTS
4405 create database D1;
4406 drop database d2;
4407 disconnect sample;
4408
4409=== modified file 'tests/t/microsecond.test'
4410--- tests/t/microsecond.test 2009-01-30 04:01:12 +0000
4411+++ tests/t/microsecond.test 2010-08-27 21:22:40 +0000
4412@@ -16,11 +16,11 @@
4413 # Test improper argument list
4414 #
4415 # 1 arg is required.
4416---error 1064
4417+--error ER_PARSE_ERROR
4418 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4419 # the SQL parser, which considers MICROSECOND a keyword before being a function symbol
4420 SELECT MICROSECOND();
4421---error 1064
4422+--error ER_PARSE_ERROR
4423 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4424 # the SQL parser, which considers MICROSECOND a keyword before being a function symbol
4425 SELECT MICROSECOND(1, 0);
4426@@ -30,7 +30,7 @@
4427 # produce an error, not a NULL or anything
4428 # else...
4429 #
4430---error 1686
4431+--error ER_INVALID_DATETIME_VALUE
4432 SELECT MICROSECOND("xxx");
4433
4434 #
4435@@ -39,27 +39,27 @@
4436 # The following are all bad dates, with no possibility of interpreting
4437 # the values as TIME-only components.
4438 #
4439---error 1686
4440+--error ER_INVALID_DATETIME_VALUE
4441 SELECT MICROSECOND("0000-00-00"); # No 0000-00-00 dates!...
4442---error 1686
4443+--error ER_INVALID_DATETIME_VALUE
4444 SELECT MICROSECOND("0000-01-01"); # No zero year parts
4445---error 1686
4446+--error ER_INVALID_DATETIME_VALUE
4447 SELECT MICROSECOND("0001-00-01"); # No zero month parts
4448---error 1686
4449+--error ER_INVALID_DATETIME_VALUE
4450 SELECT MICROSECOND("0001-01-00"); # No zero day parts
4451---error 1686
4452+--error ER_INVALID_DATETIME_VALUE
4453 SELECT MICROSECOND("2000-02-30"); # No Feb 30th!
4454---error 1686
4455+--error ER_INVALID_DATETIME_VALUE
4456 SELECT MICROSECOND("1900-02-29"); # Not a leap MICROSECOND since not divisible evenly by 400...
4457---error 1686
4458+--error ER_INVALID_DATETIME_VALUE
4459 SELECT MICROSECOND('1976-15-15'); # No 15th month!
4460---error 1686
4461+--error ER_INVALID_DATETIME_VALUE
4462 SELECT MICROSECOND('23:59:70'); # No 70th second!
4463---error 1686
4464+--error ER_INVALID_DATETIME_VALUE
4465 SELECT MICROSECOND('23:70:59'); # No 70th minute!
4466---error 1686
4467+--error ER_INVALID_DATETIME_VALUE
4468 SELECT MICROSECOND('26:00:00'); # No 26th hour!
4469---error 1686
4470+--error ER_INVALID_DATETIME_VALUE
4471 SELECT MICROSECOND('26:00:00.9999999'); # Microseconds are 6 places, not 7
4472
4473 # A good date, which cannot be interpreted as a TIME component. Should return 0.
4474
4475=== modified file 'tests/t/minute.test'
4476--- tests/t/minute.test 2009-01-30 04:01:12 +0000
4477+++ tests/t/minute.test 2010-08-27 21:22:40 +0000
4478@@ -16,11 +16,11 @@
4479 # Test improper argument list
4480 #
4481 # 1 arg is required.
4482---error 1064
4483+--error ER_PARSE_ERROR
4484 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4485 # the SQL parser, which considers MINUTE a keyword before being a function symbol
4486 SELECT MINUTE();
4487---error 1064
4488+--error ER_PARSE_ERROR
4489 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4490 # the SQL parser, which considers MINUTE a keyword before being a function symbol
4491 SELECT MINUTE(1, 0);
4492@@ -30,7 +30,7 @@
4493 # produce an error, not a NULL or anything
4494 # else...
4495 #
4496---error 1686
4497+--error ER_INVALID_DATETIME_VALUE
4498 SELECT MINUTE("xxx");
4499
4500 #
4501@@ -39,25 +39,25 @@
4502 # The following are all bad dates, with no possibility of interpreting
4503 # the values as TIME-only components.
4504 #
4505---error 1686
4506+--error ER_INVALID_DATETIME_VALUE
4507 SELECT MINUTE("0000-00-00"); # No 0000-00-00 dates!...
4508---error 1686
4509+--error ER_INVALID_DATETIME_VALUE
4510 SELECT MINUTE("0000-01-01"); # No zero year parts
4511---error 1686
4512+--error ER_INVALID_DATETIME_VALUE
4513 SELECT MINUTE("0001-00-01"); # No zero month parts
4514---error 1686
4515+--error ER_INVALID_DATETIME_VALUE
4516 SELECT MINUTE("0001-01-00"); # No zero day parts
4517---error 1686
4518+--error ER_INVALID_DATETIME_VALUE
4519 SELECT MINUTE("2000-02-30"); # No Feb 30th!
4520---error 1686
4521+--error ER_INVALID_DATETIME_VALUE
4522 SELECT MINUTE("1900-02-29"); # Not a leap MINUTE since not divisible evenly by 400...
4523---error 1686
4524+--error ER_INVALID_DATETIME_VALUE
4525 SELECT MINUTE('1976-15-15'); # No 15th month!
4526---error 1686
4527+--error ER_INVALID_DATETIME_VALUE
4528 SELECT MINUTE('23:59:70'); # No 70th second!
4529---error 1686
4530+--error ER_INVALID_DATETIME_VALUE
4531 SELECT MINUTE('23:70:59'); # No 70th minute!
4532---error 1686
4533+--error ER_INVALID_DATETIME_VALUE
4534 SELECT MINUTE('26:00:00'); # No 26th hour!
4535
4536 # A good date, which cannot be interpreted as a TIME component. Should return 0.
4537
4538=== modified file 'tests/t/month.test'
4539--- tests/t/month.test 2009-01-30 04:01:12 +0000
4540+++ tests/t/month.test 2010-08-27 21:22:40 +0000
4541@@ -16,11 +16,11 @@
4542 # Test improper argument list
4543 #
4544 # 1 arg is required.
4545---error 1064
4546+--error ER_PARSE_ERROR
4547 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4548 # the SQL parser, which considers MONTH a keyword before being a function symbol
4549 SELECT MONTH();
4550---error 1064
4551+--error ER_PARSE_ERROR
4552 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4553 # the SQL parser, which considers MONTH a keyword before being a function symbol
4554 SELECT MONTH(1, 0);
4555@@ -30,23 +30,23 @@
4556 # produce an error, not a NULL or anything
4557 # else...
4558 #
4559---error 1686
4560+--error ER_INVALID_DATETIME_VALUE
4561 SELECT MONTH("xxx");
4562
4563 # Indy, bad dates!
4564---error 1686
4565+--error ER_INVALID_DATETIME_VALUE
4566 SELECT MONTH("0000-00-00"); # No 0000-00-00 dates!...
4567---error 1686
4568+--error ER_INVALID_DATETIME_VALUE
4569 SELECT MONTH("0000-01-01"); # No zero year parts
4570---error 1686
4571+--error ER_INVALID_DATETIME_VALUE
4572 SELECT MONTH("0001-00-01"); # No zero month parts
4573---error 1686
4574+--error ER_INVALID_DATETIME_VALUE
4575 SELECT MONTH("0001-01-00"); # No zero day parts
4576---error 1686
4577+--error ER_INVALID_DATETIME_VALUE
4578 SELECT MONTH("2000-02-30"); # No Feb 30th!
4579---error 1686
4580+--error ER_INVALID_DATETIME_VALUE
4581 SELECT MONTH("1900-02-29"); # Not a leap MONTH since not divisible evenly by 400...
4582---error 1686
4583+--error ER_INVALID_DATETIME_VALUE
4584 SELECT MONTH('1976-15-15'); # No 15th month!
4585
4586 # A good date, which should output 1
4587
4588=== modified file 'tests/t/null.test'
4589--- tests/t/null.test 2009-03-25 09:18:25 +0000
4590+++ tests/t/null.test 2010-08-27 21:22:40 +0000
4591@@ -65,29 +65,29 @@
4592
4593 # Test INSERT with NULL
4594
4595---error 1048
4596+--error ER_BAD_NULL_ERROR
4597 INSERT INTO t1 (a) values (null);
4598---error 1048
4599+--error ER_BAD_NULL_ERROR
4600 INSERT INTO t1 (a) values (1/null);
4601---error 1048
4602+--error ER_BAD_NULL_ERROR
4603 INSERT INTO t1 (a) values (null),(null);
4604---error 1048
4605+--error ER_BAD_NULL_ERROR
4606 INSERT INTO t1 (b) values (null);
4607---error 1048
4608+--error ER_BAD_NULL_ERROR
4609 INSERT INTO t1 (b) values (1/null);
4610---error 1048
4611+--error ER_BAD_NULL_ERROR
4612 INSERT INTO t1 (b) values (null),(null);
4613---error 1048
4614+--error ER_BAD_NULL_ERROR
4615 INSERT INTO t1 (c) values (null);
4616---error 1048
4617+--error ER_BAD_NULL_ERROR
4618 INSERT INTO t1 (c) values (1/null);
4619---error 1048
4620+--error ER_BAD_NULL_ERROR
4621 INSERT INTO t1 (c) values (null),(null);
4622---error 1048
4623+--error ER_BAD_NULL_ERROR
4624 INSERT INTO t1 (d) values (null);
4625---error 1048
4626+--error ER_BAD_NULL_ERROR
4627 INSERT INTO t1 (d) values (1/null);
4628---error 1048
4629+--error ER_BAD_NULL_ERROR
4630 INSERT INTO t1 (d) values (null),(null);
4631
4632 # Test UPDATE with NULLs
4633@@ -99,15 +99,15 @@
4634 # Insert a default row in order to test UPDATE to NULL error
4635 INSERT INTO t1 VALUES ();
4636
4637---error 1048
4638+--error ER_BAD_NULL_ERROR
4639 UPDATE t1 SET a=1/NULL;
4640---error 1048
4641+--error ER_BAD_NULL_ERROR
4642 UPDATE t1 SET a=NULL;
4643---error 1048
4644+--error ER_BAD_NULL_ERROR
4645 UPDATE t1 SET b=NULL;
4646---error 1048
4647+--error ER_BAD_NULL_ERROR
4648 UPDATE t1 SET c=NULL;
4649---error 1048
4650+--error ER_BAD_NULL_ERROR
4651 UPDATE t1 SET d=NULL;
4652
4653 truncate table t1;
4654@@ -117,7 +117,7 @@
4655 # as 1048, only gives a "row" number.
4656 # @TODO Is there really a reason for a separate error
4657 # just for LOAD DATA INFILE?
4658---error 1263
4659+--error ER_WARN_NULL_TO_NOTNULL
4660 LOAD DATA INFILE '../std_data_ln/null_test.txt' INTO TABLE t1 FIELDS ENCLOSED BY '"';
4661
4662 drop table t1;
4663@@ -233,11 +233,11 @@
4664 #create table bug19145c (e enum('a','b','c') not null default 'b' , s set('x', 'y', 'z') not null default 'y' ) engine=MyISAM;
4665
4666 # Invalid default value for 's'
4667-#--error 1067
4668+#--error ER_INVALID_DEFAULT
4669 #create table bug19145setnotnulldefaultnull (e enum('a','b','c') default null, s set('x', 'y', 'z') not null default null) engine=MyISAM;
4670
4671 # Invalid default value for 'e'
4672-#--error 1067
4673+#--error ER_INVALID_DEFAULT
4674 #create table bug19145enumnotnulldefaultnull (e enum('a','b','c') not null default null, s set('x', 'y', 'z') default null) engine=MyISAM;
4675
4676 #alter table bug19145a alter column e set default null;
4677@@ -249,11 +249,11 @@
4678 #alter table bug19145b add column (i int);
4679
4680 # Invalid default value for 'e'
4681-#--error 1067
4682+#--error ER_INVALID_DEFAULT
4683 #alter table bug19145c alter column e set default null;
4684
4685 # Invalid default value for 's'
4686-#--error 1067
4687+#--error ER_INVALID_DEFAULT
4688 #alter table bug19145c alter column s set default null;
4689 #alter table bug19145c add column (i int);
4690
4691
4692=== modified file 'tests/t/null_key.test'
4693--- tests/t/null_key.test 2009-11-18 22:58:22 +0000
4694+++ tests/t/null_key.test 2010-08-27 21:22:40 +0000
4695@@ -28,7 +28,7 @@
4696 select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
4697 select * from t1 where a > 1 and a < 3 limit 1;
4698 select * from t1 where a > 8 and a < 9;
4699---error 1005
4700+--error ER_CANT_CREATE_TABLE
4701 create table t2 like t1;
4702 create temporary table t2 like t1;
4703 show create table t2;
4704@@ -230,7 +230,7 @@
4705 index (id),
4706 index (id2)
4707 );
4708---error 1048
4709+--error ER_BAD_NULL_ERROR
4710 insert into t1 values(null,null),(1,1);
4711 select * from t1;
4712 select * from t1 where id <=> null;
4713
4714=== modified file 'tests/t/olap.test'
4715--- tests/t/olap.test 2008-12-19 21:34:33 +0000
4716+++ tests/t/olap.test 2010-08-27 21:22:40 +0000
4717@@ -72,11 +72,11 @@
4718 # Error handling
4719
4720 # Cube is not yet implemented
4721---error 1064
4722+--error ER_PARSE_ERROR
4723 select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
4724---error 1064
4725+--error ER_PARSE_ERROR
4726 explain select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
4727---error 1064
4728+--error ER_PARSE_ERROR
4729 select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube union all select product, country_id , year, sum(profit) from t1 group by product, country_id, year with rollup;
4730
4731 drop table t1,t2;
4732
4733=== modified file 'tests/t/optimizer.test'
4734--- tests/t/optimizer.test 2010-08-21 04:05:07 +0000
4735+++ tests/t/optimizer.test 2010-08-27 21:22:40 +0000
4736@@ -421,7 +421,7 @@
4737
4738 INSERT INTO `dd` VALUES (1777795072,NULL,'g',0,'was',-1866203136,'',1,'g');
4739
4740---error 1054
4741+--error ER_BAD_FIELD_ERROR
4742 EXPLAIN EXTENDED SELECT
4743 table2 . `col_enum_not_null_key` AS field1 ,
4744 table1 . `col_char_1024_key` AS field2
4745
4746=== modified file 'tests/t/order_by.test'
4747--- tests/t/order_by.test 2010-05-12 22:54:08 +0000
4748+++ tests/t/order_by.test 2010-08-27 21:22:40 +0000
4749@@ -474,17 +474,17 @@
4750 # Let us also test various ambiguos and potentially ambiguos cases
4751 # related to aliases
4752 #
4753---error 1052
4754+--error ER_NON_UNIQ_ERROR
4755 select col1 as col, col from t1 order by col;
4756---error 1052
4757-select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
4758- order by col;
4759---error 1052
4760-select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
4761- order by col;
4762---error 1052
4763+--error ER_NON_UNIQ_ERROR
4764+select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
4765+ order by col;
4766+--error ER_NON_UNIQ_ERROR
4767+select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
4768+ order by col;
4769+--error ER_NON_UNIQ_ERROR
4770 select col1 from t1, t2 where t1.col1=t2.col2 order by col;
4771---error 1052
4772+--error ER_NON_UNIQ_ERROR
4773 select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
4774 order by col;
4775
4776@@ -580,10 +580,10 @@
4777 SELECT CONCAT('test', a) AS str FROM t1 ORDER BY UPPER(str);
4778 SELECT a + 1 AS num FROM t1 GROUP BY 30 - num;
4779 SELECT a + 1 AS num FROM t1 HAVING 30 - num;
4780---error 1054
4781+--error ER_BAD_FIELD_ERROR
4782 SELECT a + 1 AS num, num + 1 FROM t1;
4783 SELECT a + 1 AS num, (select num + 2 FROM t1 LIMIT 1) FROM t1;
4784---error 1054
4785+--error ER_BAD_FIELD_ERROR
4786 SELECT a.a + 1 AS num FROM t1 a JOIN t1 b ON num = b.a;
4787 DROP TABLE t1;
4788
4789@@ -594,25 +594,25 @@
4790 CREATE TABLE bug25126 (
4791 val int NOT NULL AUTO_INCREMENT PRIMARY KEY
4792 );
4793---error 1054
4794+--error ER_BAD_FIELD_ERROR
4795 UPDATE bug25126 SET MissingCol = MissingCol;
4796---error 1054
4797+--error ER_BAD_FIELD_ERROR
4798 UPDATE bug25126 SET val = val ORDER BY MissingCol;
4799 UPDATE bug25126 SET val = val ORDER BY val;
4800 UPDATE bug25126 SET val = 1 ORDER BY val;
4801---error 1054
4802+--error ER_BAD_FIELD_ERROR
4803 UPDATE bug25126 SET val = 1 ORDER BY MissingCol;
4804---error 1054
4805+--error ER_BAD_FIELD_ERROR
4806 UPDATE bug25126 SET val = 1 ORDER BY val, MissingCol;
4807---error 1054
4808+--error ER_BAD_FIELD_ERROR
4809 UPDATE bug25126 SET val = MissingCol ORDER BY MissingCol;
4810---error 1054
4811+--error ER_BAD_FIELD_ERROR
4812 UPDATE bug25126 SET MissingCol = 1 ORDER BY val, MissingCol;
4813---error 1054
4814+--error ER_BAD_FIELD_ERROR
4815 UPDATE bug25126 SET MissingCol = 1 ORDER BY MissingCol;
4816---error 1054
4817+--error ER_BAD_FIELD_ERROR
4818 UPDATE bug25126 SET MissingCol = val ORDER BY MissingCol;
4819---error 1054
4820+--error ER_BAD_FIELD_ERROR
4821 UPDATE bug25126 SET MissingCol = MissingCol ORDER BY MissingCol;
4822 DROP TABLE bug25126;
4823
4824@@ -624,9 +624,9 @@
4825 CREATE TABLE t1 (a int);
4826
4827 SELECT p.a AS val, q.a AS val1 FROM t1 p, t1 q ORDER BY val > 1;
4828---error 1052
4829+--error ER_NON_UNIQ_ERROR
4830 SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val;
4831---error 1052
4832+--error ER_NON_UNIQ_ERROR
4833 SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val > 1;
4834
4835 DROP TABLE t1;
4836@@ -742,14 +742,14 @@
4837 INSERT INTO t1 SELECT a +32, b +32 FROM t1;
4838 INSERT INTO t1 SELECT a +64, b +64 FROM t1;
4839
4840---error 1176
4841+--error ER_KEY_DOES_NOT_EXITS
4842 SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (a, ab) GROUP BY a;
4843
4844 SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (primary, ab) GROUP BY a;
4845
4846 SELECT @tmp_tables_after = @tmp_tables_before ;
4847
4848---error 1176
4849+--error ER_KEY_DOES_NOT_EXITS
4850 SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (a, ab) ORDER BY a;
4851 SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (primary, ab) ORDER BY a;
4852
4853
4854=== modified file 'tests/t/outfile.test'
4855--- tests/t/outfile.test 2010-02-24 23:10:30 +0000
4856+++ tests/t/outfile.test 2010-08-27 21:22:40 +0000
4857@@ -31,13 +31,13 @@
4858 # the following should give errors
4859
4860 disable_query_log;
4861---error 1086
4862+--error ER_FILE_EXISTS_ERROR
4863 eval select * into outfile "../tmp/outfile-test.1" from t1;
4864
4865---error 1086
4866+--error ER_FILE_EXISTS_ERROR
4867 eval select * into dumpfile "../tmp/outfile-test.2" from t1;
4868
4869---error 1086
4870+--error ER_FILE_EXISTS_ERROR
4871 eval select * into dumpfile "../tmp/outfile-test.3" from t1;
4872 enable_query_log;
4873 select load_file(concat(@tmpdir,"/outfile-test.not-exist"));
4874@@ -92,6 +92,6 @@
4875 # It should not be possible to write to a file outside of vardir
4876 create table t1(a int);
4877 --replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
4878---error 1290
4879+--error ER_OPTION_PREVENTS_STATEMENT
4880 eval select * into outfile "$DRIZZLE_TEST_DIR/outfile-test1" from t1;
4881 drop table t1;
4882
4883=== modified file 'tests/t/parser.test'
4884--- tests/t/parser.test 2010-06-24 05:34:43 +0000
4885+++ tests/t/parser.test 2010-08-27 21:22:40 +0000
4886@@ -589,7 +589,7 @@
4887 # MySQL didn't follow the SQL standard on CROSS. INNER requires ON, but
4888 # CROSS does not make use of ON.
4889 #
4890---error 1064
4891+--error ER_PARSE_ERROR
4892 SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) CROSS JOIN t3 ON (t3.a2=t2.a3)};
4893 SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) INNER JOIN t3 ON (t3.a2=t2.a3)};
4894 SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;
4895
4896=== modified file 'tests/t/plugin-remove.test'
4897--- tests/t/plugin-remove.test 2010-02-05 20:19:10 +0000
4898+++ tests/t/plugin-remove.test 2010-08-27 21:22:40 +0000
4899@@ -1,3 +1,3 @@
4900---error 1305
4901+--error ER_SP_DOES_NOT_EXIST
4902 select length("test string");
4903
4904
4905=== modified file 'tests/t/quarter.test'
4906--- tests/t/quarter.test 2009-01-30 04:38:21 +0000
4907+++ tests/t/quarter.test 2010-08-27 21:22:40 +0000
4908@@ -16,11 +16,11 @@
4909 # Test improper argument list
4910 #
4911 # 1 arg is required.
4912---error 1064
4913+--error ER_PARSE_ERROR
4914 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4915 # the SQL parser, which considers QUARTER a keyword before being a function symbol
4916 SELECT QUARTER();
4917---error 1064
4918+--error ER_PARSE_ERROR
4919 # Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
4920 # the SQL parser, which considers QUARTER a keyword before being a function symbol
4921 SELECT QUARTER(1, 0);
4922@@ -30,23 +30,23 @@
4923 # produce an error, not a NULL or anything
4924 # else...
4925 #
4926---error 1686
4927+--error ER_INVALID_DATETIME_VALUE
4928 SELECT QUARTER("xxx");
4929
4930 # Indy, bad dates!
4931---error 1686
4932+--error ER_INVALID_DATETIME_VALUE
4933 SELECT QUARTER("0000-00-00"); # No 0000-00-00 dates!...
4934---error 1686
4935+--error ER_INVALID_DATETIME_VALUE
4936 SELECT QUARTER("0000-01-01"); # No zero year parts
4937---error 1686
4938+--error ER_INVALID_DATETIME_VALUE
4939 SELECT QUARTER("0001-00-01"); # No zero month parts
4940---error 1686
4941+--error ER_INVALID_DATETIME_VALUE
4942 SELECT QUARTER("0001-01-00"); # No zero day parts
4943---error 1686
4944+--error ER_INVALID_DATETIME_VALUE
4945 SELECT QUARTER("2000-02-30"); # No Feb 30th!
4946---error 1686
4947+--error ER_INVALID_DATETIME_VALUE
4948 SELECT QUARTER("1900-02-29"); # Not a leap QUARTER since not divisible evenly by 400...
4949---error 1686
4950+--error ER_INVALID_DATETIME_VALUE
4951 SELECT QUARTER('1976-15-15'); # No 15th month!
4952
4953 # A good date, which should output 1
4954
4955=== modified file 'tests/t/regression_385808.test'
4956--- tests/t/regression_385808.test 2010-05-21 18:39:01 +0000
4957+++ tests/t/regression_385808.test 2010-08-27 21:22:40 +0000
4958@@ -32,10 +32,10 @@
4959
4960 CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
4961 SELECT a FROM t1;
4962---error 1062
4963+--error ER_DUP_ENTRY
4964 CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
4965 SELECT a FROM t1;
4966---error 1062
4967+--error ER_DUP_ENTRY
4968 CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
4969 SELECT a FROM t1;
4970
4971
4972=== modified file 'tests/t/rename.test'
4973--- tests/t/rename.test 2008-12-18 23:54:47 +0000
4974+++ tests/t/rename.test 2010-08-27 21:22:40 +0000
4975@@ -19,14 +19,14 @@
4976 select * from t1;
4977
4978 # The following should give errors
4979---error 1050,1050
4980+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
4981 rename table t1 to t2;
4982---error 1050,1050
4983+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
4984 rename table t1 to t1;
4985---error 1050,1050
4986+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
4987 rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
4988 show tables like "t_";
4989---error 1050,1050
4990+--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
4991 rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
4992 --error ER_NO_SUCH_TABLE
4993 rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
4994@@ -36,4 +36,4 @@
4995 select * from t3;
4996
4997 # This should give a warning for t4
4998-drop table if exists t1,t2,t3,t4;
4999\ No newline at end of file
5000+drop table if exists t1,t2,t3,t4;
The diff has been truncated for viewing.