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

Proposed by Lee Bieber
Status: Merged
Approved by: Monty Taylor
Approved revision: 1732
Merged at revision: 1734
Proposed branch: lp:~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 7208 lines (+1234/-1221)
153 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 (+5/-5)
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/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
Reviewer Review Type Date Requested Status
Drizzle Merge Team Pending
Review via email: mp+33860@code.launchpad.net

Description of the change

Change tests to use enum values instead of error numbers
Also remove --basedir from dtr, no longer needed

To post a comment you must log in.

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