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

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

Description of the change

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

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

Looks great.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'client/errname.cc'
--- client/errname.cc 2010-01-09 00:50:53 +0000
+++ client/errname.cc 2010-08-27 21:22:40 +0000
@@ -298,7 +298,7 @@
298 { "ER_WARN_TOO_MANY_RECORDS",1262 },298 { "ER_WARN_TOO_MANY_RECORDS",1262 },
299 { "ER_WARN_NULL_TO_NOTNULL",1263 },299 { "ER_WARN_NULL_TO_NOTNULL",1263 },
300 { "ER_WARN_DATA_OUT_OF_RANGE",1264 },300 { "ER_WARN_DATA_OUT_OF_RANGE",1264 },
301 { "WARN_DATA_TRUNCATED",1265 },301 { "ER_WARN_DATA_TRUNCATED",1265 },
302 { "ER_WARN_USING_OTHER_HANDLER",1266 },302 { "ER_WARN_USING_OTHER_HANDLER",1266 },
303 { "ER_CANT_AGGREGATE_2COLLATIONS",1267 },303 { "ER_CANT_AGGREGATE_2COLLATIONS",1267 },
304 { "ER_DROP_USER",1268 },304 { "ER_DROP_USER",1268 },
@@ -715,7 +715,27 @@
715 { "ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN",1679 },715 { "ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN",1679 },
716 { "ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN",1680 },716 { "ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN",1680 },
717 { "ER_CONST_EXPR_IN_VCOL",1681 },717 { "ER_CONST_EXPR_IN_VCOL",1681 },
718 { "ER_UNKNOWN_TEMPORAL_TYPE",1682 },
719 { "ER_INVALID_STRING_FORMAT_FOR_DATE",1683 },
720 { "ER_INVALID_STRING_FORMAT_FOR_TIME",1684 },
721 { "ER_INVALID_UNIX_TIMESTAMP_VALUE",1685 },
722 { "ER_INVALID_DATETIME_VALUE",1686 },
723 { "ER_INVALID_NULL_ARGUMENT",1687 },
724 { "ER_INVALID_NEGATIVE_ARGUMENT",1688 },
725 { "ER_ARGUMENT_OUT_OF_RANGE",1689 },
726 { "ER_INVALID_TIME_VALUE",1690 },
727 { "ER_INVALID_ENUM_VALUE",1691 },
718 { "ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE", 1692},728 { "ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE", 1692},
729 { "ER_CORRUPT_TABLE_DEFINITION", 1693},
730 { "ER_SCHEMA_DOES_NOT_EXIST", 1694},
731 { "ER_ALTER_SCHEMA", 1695},
732 { "ER_DROP_SCHEMA", 1696},
733 { "ER_USE_SQL_BIG_RESULT", 1697},
734 { "ER_UNKNOWN_ENGINE_OPTION", 1698},
735 { "ER_UNKNOWN_SCHEMA_OPTION", 1699},
736 { "ER_EVENT_OBSERVER_PLUGIN", 1700},
737 { "ER_CORRUPT_SCHEMA_DEFINITION", 1701},
738 { "ER_CARTESIAN_JOIN_ATTEMPTED", 1702},
719 { 0, 0 }739 { 0, 0 }
720 };740 };
721741
722742
=== modified file 'plugin/archive/tests/t/archive.test'
--- plugin/archive/tests/t/archive.test 2009-12-04 10:20:37 +0000
+++ plugin/archive/tests/t/archive.test 2010-08-27 21:22:40 +0000
@@ -1333,14 +1333,14 @@
1333#1333#
1334# For bug #128361334# For bug #12836
1335# Delete was allowing all rows to be removed1335# Delete was allowing all rows to be removed
1336--error 10311336--error ER_ILLEGAL_HA
1337DELETE FROM t2;1337DELETE FROM t2;
1338SELECT * FROM t2;1338SELECT * FROM t2;
1339INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');1339INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
1340INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');1340INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
1341INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');1341INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
1342SELECT * FROM t2;1342SELECT * FROM t2;
1343--error 10311343--error ER_ILLEGAL_HA
1344TRUNCATE TABLE t2;1344TRUNCATE TABLE t2;
1345SELECT * FROM t2;1345SELECT * FROM t2;
13461346
@@ -1370,11 +1370,11 @@
1370INSERT INTO t5 VALUES (NULL, "foo");1370INSERT INTO t5 VALUES (NULL, "foo");
1371INSERT INTO t5 VALUES (NULL, "foo");1371INSERT INTO t5 VALUES (NULL, "foo");
1372INSERT INTO t5 VALUES (32, "foo");1372INSERT INTO t5 VALUES (32, "foo");
1373--error 10221373--error ER_DUP_KEY
1374INSERT INTO t5 VALUES (23, "foo");1374INSERT INTO t5 VALUES (23, "foo");
1375INSERT INTO t5 VALUES (NULL, "foo");1375INSERT INTO t5 VALUES (NULL, "foo");
1376INSERT INTO t5 VALUES (NULL, "foo");1376INSERT INTO t5 VALUES (NULL, "foo");
1377--error 10221377--error ER_DUP_KEY
1378INSERT INTO t5 VALUES (3, "foo");1378INSERT INTO t5 VALUES (3, "foo");
1379INSERT INTO t5 VALUES (NULL, "foo");1379INSERT INTO t5 VALUES (NULL, "foo");
1380SELECT * FROM t5;1380SELECT * FROM t5;
13811381
=== modified file 'plugin/archive/tests/t/archive_aio_posix.test'
--- plugin/archive/tests/t/archive_aio_posix.test 2009-12-04 10:20:37 +0000
+++ plugin/archive/tests/t/archive_aio_posix.test 2010-08-27 21:22:40 +0000
@@ -1333,14 +1333,14 @@
1333#1333#
1334# For bug #128361334# For bug #12836
1335# Delete was allowing all rows to be removed1335# Delete was allowing all rows to be removed
1336--error 10311336--error ER_ILLEGAL_HA
1337DELETE FROM t2;1337DELETE FROM t2;
1338SELECT * FROM t2;1338SELECT * FROM t2;
1339INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');1339INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
1340INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');1340INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
1341INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');1341INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
1342SELECT * FROM t2;1342SELECT * FROM t2;
1343--error 10311343--error ER_ILLEGAL_HA
1344TRUNCATE TABLE t2;1344TRUNCATE TABLE t2;
1345SELECT * FROM t2;1345SELECT * FROM t2;
13461346
@@ -1370,11 +1370,11 @@
1370INSERT INTO t5 VALUES (NULL, "foo");1370INSERT INTO t5 VALUES (NULL, "foo");
1371INSERT INTO t5 VALUES (NULL, "foo");1371INSERT INTO t5 VALUES (NULL, "foo");
1372INSERT INTO t5 VALUES (32, "foo");1372INSERT INTO t5 VALUES (32, "foo");
1373--error 10221373--error ER_DUP_KEY
1374INSERT INTO t5 VALUES (23, "foo");1374INSERT INTO t5 VALUES (23, "foo");
1375INSERT INTO t5 VALUES (NULL, "foo");1375INSERT INTO t5 VALUES (NULL, "foo");
1376INSERT INTO t5 VALUES (NULL, "foo");1376INSERT INTO t5 VALUES (NULL, "foo");
1377--error 10221377--error ER_DUP_KEY
1378INSERT INTO t5 VALUES (3, "foo");1378INSERT INTO t5 VALUES (3, "foo");
1379INSERT INTO t5 VALUES (NULL, "foo");1379INSERT INTO t5 VALUES (NULL, "foo");
1380SELECT * FROM t5;1380SELECT * FROM t5;
13811381
=== modified file 'plugin/archive/tests/t/archive_discover.test'
--- plugin/archive/tests/t/archive_discover.test 2009-11-12 00:43:38 +0000
+++ plugin/archive/tests/t/archive_discover.test 2010-08-27 21:22:40 +0000
@@ -3,5 +3,5 @@
3SELECT * from t1;3SELECT * from t1;
4--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.arz4--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.arz
5FLUSH TABLES;5FLUSH TABLES;
6--error 11466--error ER_NO_SUCH_TABLE
7SELECT * FROM t1;7SELECT * FROM t1;
88
=== modified file 'plugin/blackhole/tests/t/blackhole.test'
--- plugin/blackhole/tests/t/blackhole.test 2010-08-20 22:04:44 +0000
+++ plugin/blackhole/tests/t/blackhole.test 2010-08-27 21:22:40 +0000
@@ -46,12 +46,12 @@
46CREATE TABLE t5 (a int) ENGINE=BLACKHOLE;46CREATE TABLE t5 (a int) ENGINE=BLACKHOLE;
47INSERT INTO t5 VALUES (1);47INSERT INTO t5 VALUES (1);
48FLUSH TABLES WITH READ LOCK;48FLUSH TABLES WITH READ LOCK;
49--error 122349--error ER_CANT_UPDATE_WITH_READLOCK
50INSERT INTO t5 VALUES (1);50INSERT INTO t5 VALUES (1);
51UNLOCK TABLES;51UNLOCK TABLES;
52INSERT INTO t5 VALUES (1);52INSERT INTO t5 VALUES (1);
53FLUSH TABLES WITH READ LOCK;53FLUSH TABLES WITH READ LOCK;
54--error 122354--error ER_CANT_UPDATE_WITH_READLOCK
55DROP TABLE t5;55DROP TABLE t5;
56UNLOCK TABLES;56UNLOCK TABLES;
57INSERT INTO t5 VALUES (1);57INSERT INTO t5 VALUES (1);
5858
=== modified file 'plugin/blackhole/tests/t/create_max_fields.test'
--- plugin/blackhole/tests/t/create_max_fields.test 2010-03-23 10:01:41 +0000
+++ plugin/blackhole/tests/t/create_max_fields.test 2010-08-27 21:22:40 +0000
@@ -4104,7 +4104,7 @@
4104SHOW CREATE TABLE t1;4104SHOW CREATE TABLE t1;
4105DROP TABLE t1;4105DROP TABLE t1;
4106--echo Now, MAX_FIELDS. This fails.4106--echo Now, MAX_FIELDS. This fails.
4107--error 11174107--error ER_TOO_MANY_FIELDS
4108CREATE TABLE t1 (4108CREATE TABLE t1 (
4109f0 int,4109f0 int,
4110f1 int,4110f1 int,
41114111
=== modified file 'plugin/blitzdb/tests/t/blitzdb-alter.test'
--- plugin/blitzdb/tests/t/blitzdb-alter.test 2010-06-09 09:52:51 +0000
+++ plugin/blitzdb/tests/t/blitzdb-alter.test 2010-08-27 21:22:40 +0000
@@ -23,9 +23,9 @@
23 primary key (pk)23 primary key (pk)
24) ENGINE=blitzdb ;24) ENGINE=blitzdb ;
2525
26--error 111226--error ER_UNSUPPORTED_EXTENSION
27ALTER TABLE `t1` DISABLE KEYS;27ALTER TABLE `t1` DISABLE KEYS;
28--error 111228--error ER_UNSUPPORTED_EXTENSION
29ALTER TABLE `t1` ENABLE KEYS;29ALTER TABLE `t1` ENABLE KEYS;
3030
31DROP TABLE `t1`;31DROP TABLE `t1`;
3232
=== modified file 'plugin/blitzdb/tests/t/blitzdb-basic.test'
--- plugin/blitzdb/tests/t/blitzdb-basic.test 2010-07-13 06:12:40 +0000
+++ plugin/blitzdb/tests/t/blitzdb-basic.test 2010-08-27 21:22:40 +0000
@@ -8,13 +8,13 @@
8create table t1 (a int, b double, c float) engine = blitzdb;8create table t1 (a int, b double, c float) engine = blitzdb;
9create table t2 (a int, b text, c blob) engine = blitzdb;9create table t2 (a int, b text, c blob) engine = blitzdb;
1010
11--error 105011--error ER_TABLE_EXISTS_ERROR
12create table t1 (a int, b double, c float) engine = blitzdb;12create table t1 (a int, b double, c float) engine = blitzdb;
13--error 105013--error ER_TABLE_EXISTS_ERROR
14create table t2 (a int, b text, c blob) engine = blitzdb;14create table t2 (a int, b text, c blob) engine = blitzdb;
15--error 105015--error ER_TABLE_EXISTS_ERROR
16create table t1 (a int) engine = blitzdb;16create table t1 (a int) engine = blitzdb;
17--error 105017--error ER_TABLE_EXISTS_ERROR
18create table t2 (a int) engine = blitzdb;18create table t2 (a int) engine = blitzdb;
1919
20show tables;20show tables;
@@ -136,7 +136,7 @@
136insert into t1 values (1, NULL), (2, NULL), (3, NULL), (4, NULL);136insert into t1 values (1, NULL), (2, NULL), (3, NULL), (4, NULL);
137insert into t1 values (5, NULL), (6, NULL), (7, NULL), (8, NULL);137insert into t1 values (5, NULL), (6, NULL), (7, NULL), (8, NULL);
138138
139--error 1048 # NOT NULL Violation139--error ER_BAD_NULL_ERROR # NOT NULL Violation
140insert into t1 values (NULL, 1);140insert into t1 values (NULL, 1);
141141
142select * from t1;142select * from t1;
@@ -162,9 +162,9 @@
162162
163# Test(12): Boundary Check163# Test(12): Boundary Check
164create table t1 (a int) engine = blitzdb;164create table t1 (a int) engine = blitzdb;
165--error 1264165--error ER_WARN_DATA_OUT_OF_RANGE
166insert into t1 values(2147483649);166insert into t1 values(2147483649);
167--error 1264167--error ER_WARN_DATA_OUT_OF_RANGE
168insert into t1 values(-2147483649);168insert into t1 values(-2147483649);
169insert into t1 values(2147483647);169insert into t1 values(2147483647);
170select * from t1;170select * from t1;
@@ -177,13 +177,13 @@
177insert into t1 select repeat('x', 8);177insert into t1 select repeat('x', 8);
178insert into t1 select repeat('x', 16);178insert into t1 select repeat('x', 16);
179insert into t1 select repeat('x', 32);179insert into t1 select repeat('x', 32);
180--error 1406180--error ER_DATA_TOO_LONG
181insert into t1 select repeat('x', 33);181insert into t1 select repeat('x', 33);
182select * from t1;182select * from t1;
183183
184create table t2 (a varchar(16383)) engine = blitzdb; # Theoretical Max184create table t2 (a varchar(16383)) engine = blitzdb; # Theoretical Max
185insert into t2 select repeat('x', 16383);185insert into t2 select repeat('x', 16383);
186--error 1406186--error ER_DATA_TOO_LONG
187insert into t2 select repeat('x', 16384);187insert into t2 select repeat('x', 16384);
188select count(*) from t2;188select count(*) from t2;
189drop table t1, t2;189drop table t1, t2;
@@ -192,13 +192,13 @@
192create table t1 (a varchar(32)) engine = blitzdb; 192create table t1 (a varchar(32)) engine = blitzdb;
193insert into t1 select repeat('�', 8);193insert into t1 select repeat('�', 8);
194insert into t1 select repeat('�', 32);194insert into t1 select repeat('�', 32);
195--error 1406195--error ER_DATA_TOO_LONG
196insert into t1 select repeat('�', 33);196insert into t1 select repeat('�', 33);
197select * from t1;197select * from t1;
198198
199create table t2 (a varchar(16383)) engine = blitzdb;199create table t2 (a varchar(16383)) engine = blitzdb;
200insert into t2 select repeat('値', 16383);200insert into t2 select repeat('値', 16383);
201--error 1406201--error ER_DATA_TOO_LONG
202insert into t2 select repeat('値', 16384);202insert into t2 select repeat('値', 16384);
203select count(*) from t2;203select count(*) from t2;
204drop table t1, t2;204drop table t1, t2;
205205
=== modified file 'plugin/blitzdb/tests/t/blitzdb-decimal.test'
--- plugin/blitzdb/tests/t/blitzdb-decimal.test 2010-06-02 09:39:56 +0000
+++ plugin/blitzdb/tests/t/blitzdb-decimal.test 2010-08-27 21:22:40 +0000
@@ -18,19 +18,19 @@
18# Test the max number of possible digits18# Test the max number of possible digits
19create table t2 (a decimal(65,0)) engine = blitzdb;19create table t2 (a decimal(65,0)) engine = blitzdb;
20insert into t2 select repeat(1, 65);20insert into t2 select repeat(1, 65);
21--error 126421--error ER_WARN_DATA_OUT_OF_RANGE
22insert into t2 select repeat(1, 66);22insert into t2 select repeat(1, 66);
23select * from t2;23select * from t2;
24drop table t2;24drop table t2;
2525
26create table t2 (a decimal(65,8)) engine = blitzdb;26create table t2 (a decimal(65,8)) engine = blitzdb;
27insert into t2 select repeat(1, 57);27insert into t2 select repeat(1, 57);
28--error 126428--error ER_WARN_DATA_OUT_OF_RANGE
29insert into t2 select repeat(1, 58);29insert into t2 select repeat(1, 58);
3030
31delete from t2;31delete from t2;
3232
33--error 1264 # Out of Range33--error ER_WARN_DATA_OUT_OF_RANGE # Out of Range
34insert into t2 values (34insert into t2 values (
35 -111111111111111111111111111111111111111111111111111111111135 -1111111111111111111111111111111111111111111111111111111111
36);36);
@@ -39,7 +39,7 @@
39 1111111111111111111111111111111111111111111111111.1111111139 1111111111111111111111111111111111111111111111111.11111111
40);40);
4141
42--error 1265 # Truncated42--error ER_WARN_DATA_TRUNCATED # Truncated
43insert into t2 values (43insert into t2 values (
44 111111111111111111111111111111111111111111111111.11111111144 111111111111111111111111111111111111111111111111.111111111
45);45);
@@ -94,11 +94,11 @@
9494
95# Exponent overflow bug95# Exponent overflow bug
96create table t1 (a decimal(10,0)) engine = blitzdb;96create table t1 (a decimal(10,0)) engine = blitzdb;
97--error 1366 incorrect decimal value97--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
98insert into t1 values ("1e4294967295");98insert into t1 values ("1e4294967295");
99select * from t1;99select * from t1;
100delete from t1;100delete from t1;
101--error 1366 incorrect decimal value101--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
102insert into t1 values("1e4294967297");102insert into t1 values("1e4294967297");
103select * from t1;103select * from t1;
104drop table t1;104drop table t1;
105105
=== modified file 'plugin/blitzdb/tests/t/blitzdb-index.test'
--- plugin/blitzdb/tests/t/blitzdb-index.test 2010-07-13 06:12:40 +0000
+++ plugin/blitzdb/tests/t/blitzdb-index.test 2010-08-27 21:22:40 +0000
@@ -18,17 +18,17 @@
18explain select count (*) from t1;18explain select count (*) from t1;
1919
20# overflow20# overflow
21--error 126421--error ER_WARN_DATA_OUT_OF_RANGE
22insert into t1 values (2147483648, 1, 1);22insert into t1 values (2147483648, 1, 1);
2323
24# duplicates 24# duplicates
25--error 106225--error ER_DUP_ENTRY
26insert into t1 values (1, 0, 0);26insert into t1 values (1, 0, 0);
27--error 106227--error ER_DUP_ENTRY
28insert into t1 values (2, 0, 0);28insert into t1 values (2, 0, 0);
29--error 106229--error ER_DUP_ENTRY
30insert into t1 values (3, 0, 0);30insert into t1 values (3, 0, 0);
31--error 106231--error ER_DUP_ENTRY
32insert into t1 values (4, 0, 0);32insert into t1 values (4, 0, 0);
3333
34# needle in a haystack 34# needle in a haystack
@@ -42,7 +42,7 @@
42select * from t1 order by id;42select * from t1 order by id;
4343
44# update the key44# update the key
45--error 106245--error ER_DUP_ENTRY
46update t1 set id = 2 where id = 1;46update t1 set id = 2 where id = 1;
4747
48update t1 set id = 17 where id = 1;48update t1 set id = 17 where id = 1;
@@ -53,7 +53,7 @@
53update t1 set id = 22 where id = 6;53update t1 set id = 22 where id = 6;
54update t1 set id = 23 where id = 7;54update t1 set id = 23 where id = 7;
5555
56--error 106256--error ER_DUP_ENTRY
57update t1 set id = 20 where id = 8;57update t1 set id = 20 where id = 8;
5858
59# TODO: This is using filesort. Investigate why.59# TODO: This is using filesort. Investigate why.
@@ -100,12 +100,12 @@
100insert into t1 values (1.8e+18, 2);100insert into t1 values (1.8e+18, 2);
101101
102# overflow102# overflow
103--error 1264103--error ER_WARN_DATA_OUT_OF_RANGE
104insert into t1 values (1.8e+19, 3);104insert into t1 values (1.8e+19, 3);
105105
106insert into t1 values (1,1), (2,2), (3,3), (4,4);106insert into t1 values (1,1), (2,2), (3,3), (4,4);
107107
108--error 1062108--error ER_DUP_ENTRY
109update t1 set id = 4 where id = 1;109update t1 set id = 4 where id = 1;
110110
111update t1 set id = 10 where id = 1;111update t1 set id = 10 where id = 1;
@@ -183,9 +183,9 @@
183insert into t1 values (2.2222, 8);183insert into t1 values (2.2222, 8);
184select * from t1;184select * from t1;
185185
186--error 1062186--error ER_DUP_ENTRY
187update t1 set id = 1.11 where id = 1.1;187update t1 set id = 1.11 where id = 1.1;
188--error 1062188--error ER_DUP_ENTRY
189update t1 set id = 2.22 where id = 2.2;189update t1 set id = 2.22 where id = 2.2;
190190
191update t1 set id = 3.3 where id = 1.1;191update t1 set id = 3.3 where id = 1.1;
@@ -194,7 +194,7 @@
194update t1 set id = 3.3333 where id = 1.1111;194update t1 set id = 3.3333 where id = 1.1111;
195select * from t1 order by id;195select * from t1 order by id;
196196
197--error 1062197--error ER_DUP_ENTRY
198update t1 set id = 2.2 where id = 3.3;198update t1 set id = 2.2 where id = 3.3;
199199
200delete from t1 where id = 3.3;200delete from t1 where id = 3.3;
@@ -225,7 +225,7 @@
225select country from t1 where id = 'budapest';225select country from t1 where id = 'budapest';
226select count (id) from t1;226select count (id) from t1;
227227
228--error 1062228--error ER_DUP_ENTRY
229update t1 set id = 'dublin' where id = 'geneva';229update t1 set id = 'dublin' where id = 'geneva';
230update t1 set id = 'berlin', country = 'germany' where id = 'budapest';230update t1 set id = 'berlin', country = 'germany' where id = 'budapest';
231update t1 set id = 'london', country = 'england' where id = 'copenhagen';231update t1 set id = 'london', country = 'england' where id = 'copenhagen';
@@ -263,9 +263,9 @@
263delete from t1 where a = 'hhh';263delete from t1 where a = 'hhh';
264select * from t1;264select * from t1;
265265
266--error 1062266--error ER_DUP_ENTRY
267update t1 set a = 'ddd' where a = 'aaa';267update t1 set a = 'ddd' where a = 'aaa';
268--error 1062268--error ER_DUP_ENTRY
269update t1 set a = 'ccc' where a = 'bbb';269update t1 set a = 'ccc' where a = 'bbb';
270270
271update t1 set a = 'zzz' where a = 'fff';271update t1 set a = 'zzz' where a = 'fff';
@@ -289,9 +289,9 @@
289select * from t1 where a = '1984-09-24';289select * from t1 where a = '1984-09-24';
290select * from t1 where a = '1984-09-25';290select * from t1 where a = '1984-09-25';
291291
292--error 1062292--error ER_DUP_ENTRY
293update t1 set a = '1984-09-22' where a = '1984-09-25';293update t1 set a = '1984-09-22' where a = '1984-09-25';
294--error 1062294--error ER_DUP_ENTRY
295update t1 set a = '19840922' where a = '1984-09-25';295update t1 set a = '19840922' where a = '1984-09-25';
296296
297update t1 set a = '2010-03-10' where a = '1984-09-22';297update t1 set a = '2010-03-10' where a = '1984-09-22';
@@ -384,9 +384,9 @@
384create table t1 (a int, unique index(a)) engine = blitzdb;384create table t1 (a int, unique index(a)) engine = blitzdb;
385insert into t1 values (1), (2);385insert into t1 values (1), (2);
386386
387--error 1062387--error ER_DUP_ENTRY
388insert into t1 values (1);388insert into t1 values (1);
389--error 1062389--error ER_DUP_ENTRY
390insert into t1 values (2);390insert into t1 values (2);
391391
392insert into t1 values (NULL);392insert into t1 values (NULL);
@@ -404,11 +404,11 @@
404create table t1 (a varchar(32), unique index(a)) engine = blitzdb;404create table t1 (a varchar(32), unique index(a)) engine = blitzdb;
405insert into t1 values ('a'), ('b'), ('c');405insert into t1 values ('a'), ('b'), ('c');
406406
407--error 1062407--error ER_DUP_ENTRY
408insert into t1 values ('a');408insert into t1 values ('a');
409--error 1062409--error ER_DUP_ENTRY
410insert into t1 values ('b');410insert into t1 values ('b');
411--error 1062411--error ER_DUP_ENTRY
412insert into t1 values ('c');412insert into t1 values ('c');
413413
414insert into t1 values ('f'), ('e'), ('d');414insert into t1 values ('f'), ('e'), ('d');
@@ -484,7 +484,7 @@
484select * from t1;484select * from t1;
485select * from t1 where a is NULL;485select * from t1 where a is NULL;
486insert into t1 values (1, 5), (2, 6);486insert into t1 values (1, 5), (2, 6);
487--error 1062487--error ER_DUP_ENTRY
488insert into t1 values (1, 7), (1, 8);488insert into t1 values (1, 7), (1, 8);
489select * from t1 where a is not NULL;489select * from t1 where a is not NULL;
490delete from t1 where a is NULL;490delete from t1 where a is NULL;
@@ -522,17 +522,17 @@
522# | COMPOSITE INDEX CHECK |522# | COMPOSITE INDEX CHECK |
523# +-----------------------+523# +-----------------------+
524524
525--error 1005525--error ER_CANT_CREATE_TABLE
526create table t1 (a int, b int, c int, d int, primary key(a, b)) engine = blitzdb;526create table t1 (a int, b int, c int, d int, primary key(a, b)) engine = blitzdb;
527--error 1005527--error ER_CANT_CREATE_TABLE
528create table t1 (a int, b int, c int, d int, primary key(a, b, c)) engine = blitzdb;528create table t1 (a int, b int, c int, d int, primary key(a, b, c)) engine = blitzdb;
529--error 1005529--error ER_CANT_CREATE_TABLE
530create table t1 (a int, b int, c int, d int, index(a, b)) engine = blitzdb;530create table t1 (a int, b int, c int, d int, index(a, b)) engine = blitzdb;
531--error 1005531--error ER_CANT_CREATE_TABLE
532create table t1 (a int, b int, c int, d int, index(a, b, c)) engine = blitzdb;532create table t1 (a int, b int, c int, d int, index(a, b, c)) engine = blitzdb;
533--error 1005533--error ER_CANT_CREATE_TABLE
534create table t1 (a int, b int, c int, d int, unique(a, b)) engine = blitzdb;534create table t1 (a int, b int, c int, d int, unique(a, b)) engine = blitzdb;
535--error 1005535--error ER_CANT_CREATE_TABLE
536create table t1 (a int, b int, c int, d int, unique(a, b, c)) engine = blitzdb;536create table t1 (a int, b int, c int, d int, unique(a, b, c)) engine = blitzdb;
537537
538# +------------------------------------------+538# +------------------------------------------+
539539
=== modified file 'plugin/csv/tests/t/csv.test'
--- plugin/csv/tests/t/csv.test 2009-11-12 00:44:36 +0000
+++ plugin/csv/tests/t/csv.test 2010-08-27 21:22:40 +0000
@@ -1472,22 +1472,22 @@
1472# Bug #31473: does not work with NULL value in datetime field1472# Bug #31473: does not work with NULL value in datetime field
1473#1473#
1474create temporary table t1(a datetime not null) engine=csv;1474create temporary table t1(a datetime not null) engine=csv;
1475--error 13641475--error ER_NO_DEFAULT_FOR_FIELD
1476insert into t1 values();1476insert into t1 values();
1477select * from t1;1477select * from t1;
1478drop table t1;1478drop table t1;
1479create temporary table t1(a varchar(32) not null) engine=csv;1479create temporary table t1(a varchar(32) not null) engine=csv;
1480--error 13641480--error ER_NO_DEFAULT_FOR_FIELD
1481insert into t1 values();1481insert into t1 values();
1482select * from t1;1482select * from t1;
1483drop table t1;1483drop table t1;
1484create temporary table t1(a int not null) engine=csv;1484create temporary table t1(a int not null) engine=csv;
1485--error 13641485--error ER_NO_DEFAULT_FOR_FIELD
1486insert into t1 values();1486insert into t1 values();
1487select * from t1;1487select * from t1;
1488drop table t1;1488drop table t1;
1489create temporary table t1(a blob not null) engine=csv;1489create temporary table t1(a blob not null) engine=csv;
1490--error 13641490--error ER_NO_DEFAULT_FOR_FIELD
1491insert into t1 values();1491insert into t1 values();
1492select * from t1;1492select * from t1;
1493drop table t1;1493drop table t1;
14941494
=== modified file 'plugin/csv/tests/t/csv_not_null.test'
--- plugin/csv/tests/t/csv_not_null.test 2009-11-12 00:44:36 +0000
+++ plugin/csv/tests/t/csv_not_null.test 2010-08-27 21:22:40 +0000
@@ -42,7 +42,7 @@
42CREATE TEMPORARY TABLE t1 (a int NOT NULL, b blob NOT NULL, c CHAR(20) NOT NULL, 42CREATE TEMPORARY TABLE t1 (a int NOT NULL, b blob NOT NULL, c CHAR(20) NOT NULL,
43d VARCHAR(20) NOT NULL, e enum('foo','bar') NOT NULL,f DATE NOT NULL) 43d VARCHAR(20) NOT NULL, e enum('foo','bar') NOT NULL,f DATE NOT NULL)
44ENGINE = CSV;44ENGINE = CSV;
45--error 136445--error ER_NO_DEFAULT_FOR_FIELD
46INSERT INTO t1 VALUES();46INSERT INTO t1 VALUES();
47SELECT * FROM t1;47SELECT * FROM t1;
4848
@@ -73,7 +73,7 @@
7373
7474
75CREATE TEMPORARY TABLE t1 (a int NOT NULL, b char(10) NOT NULL) ENGINE = CSV;75CREATE TEMPORARY TABLE t1 (a int NOT NULL, b char(10) NOT NULL) ENGINE = CSV;
76--error 136476--error ER_NO_DEFAULT_FOR_FIELD
77INSERT INTO t1 VALUES();77INSERT INTO t1 VALUES();
78insert into t1 values (0,"");78insert into t1 values (0,"");
79SELECT * FROM t1;79SELECT * FROM t1;
8080
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test 2010-05-13 14:10:16 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_column_drop_default.test 2010-08-27 21:22:40 +0000
@@ -2,7 +2,7 @@
2INSERT INTO t1 values ();2INSERT INTO t1 values ();
3SELECT * FROM t1;3SELECT * FROM t1;
4ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;4ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
5--error 13645--error ER_NO_DEFAULT_FOR_FIELD
6INSERT INTO t1 values ();6INSERT INTO t1 values ();
7INSERT INTO t1 (a) VALUES (11);7INSERT INTO t1 (a) VALUES (11);
8SELECT * FROM t1 ORDER BY a;8SELECT * FROM t1 ORDER BY a;
99
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test 2010-08-04 02:11:50 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/alter_table.test 2010-08-27 21:22:40 +0000
@@ -522,11 +522,11 @@
522#create table t1(f1 int);522#create table t1(f1 int);
523#alter table t1 add column f2 datetime not null, add column f21 date not null;523#alter table t1 add column f2 datetime not null, add column f21 date not null;
524#insert into t1 values(1,'2000-01-01','2000-01-01');524#insert into t1 values(1,'2000-01-01','2000-01-01');
525#--error 1292525#--error ER_TRUNCATED_WRONG_VALUE
526#alter table t1 add column f3 datetime not null;526#alter table t1 add column f3 datetime not null;
527#--error 1292527#--error ER_TRUNCATED_WRONG_VALUE
528#alter table t1 add column f3 date not null;528#alter table t1 add column f3 date not null;
529#--error 1292529#--error ER_TRUNCATED_WRONG_VALUE
530#alter table t1 add column f4 datetime not null default '2002-02-02',530#alter table t1 add column f4 datetime not null default '2002-02-02',
531# add column f41 date not null;531# add column f41 date not null;
532#alter table t1 add column f4 datetime not null default '2002-02-02',532#alter table t1 add column f4 datetime not null default '2002-02-02',
533533
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test 2010-04-21 02:30:12 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/auto_increment.test 2010-08-27 21:22:40 +0000
@@ -110,7 +110,7 @@
110select last_insert_id();110select last_insert_id();
111insert into t1 values (NULL, 15);111insert into t1 values (NULL, 15);
112select last_insert_id();112select last_insert_id();
113--error ER_DUP_ENTRY,1022113--error ER_DUP_ENTRY, ER_DUP_KEY
114insert into t1 values (NULL, 10);114insert into t1 values (NULL, 10);
115select last_insert_id();115select last_insert_id();
116116
@@ -140,7 +140,7 @@
140update t1 set a=0 where b=5;140update t1 set a=0 where b=5;
141select * from t1 order by b;141select * from t1 order by b;
142delete from t1 where a=0;142delete from t1 where a=0;
143--error 1048143--error ER_BAD_NULL_ERROR
144update t1 set a=NULL where b=6;144update t1 set a=NULL where b=6;
145update t1 set a=300 where b=7;145update t1 set a=300 where b=7;
146insert into t1(a,b)values(NULL,8);146insert into t1(a,b)values(NULL,8);
@@ -155,7 +155,7 @@
155update t1 set a=0 where b=12;155update t1 set a=0 where b=12;
156select * from t1 order by b;156select * from t1 order by b;
157delete from t1 where a=0;157delete from t1 where a=0;
158--error 1048158--error ER_BAD_NULL_ERROR
159update t1 set a=NULL where b=13;159update t1 set a=NULL where b=13;
160update t1 set a=500 where b=14;160update t1 set a=500 where b=14;
161select * from t1 order by b;161select * from t1 order by b;
@@ -173,7 +173,7 @@
173173
174create table t1 (a bigint, b int auto_increment primary key);174create table t1 (a bigint, b int auto_increment primary key);
175insert into t1 (a) values (1), (2), (3), (0), (0);175insert into t1 (a) values (1), (2), (3), (0), (0);
176--error 1022,1062176--error ER_DUP_KEY, ER_DUP_ENTRY
177alter table t1 drop column b, modify a bigint not null auto_increment primary key; 177alter table t1 drop column b, modify a bigint not null auto_increment primary key;
178select * from t1;178select * from t1;
179drop table t1;179drop table t1;
@@ -202,7 +202,7 @@
202select * from t1;202select * from t1;
203#set sql_mode= '';203#set sql_mode= '';
204alter table t1 modify b varchar(255);204alter table t1 modify b varchar(255);
205--error 1022,1062205--error ER_DUP_KEY, ER_DUP_ENTRY
206insert into t1 values (0,4);206insert into t1 values (0,4);
207select * from t1;207select * from t1;
208drop table t1;208drop table t1;
@@ -302,7 +302,7 @@
302INSERT INTO t1 VALUES(0, 0);302INSERT INTO t1 VALUES(0, 0);
303INSERT INTO t1 VALUES(1, 1);303INSERT INTO t1 VALUES(1, 1);
304ALTER TABLE t1 CHANGE t1 t1 INT auto_increment;304ALTER TABLE t1 CHANGE t1 t1 INT auto_increment;
305--error 1022, ER_DUP_ENTRY305--error ER_DUP_KEY, ER_DUP_ENTRY
306INSERT INTO t1 VALUES(0,0);306INSERT INTO t1 VALUES(0,0);
307DROP TABLE t1;307DROP TABLE t1;
308308
309309
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test 2010-04-06 06:52:59 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_nullable.test 2010-08-27 21:22:40 +0000
@@ -1,9 +1,9 @@
1create table t1 (a int, b int not null, c int null, d int not null, pk int primary key);1create table t1 (a int, b int not null, c int null, d int not null, pk int primary key);
2show create table t1;2show create table t1;
3insert into t1 values (0,0, 0, 0,0);3insert into t1 values (0,0, 0, 0,0);
4--error 10484--error ER_BAD_NULL_ERROR
5insert into t1 values (NULL, NULL, NULL, NULL, 1);5insert into t1 values (NULL, NULL, NULL, NULL, 1);
6insert into t1 values (NULL, 1, NULL, 1, 2);6insert into t1 values (NULL, 1, NULL, 1, 2);
7--error 10487--error ER_BAD_NULL_ERROR
8insert into t1 values (1,2,3,NULL, 3);8insert into t1 values (1,2,3,NULL, 3);
9drop table t1;9drop table t1;
1010
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test 2010-04-28 02:53:17 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_create_table.test 2010-08-27 21:22:40 +0000
@@ -1,6 +1,6 @@
1CREATE TABLE t1 (a int primary key);1CREATE TABLE t1 (a int primary key);
2SHOW CREATE TABLE t1;2SHOW CREATE TABLE t1;
3--error 10503--error ER_TABLE_EXISTS_ERROR
4CREATE TABLE t1 (a int primary key);4CREATE TABLE t1 (a int primary key);
5CREATE TABLE t2 (a int primary key, b varchar(20), c bigint);5CREATE TABLE t2 (a int primary key, b varchar(20), c bigint);
66
77
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test 2010-04-06 06:52:59 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_drop_table.test 2010-08-27 21:22:40 +0000
@@ -2,6 +2,6 @@
2CREATE TABLE t2 (a int primary key);2CREATE TABLE t2 (a int primary key);
3DROP TABLE t1;3DROP TABLE t1;
4DROP TABLE t2;4DROP TABLE t2;
5--error 10515--error ER_BAD_TABLE_ERROR
6DROP TABLE t3;6DROP TABLE t3;
77
88
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test 2010-02-24 01:42:24 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_insert_pkey_duplicate.test 2010-08-27 21:22:40 +0000
@@ -1,5 +1,5 @@
1create table t1 (a int primary key);1create table t1 (a int primary key);
2insert into t1 values (1);2insert into t1 values (1);
3--error 10223--error ER_DUP_KEY
4insert into t1 values (1);4insert into t1 values (1);
5drop table t1;5drop table t1;
66
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test 2010-03-11 05:13:23 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/basic_statement_rollback.test 2010-08-27 21:22:40 +0000
@@ -3,7 +3,7 @@
3select * from t1;3select * from t1;
4begin;4begin;
5insert into t1 values (5);5insert into t1 values (5);
6--error 1022,10626--error ER_DUP_KEY, ER_DUP_ENTRY
7insert into t1 values (1),(2),(3),(4);7insert into t1 values (1),(2),(3),(4);
8commit;8commit;
9select * from t1;9select * from t1;
1010
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test 2010-06-09 04:35:15 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/comments.test 2010-08-27 21:22:40 +0000
@@ -5,7 +5,7 @@
5select 1+2/*hello*/+3;5select 1+2/*hello*/+3;
6select 1 /* long6select 1 /* long
7multi line comment */;7multi line comment */;
8--error 10658--error ER_EMPTY_QUERY
9 ;9 ;
10select 1 /*!32301 +1 */;10select 1 /*!32301 +1 */;
11select 1 /*!72301 +1 */;11select 1 /*!72301 +1 */;
1212
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test 2010-05-05 02:33:31 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/config_file_format.test 2010-08-27 21:22:40 +0000
@@ -6,7 +6,7 @@
6SET GLOBAL innodb_file_format='barracuda';6SET GLOBAL innodb_file_format='barracuda';
7SHOW VARIABLES LIKE 'innodb_file_format';7SHOW VARIABLES LIKE 'innodb_file_format';
8SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME='file_format';8SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME='file_format';
9--error 12109--error ER_WRONG_ARGUMENTS
10SET GLOBAL innodb_file_format='broccolini';10SET GLOBAL innodb_file_format='broccolini';
11SHOW VARIABLES LIKE 'innodb_file_format';11SHOW VARIABLES LIKE 'innodb_file_format';
12SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME='file_format';12SELECT * FROM DATA_DICTIONARY.INNODB_CONFIGURATION WHERE NAME='file_format';
1313
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test 2010-06-21 05:39:42 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_length_limit.test 2010-08-27 21:22:40 +0000
@@ -1,4 +1,4 @@
1CREATE TABLE t1 (pk int primary key, a varbinary(767) unique);1CREATE TABLE t1 (pk int primary key, a varbinary(767) unique);
2drop table t1;2drop table t1;
3--error 10713--error ER_TOO_LONG_KEY
4CREATE TABLE t1 (pk int primary key, a varbinary(4097) unique);4CREATE TABLE t1 (pk int primary key, a varbinary(4097) unique);
55
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test 2010-06-21 05:01:48 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/index_prefix.test 2010-08-27 21:22:40 +0000
@@ -1,12 +1,12 @@
1create table t1 (a int primary key, b varchar(111), unique index b_idx (b(5)));1create table t1 (a int primary key, b varchar(111), unique index b_idx (b(5)));
2insert into t1 values (1, "foobar"),(2,"barbarbar");2insert into t1 values (1, "foobar"),(2,"barbarbar");
3--error 1062,10223--error ER_DUP_ENTRY, ER_DUP_KEY
4insert into t1 values (3, "barbarpub");4insert into t1 values (3, "barbarpub");
5select * from t1;5select * from t1;
6drop table t1;6drop table t1;
7create table t2 (a int primary key, b varbinary(111), unique index b_idx (b(5)));7create table t2 (a int primary key, b varbinary(111), unique index b_idx (b(5)));
8insert into t2 values (1, "foobar"),(2,"barbarbar");8insert into t2 values (1, "foobar"),(2,"barbarbar");
9--error 1062,10229--error ER_DUP_ENTRY, ER_DUP_KEY
10insert into t2 values (3, "barbarpub");10insert into t2 values (3, "barbarpub");
11select * from t2;11select * from t2;
12drop table t2;12drop table t2;
1313
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test 2010-04-06 06:52:59 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/rename.test 2010-08-27 21:22:40 +0000
@@ -19,14 +19,14 @@
19select * from t1;19select * from t1;
2020
21# The following should give errors21# The following should give errors
22--error 1050,105022--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
23rename table t1 to t2;23rename table t1 to t2;
24--error 1050,105024--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
25rename table t1 to t1;25rename table t1 to t1;
26--error 1050,105026--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
27rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;27rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
28show tables like "t_";28show tables like "t_";
29--error 1050,105029--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
30rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;30rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
31--error ER_NO_SUCH_TABLE31--error ER_NO_SUCH_TABLE
32rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;32rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
3333
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test 2010-05-11 04:27:51 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/replace.test 2010-08-27 21:22:40 +0000
@@ -12,7 +12,7 @@
1212
13create table t1 (a int not null auto_increment primary key, b char(20) default "default_value");13create table t1 (a int not null auto_increment primary key, b char(20) default "default_value");
14insert into t1 values (126,"first"),(63, "middle"),(1,"last");14insert into t1 values (126,"first"),(63, "middle"),(1,"last");
15--error ER_DUP_ENTRY,102215--error ER_DUP_ENTRY, ER_DUP_KEY
16insert into t1 values (1,"error");16insert into t1 values (1,"error");
17replace into t1 values (1,"error");17replace into t1 values (1,"error");
18replace into t1 values (126,"first updated");18replace into t1 values (126,"first updated");
1919
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test 2010-06-07 08:46:37 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/row_format.test 2010-08-27 21:22:40 +0000
@@ -1,4 +1,4 @@
1--error 10051--error ER_CANT_CREATE_TABLE
2CREATE TABLE t1 (a int) ENGINE=INNODB ROW_FORMAT=COMPRESSED;2CREATE TABLE t1 (a int) ENGINE=INNODB ROW_FORMAT=COMPRESSED;
3SHOW WARNINGS;3SHOW WARNINGS;
44
55
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test 2010-04-27 13:00:14 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/truncate.test 2010-08-27 21:22:40 +0000
@@ -15,14 +15,14 @@
15select * from t1;15select * from t1;
16drop table t1;16drop table t1;
17# The following should fail17# The following should fail
18--error 114618--error ER_NO_SUCH_TABLE
19select count(*) from t1;19select count(*) from t1;
20create table t1 (n int primary key);20create table t1 (n int primary key);
21insert into t1 values (1),(2),(3);21insert into t1 values (1),(2),(3);
22truncate table t1;22truncate table t1;
23select * from t1;23select * from t1;
24drop table t1;24drop table t1;
25--error 114625--error ER_NO_SUCH_TABLE
26truncate non_existing_table;26truncate non_existing_table;
2727
28#28#
2929
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test 2010-05-26 14:53:47 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_blob.test 2010-08-27 21:22:40 +0000
@@ -31,13 +31,13 @@
31# Check errors with blob31# Check errors with blob
32#32#
3333
34--error 110134--error ER_BLOB_CANT_HAVE_DEFAULT
35CREATE TABLE t1 (a blob default "hello");35CREATE TABLE t1 (a blob default "hello");
36CREATE TABLE t2 (a varchar(256));36CREATE TABLE t2 (a varchar(256));
37drop table t2;37drop table t2;
38--error 107438--error ER_TOO_BIG_FIELDLENGTH
39CREATE TABLE t1 (a varchar(70000) default "hello");39CREATE TABLE t1 (a varchar(70000) default "hello");
40--error 110140--error ER_BLOB_CANT_HAVE_DEFAULT
41CREATE TABLE t2 (a blob default "hello");41CREATE TABLE t2 (a blob default "hello");
4242
43# Safety to be able to continue with other tests if above fails43# Safety to be able to continue with other tests if above fails
4444
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test 2010-04-28 02:30:54 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_date.test 2010-08-27 21:22:40 +0000
@@ -118,7 +118,7 @@
118select @d:=011111;118select @d:=011111;
119select year(@d), month(@d), day(@d), cast(@d as date);119select year(@d), month(@d), day(@d), cast(@d as date);
120select @d:=1311;120select @d:=1311;
121--error 1686 # Invalid datetime of 1311121--error ER_INVALID_DATETIME_VALUE # Invalid datetime of 1311
122select year(@d), month(@d), day(@d), cast(@d as date);122select year(@d), month(@d), day(@d), cast(@d as date);
123create table t1 (d date , dt datetime , ts timestamp, primary key (d));123create table t1 (d date , dt datetime , ts timestamp, primary key (d));
124-- error 1686 # Bad dates124-- error 1686 # Bad dates
125125
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test 2010-04-28 02:52:03 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_datetime.test 2010-08-27 21:22:40 +0000
@@ -19,12 +19,12 @@
19insert into t1 (t) values (991231235959);19insert into t1 (t) values (991231235959);
20insert into t1 (t) values (10000101000000);20insert into t1 (t) values (10000101000000);
21insert into t1 (t) values (99991231235959);21insert into t1 (t) values (99991231235959);
22--error 1686 # Bad datetime22--error ER_INVALID_DATETIME_VALUE # Bad datetime
23insert into t1 (t) values (20030100000000);23insert into t1 (t) values (20030100000000);
24--error 1686 # Bad datetime24--error ER_INVALID_DATETIME_VALUE # Bad datetime
25insert into t1 (t) values (20030000000000);25insert into t1 (t) values (20030000000000);
26select t from t1;26select t from t1;
27--error 1686 # Bad datetime27--error ER_INVALID_DATETIME_VALUE # Bad datetime
28delete from t1 where t > 0;28delete from t1 where t > 0;
29# try earliest datetime end point which is actually a friggin datetime, not a 0.29# try earliest datetime end point which is actually a friggin datetime, not a 0.
30delete from t1 where t > "0001-01-01 00:00:00";30delete from t1 where t > "0001-01-01 00:00:00";
@@ -35,40 +35,40 @@
35insert into t1 (t) values("691231");35insert into t1 (t) values("691231");
36insert into t1 (t) values("700101");36insert into t1 (t) values("700101");
37insert into t1 (t) values("991231");37insert into t1 (t) values("991231");
38--error 1686 # Bad datetime38--error ER_INVALID_DATETIME_VALUE # Bad datetime
39insert into t1 (t) values("00000101");39insert into t1 (t) values("00000101");
40insert into t1 (t) values("00010101");40insert into t1 (t) values("00010101");
41insert into t1 (t) values("99991231");41insert into t1 (t) values("99991231");
42--error 1686 # Bad datetime42--error ER_INVALID_DATETIME_VALUE # Bad datetime
43insert into t1 (t) values("00101000000");43insert into t1 (t) values("00101000000");
44--error 1686 # Bad datetime44--error ER_INVALID_DATETIME_VALUE # Bad datetime
45insert into t1 (t) values("691231000000");45insert into t1 (t) values("691231000000");
46--error 1686 # Bad datetime46--error ER_INVALID_DATETIME_VALUE # Bad datetime
47insert into t1 (t) values("700101000000");47insert into t1 (t) values("700101000000");
48--error 1686 # Bad datetime48--error ER_INVALID_DATETIME_VALUE # Bad datetime
49insert into t1 (t) values("991231235959");49insert into t1 (t) values("991231235959");
50insert into t1 (t) values("10000101000000");50insert into t1 (t) values("10000101000000");
51insert into t1 (t) values("99991231235959");51insert into t1 (t) values("99991231235959");
52--error 1686 # Bad datetime52--error ER_INVALID_DATETIME_VALUE # Bad datetime
53insert into t1 (t) values("20030100000000");53insert into t1 (t) values("20030100000000");
54--error 1686 # Bad datetime54--error ER_INVALID_DATETIME_VALUE # Bad datetime
55insert into t1 (t) values("20030000000000");55insert into t1 (t) values("20030000000000");
5656
57# Strange dates57# Strange dates
58--error 1686 # Bad datetime58--error ER_INVALID_DATETIME_VALUE # Bad datetime
59insert into t1 (t) values ("2003-003-03");59insert into t1 (t) values ("2003-003-03");
6060
61# Bug #7308: ISO-8601 date format not handled correctly61# Bug #7308: ISO-8601 date format not handled correctly
62--error 1686 # Bad datetime62--error ER_INVALID_DATETIME_VALUE # Bad datetime
63insert into t1 (t) values ("20030102T131415");63insert into t1 (t) values ("20030102T131415");
64insert into t1 (t) values ("2001-01-01T01:01:01");64insert into t1 (t) values ("2001-01-01T01:01:01");
65--error 1686 # Bad datetime65--error ER_INVALID_DATETIME_VALUE # Bad datetime
66insert into t1 (t) values ("2001-1-1T1:01:01");66insert into t1 (t) values ("2001-1-1T1:01:01");
67select t from t1;67select t from t1;
6868
69# Test some wrong dates69# Test some wrong dates
70truncate table t1;70truncate table t1;
71--error 1686 # Bad datetime71--error ER_INVALID_DATETIME_VALUE # Bad datetime
72insert into t1 (t) values("2003-0303 12:13:14");72insert into t1 (t) values("2003-0303 12:13:14");
73select t from t1;73select t from t1;
74drop table t1;74drop table t1;
@@ -124,18 +124,18 @@
124# warnings (for both strings and numbers)124# warnings (for both strings and numbers)
125#125#
126create table t1 (t datetime primary key);126create table t1 (t datetime primary key);
127--error 1686 # Bad datetime127--error ER_INVALID_DATETIME_VALUE # Bad datetime
128insert into t1 values (20030102030460),(20030102036301),(20030102240401),128insert into t1 values (20030102030460),(20030102036301),(20030102240401),
129 (20030132030401),(20031302030401),(100001202030401);129 (20030132030401),(20031302030401),(100001202030401);
130select * from t1;130select * from t1;
131delete from t1;131delete from t1;
132--error 1686 # Bad datetime132--error ER_INVALID_DATETIME_VALUE # Bad datetime
133insert into t1 values133insert into t1 values
134 ("2003-01-02 03:04:60"),("2003-01-02 03:63:01"),("2003-01-02 24:04:01"),134 ("2003-01-02 03:04:60"),("2003-01-02 03:63:01"),("2003-01-02 24:04:01"),
135 ("2003-01-32 03:04:01"),("2003-13-02 03:04:01"), ("10000-12-02 03:04:00");135 ("2003-01-32 03:04:01"),("2003-13-02 03:04:01"), ("10000-12-02 03:04:00");
136select * from t1;136select * from t1;
137delete from t1;137delete from t1;
138--error 1686 # Bad datetime138--error ER_INVALID_DATETIME_VALUE # Bad datetime
139insert into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");139insert into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");
140select * from t1 order by t;140select * from t1 order by t;
141drop table t1;141drop table t1;
@@ -148,7 +148,7 @@
148# These dates should be treated as dates in 21st century148# These dates should be treated as dates in 21st century
149insert into t1 values ("12-01-01"), ("01-01-01 01:00:00");149insert into t1 values ("12-01-01"), ("01-01-01 01:00:00");
150# Zero dates are still special :/150# Zero dates are still special :/
151--error 1686 # Yeah special uh no its wrong151--error ER_INVALID_DATETIME_VALUE # Yeah special uh no its wrong
152insert into t1 values ("00-00-00"), ("00-00-00 00:00:00");152insert into t1 values ("00-00-00"), ("00-00-00 00:00:00");
153select * from t1;153select * from t1;
154drop table t1;154drop table t1;
@@ -190,11 +190,11 @@
190insert into t1 (da, dt) values ('2007-03-23 13:49:38','2007-03-23 13:49:38');190insert into t1 (da, dt) values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
191insert into t1 set dt='2007-03-23 13:49:38',da=dt;191insert into t1 set dt='2007-03-23 13:49:38',da=dt;
192# Test error handling192# Test error handling
193--error 1686 # Bad date193--error ER_INVALID_DATETIME_VALUE # Bad date
194insert into t1 (da, dt) values ('2007-03-32','2007-03-23 13:49:38');194insert into t1 (da, dt) values ('2007-03-32','2007-03-23 13:49:38');
195select da,dt from t1;195select da,dt from t1;
196drop table t1;196drop table t1;
197--error 1686 # Bad datetime197--error ER_INVALID_DATETIME_VALUE # Bad datetime
198create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03', pk int auto_increment primary key);198create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03', pk int auto_increment primary key);
199199
200200
@@ -273,9 +273,9 @@
273create table t1(f1 datetime primary key);273create table t1(f1 datetime primary key);
274insert into t1 values('2001-01-01'),('2002-02-02');274insert into t1 values('2001-01-01'),('2002-02-02');
275select * from t1 where f1 between 20020101 and 20070101000000;275select * from t1 where f1 between 20020101 and 20070101000000;
276--error 1686 # 2002010 is not a datetime.276--error ER_INVALID_DATETIME_VALUE # 2002010 is not a datetime.
277select * from t1 where f1 between 2002010 and 20070101000000;277select * from t1 where f1 between 2002010 and 20070101000000;
278--error 1686 # 2007010100000 is not a datetime.278--error ER_INVALID_DATETIME_VALUE # 2007010100000 is not a datetime.
279select * from t1 where f1 between 20020101 and 2007010100000;279select * from t1 where f1 between 20020101 and 2007010100000;
280drop table t1;280drop table t1;
281281
@@ -330,9 +330,9 @@
330insert into t1 (da, dt) values ('2007-03-23 13:49:38','2007-03-23 13:49:38');330insert into t1 (da, dt) values ('2007-03-23 13:49:38','2007-03-23 13:49:38');
331insert into t1 set dt='2007-03-23 13:49:38',da=dt;331insert into t1 set dt='2007-03-23 13:49:38',da=dt;
332# Test error handling332# Test error handling
333--error 1686 # Bad date333--error ER_INVALID_DATETIME_VALUE # Bad date
334insert into t1 (da, dt) values ('2007-03-32','2007-03-23 13:49:38');334insert into t1 (da, dt) values ('2007-03-32','2007-03-23 13:49:38');
335select da,dt from t1;335select da,dt from t1;
336drop table t1;336drop table t1;
337--error 1686 # Bad date337--error ER_INVALID_DATETIME_VALUE # Bad date
338create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03' primary key);338create table t1 (da date default '1962-03-32 23:33:34', dt datetime default '1962-03-03' primary key);
339339
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test 2010-05-27 06:09:12 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_decimal.test 2010-08-27 21:22:40 +0000
@@ -174,59 +174,59 @@
174insert into t1 values ("00000000000001");174insert into t1 values ("00000000000001");
175insert into t1 values ("+0000000000001");175insert into t1 values ("+0000000000001");
176insert into t1 values ("-0000000000001");176insert into t1 values ("-0000000000001");
177--error 1264 out of range value177--error ER_WARN_DATA_OUT_OF_RANGE out of range value
178insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");178insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
179--error 1264 out of range value179--error ER_WARN_DATA_OUT_OF_RANGE out of range value
180insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");180insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
181--error 1366 incorrect decimal value181--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
182insert into t1 values ("1e+1000");182insert into t1 values ("1e+1000");
183--error 1366 incorrect decimal value183--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
184insert into t1 values ("1e-1000");184insert into t1 values ("1e-1000");
185--error 1366 incorrect decimal value185--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
186insert into t1 values ("-1e+1000");186insert into t1 values ("-1e+1000");
187--error 1366 incorrect decimal value187--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
188insert into t1 values ("1e+4294967296");188insert into t1 values ("1e+4294967296");
189--error 1366 incorrect decimal value189--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
190insert into t1 values ("1e-4294967296");190insert into t1 values ("1e-4294967296");
191--error 1366 incorrect decimal value191--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
192insert into t1 values ("1e+18446744073709551615");192insert into t1 values ("1e+18446744073709551615");
193--error 1366 incorrect decimal value193--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
194insert into t1 values ("1e+18446744073709551616");194insert into t1 values ("1e+18446744073709551616");
195--error 1366 incorrect decimal value195--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
196insert into t1 values ("1e-9223372036854775807");196insert into t1 values ("1e-9223372036854775807");
197--error 1366 incorrect decimal value197--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
198insert into t1 values ("1e-9223372036854775809");198insert into t1 values ("1e-9223372036854775809");
199--error 1366 incorrect decimal value199--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
200insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");200insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
201select * from t1;201select * from t1;
202drop table t1;202drop table t1;
203203
204create table t1 (a decimal(10,2));204create table t1 (a decimal(10,2));
205insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");205insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
206insert into t1 values ("-.1"),("+.1"),(".1");206insert into t1 values ("-.1"),("+.1"),(".1");
207insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");207insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
208--error 1264 out of range value208--error ER_WARN_DATA_OUT_OF_RANGE out of range value
209insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");209insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
210--error 1264 out of range value210--error ER_WARN_DATA_OUT_OF_RANGE out of range value
211insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");211insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
212--error 1366 incorrect decimal value212--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
213insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");213insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
214--error 1366 incorrect decimal value214--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
215insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");215insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
216select * from t1;216select * from t1;
217drop table t1;217drop table t1;
218218
219create table t1 (a decimal(10,2));219create table t1 (a decimal(10,2));
220insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");220insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
221insert into t1 values ("-.1"),("+.1"),(".1");221insert into t1 values ("-.1"),("+.1"),(".1");
222insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");222insert into t1 values ("00000000000001"),("+0000000000001"),("-0000000000001");
223--error 1264 out of range value223--error ER_WARN_DATA_OUT_OF_RANGE out of range value
224insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");224insert into t1 values ("+111111111.11"),("111111111.11"),("-11111111.11");
225--error 1264 out of range value225--error ER_WARN_DATA_OUT_OF_RANGE out of range value
226insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");226insert into t1 values ("-111111111.11"),("+1111111111.11"),("1111111111.11");
227--error 1366 incorrect decimal value227--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
228insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");228insert into t1 values ("1e+1000"),("1e-1000"),("-1e+1000");
229--error 1366 incorrect decimal value229--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
230insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");230insert into t1 values ("123.4e"),("123.4e+2"),("123.4e-2"),("123e1"),("123e+0");
231select * from t1;231select * from t1;
232drop table t1;232drop table t1;
@@ -237,18 +237,18 @@
237insert into t1 values (0.0),("-0.0"),(+0.0),(01.0),(+01.0),(-01.0);237insert into t1 values (0.0),("-0.0"),(+0.0),(01.0),(+01.0),(-01.0);
238insert into t1 values (-.1),(+.1),(.1);238insert into t1 values (-.1),(+.1),(.1);
239insert into t1 values (00000000000001),(+0000000000001),(-0000000000001);239insert into t1 values (00000000000001),(+0000000000001),(-0000000000001);
240--error 1264 out of range value240--error ER_WARN_DATA_OUT_OF_RANGE out of range value
241insert into t1 values (+111111111.11),(111111111.11),(-11111111.11);241insert into t1 values (+111111111.11),(111111111.11),(-11111111.11);
242--error 1264 out of range value242--error ER_WARN_DATA_OUT_OF_RANGE out of range value
243insert into t1 values (-111111111.11),(+1111111111.11),(1111111111.11);243insert into t1 values (-111111111.11),(+1111111111.11),(1111111111.11);
244--error 1264 out of range value244--error ER_WARN_DATA_OUT_OF_RANGE out of range value
245insert into t1 values (1e+100),(1e-100),(-1e+100);245insert into t1 values (1e+100),(1e-100),(-1e+100);
246insert into t1 values (123.4e0);246insert into t1 values (123.4e0);
247insert into t1 values (123.4e+2);247insert into t1 values (123.4e+2);
248# This INSERT statement will give an error since truncation of a248# This INSERT statement will give an error since truncation of a
249# decimal number in Drizzle is an error. See bug#337038 for further249# decimal number in Drizzle is an error. See bug#337038 for further
250# details.250# details.
251--error 1265251--error ER_WARN_DATA_TRUNCATED
252insert into t1 values (123.4e-2);252insert into t1 values (123.4e-2);
253insert into t1 values (123e1);253insert into t1 values (123e1);
254insert into t1 values (123e+0);254insert into t1 values (123e+0);
@@ -263,33 +263,33 @@
263#263#
264264
265create table t1 (a decimal);265create table t1 (a decimal);
266--error 1264 out of range value266--error ER_WARN_DATA_OUT_OF_RANGE out of range value
267insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+12345678901'),(99999999999999);267insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+12345678901'),(99999999999999);
268select * from t1;268select * from t1;
269drop table t1;269drop table t1;
270create table t1 (a decimal);270create table t1 (a decimal);
271--error 1264 out of range value271--error ER_WARN_DATA_OUT_OF_RANGE out of range value
272insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);272insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
273select * from t1;273select * from t1;
274drop table t1;274drop table t1;
275create table t1 (a decimal);275create table t1 (a decimal);
276--error 1264 out of range value276--error ER_WARN_DATA_OUT_OF_RANGE out of range value
277insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);277insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
278select * from t1;278select * from t1;
279drop table t1;279drop table t1;
280create table t1 (a decimal);280create table t1 (a decimal);
281--error 1264 out of range value281--error ER_WARN_DATA_OUT_OF_RANGE out of range value
282insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);282insert into t1 values (-99999999999999),(-1),('+1'),('01'),('+00000000000001'),('+1234567890'),(99999999999999);
283select * from t1;283select * from t1;
284drop table t1;284drop table t1;
285285
286# Exponent overflow bug286# Exponent overflow bug
287create table t1(a decimal(10,0));287create table t1(a decimal(10,0));
288--error 1366 incorrect decimal value288--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
289insert into t1 values ("1e4294967295");289insert into t1 values ("1e4294967295");
290select * from t1;290select * from t1;
291delete from t1;291delete from t1;
292--error 1366 incorrect decimal value292--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD incorrect decimal value
293insert into t1 values("1e4294967297");293insert into t1 values("1e4294967297");
294select * from t1;294select * from t1;
295drop table t1;295drop table t1;
@@ -298,13 +298,13 @@
298# Test of wrong decimal type298# Test of wrong decimal type
299#299#
300300
301--error 1064301--error ER_PARSE_ERROR
302CREATE TABLE t1 (a_dec DECIMAL(-1,0));302CREATE TABLE t1 (a_dec DECIMAL(-1,0));
303--error 1064303--error ER_PARSE_ERROR
304CREATE TABLE t1 (a_dec DECIMAL(-2,1));304CREATE TABLE t1 (a_dec DECIMAL(-2,1));
305--error 1064305--error ER_PARSE_ERROR
306CREATE TABLE t1 (a_dec DECIMAL(-1,1));306CREATE TABLE t1 (a_dec DECIMAL(-1,1));
307--error 1427307--error ER_M_BIGGER_THAN_D
308CREATE TABLE t1 (a_dec DECIMAL(0,11));308CREATE TABLE t1 (a_dec DECIMAL(0,11));
309309
310#310#
@@ -312,17 +312,17 @@
312#312#
313--disable_warnings313--disable_warnings
314create table t1(a decimal(7,3));314create table t1(a decimal(7,3));
315--error 1264 out of range value315--error ER_WARN_DATA_OUT_OF_RANGE out of range value
316insert 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');316insert 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');
317select * from t1;317select * from t1;
318drop table t1;318drop table t1;
319create table t1(a decimal(7,3));319create table t1(a decimal(7,3));
320--error 1264 out of range value320--error ER_WARN_DATA_OUT_OF_RANGE out of range value
321insert 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');321insert 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');
322select * from t1;322select * from t1;
323drop table t1;323drop table t1;
324create table t1(a decimal(7,3));324create table t1(a decimal(7,3));
325--error 1264 out of range value325--error ER_WARN_DATA_OUT_OF_RANGE out of range value
326insert 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');326insert 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');
327--enable_warnings327--enable_warnings
328select * from t1;328select * from t1;
@@ -374,7 +374,7 @@
374--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/374--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
375show create table t1;375show create table t1;
376drop table t1;376drop table t1;
377--error 1426377--error ER_TOO_BIG_PRECISION
378create table t1 (d decimal(66,0));378create table t1 (d decimal(66,0));
379379
380#380#
@@ -447,7 +447,7 @@
447#447#
448# Bug#22183: Unhandled NULL caused server crash448# Bug#22183: Unhandled NULL caused server crash
449#449#
450--error 1689 # 1 is not a valid Julian Day Number for SQL date range450--error ER_ARGUMENT_OUT_OF_RANGE # 1 is not a valid Julian Day Number for SQL date range
451create table t1 as451create table t1 as
452 select from_days(s) as date,t452 select from_days(s) as date,t
453 from (select 1 as s,'t' as t union select null, null ) as sub1;453 from (select 1 as s,'t' as t union select null, null ) as sub1;
@@ -548,7 +548,7 @@
548# This INSERT statement will give an error since truncation of a548# This INSERT statement will give an error since truncation of a
549# decimal number in Drizzle is an error. See bug#337038 for further549# decimal number in Drizzle is an error. See bug#337038 for further
550# details.550# details.
551--error 1265551--error ER_WARN_DATA_TRUNCATED
552INSERT INTO t1 VALUES (999.99, 5);552INSERT INTO t1 VALUES (999.99, 5);
553--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/553--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
554show create table t1;554show create table t1;
555555
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test 2010-04-07 05:15:47 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_enum.test 2010-08-27 21:22:40 +0000
@@ -31,7 +31,7 @@
31#31#
3232
33create table t1 (a enum ('0','1') primary key);33create table t1 (a enum ('0','1') primary key);
34--error 1691 # Bad enum34--error ER_INVALID_ENUM_VALUE # Bad enum
35insert into t1 set a='foobar';35insert into t1 set a='foobar';
36select * from t1;36select * from t1;
37update t1 set a = replace(a,'x','y');37update t1 set a = replace(a,'x','y');
@@ -142,14 +142,14 @@
142 id INT AUTO_INCREMENT PRIMARY KEY,142 id INT AUTO_INCREMENT PRIMARY KEY,
143 c1 ENUM('a', '', 'b')143 c1 ENUM('a', '', 'b')
144);144);
145--error 1691 # 0 is not valid way to insert. Must use 1-based index of key.145--error ER_INVALID_ENUM_VALUE # 0 is not valid way to insert. Must use 1-based index of key.
146INSERT INTO t1 (c1) VALUES (0), ('a'), (''), ('b');146INSERT INTO t1 (c1) VALUES (0), ('a'), (''), ('b');
147--error 1691 # 0 is not valid way to insert. Must use 1-based index of key.147--error ER_INVALID_ENUM_VALUE # 0 is not valid way to insert. Must use 1-based index of key.
148INSERT INTO t1 (c1) VALUES (0), ('a'), (''), ('b');148INSERT INTO t1 (c1) VALUES (0), ('a'), (''), ('b');
149INSERT INTO t1 (c1) VALUES ('a'), ('b');149INSERT INTO t1 (c1) VALUES ('a'), ('b');
150SELECT id, c1 + 0, c1 FROM t1;150SELECT id, c1 + 0, c1 FROM t1;
151151
152--error 1691 # Bad en152--error ER_INVALID_ENUM_VALUE # Bad en
153ALTER TABLE t1 CHANGE c1 c1 ENUM('a', '') NOT NULL;153ALTER TABLE t1 CHANGE c1 c1 ENUM('a', '') NOT NULL;
154# Below works because '' was not inserted in any statement above...154# Below works because '' was not inserted in any statement above...
155ALTER TABLE t1 CHANGE c1 c1 ENUM('a', 'b') NOT NULL;155ALTER TABLE t1 CHANGE c1 c1 ENUM('a', 'b') NOT NULL;
@@ -163,9 +163,9 @@
163# Bug#28729: Field_enum wrongly reported an error while storing an empty string.163# Bug#28729: Field_enum wrongly reported an error while storing an empty string.
164#164#
165create table t1(f1 enum('a','b') primary key);165create table t1(f1 enum('a','b') primary key);
166--error 1691 # Bad enum166--error ER_INVALID_ENUM_VALUE # Bad enum
167insert into t1 values(''),(''),('a'),('b');167insert into t1 values(''),(''),('a'),('b');
168--error 1691 # Bad enum168--error ER_INVALID_ENUM_VALUE # Bad enum
169select * from t1 where f1='';169select * from t1 where f1='';
170drop table t1;170drop table t1;
171171
@@ -177,7 +177,7 @@
177CREATE TABLE t1 (c1 ENUM('a', '', 'b') primary key);177CREATE TABLE t1 (c1 ENUM('a', '', 'b') primary key);
178INSERT INTO t1 (c1) VALUES ('b');178INSERT INTO t1 (c1) VALUES ('b');
179INSERT INTO t1 (c1) VALUES ('');179INSERT INTO t1 (c1) VALUES ('');
180--error 1691 # Bad enum 0180--error ER_INVALID_ENUM_VALUE # Bad enum 0
181INSERT INTO t1 (c1) VALUES (0);181INSERT INTO t1 (c1) VALUES (0);
182INSERT INTO t1 (c1) VALUES ('a');182INSERT INTO t1 (c1) VALUES ('a');
183183
@@ -193,7 +193,7 @@
193#193#
194194
195CREATE TABLE t1(a enum('a','b','c','d'), pk int auto_increment primary key);195CREATE TABLE t1(a enum('a','b','c','d'), pk int auto_increment primary key);
196--error 1691 # Bad enum 0196--error ER_INVALID_ENUM_VALUE # Bad enum 0
197INSERT INTO t1 (a) VALUES (4),(1),(0),(3);197INSERT INTO t1 (a) VALUES (4),(1),(0),(3);
198INSERT INTO t1 (a) VALUES (4),(1),(2),(3);198INSERT INTO t1 (a) VALUES (4),(1),(2),(3);
199199
@@ -212,9 +212,9 @@
212212
213ALTER TABLE t1 drop column pk, ADD PRIMARY KEY (a);213ALTER TABLE t1 drop column pk, ADD PRIMARY KEY (a);
214214
215--error 1691 # Bad enum 0215--error ER_INVALID_ENUM_VALUE # Bad enum 0
216EXPLAIN SELECT a FROM t1 WHERE a=0;216EXPLAIN SELECT a FROM t1 WHERE a=0;
217--error 1691 # Bad enum 0217--error ER_INVALID_ENUM_VALUE # Bad enum 0
218SELECT a FROM t1 WHERE a=0;218SELECT a FROM t1 WHERE a=0;
219219
220DROP TABLE t1;220DROP TABLE t1;
221221
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test 2010-04-07 03:10:54 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_float.test 2010-08-27 21:22:40 +0000
@@ -60,9 +60,9 @@
60# float in a char(1) field60# float in a char(1) field
61#61#
62create table t1 (c20 char primary key);62create table t1 (c20 char primary key);
63--error 140663--error ER_DATA_TOO_LONG
64insert into t1 values (5000.0);64insert into t1 values (5000.0);
65--error 140665--error ER_DATA_TOO_LONG
66insert into t1 values (0.5e4);66insert into t1 values (0.5e4);
67drop table t1;67drop table t1;
6868
@@ -76,12 +76,12 @@
76# Ensure that maximum values as the result of number of decimals76# Ensure that maximum values as the result of number of decimals
77# being specified in table schema are enforced (Bug #7361)77# being specified in table schema are enforced (Bug #7361)
78create table t1 (f float(4,3) primary key);78create table t1 (f float(4,3) primary key);
79--error 126479--error ER_WARN_DATA_OUT_OF_RANGE
80insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");80insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
81select * from t1;81select * from t1;
82drop table if exists t1;82drop table if exists t1;
83create table t1 (f double(4,3) primary key);83create table t1 (f double(4,3) primary key);
84--error 126484--error ER_WARN_DATA_OUT_OF_RANGE
85insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");85insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
86select * from t1;86select * from t1;
87drop table if exists t1;87drop table if exists t1;
@@ -187,9 +187,9 @@
187# bug #12694 (float(m,d) specifications)187# bug #12694 (float(m,d) specifications)
188#188#
189189
190--error 1427190--error ER_M_BIGGER_THAN_D
191create table t1 (s1 float(0,2));191create table t1 (s1 float(0,2));
192--error 1427192--error ER_M_BIGGER_THAN_D
193create table t1 (s1 float(1,2));193create table t1 (s1 float(1,2));
194194
195# Bug #28121 "INSERT or UPDATE into DOUBLE(200,0) field being truncated to 31 digits"195# Bug #28121 "INSERT or UPDATE into DOUBLE(200,0) field being truncated to 31 digits"
@@ -198,7 +198,7 @@
198create table t1 (f1 double(200, 0) primary key);198create table t1 (f1 double(200, 0) primary key);
199insert into t1 values (1e199), (-1e199);199insert into t1 values (1e199), (-1e199);
200insert into t1 values (1e200), (-1e200);200insert into t1 values (1e200), (-1e200);
201--error 1264201--error ER_WARN_DATA_OUT_OF_RANGE
202insert into t1 values (2e200), (-2e200);202insert into t1 values (2e200), (-2e200);
203select f1 + 0e0 from t1;203select f1 + 0e0 from t1;
204drop table t1;204drop table t1;
@@ -206,7 +206,7 @@
206create table t1 (f1 float(30, 0) primary key);206create table t1 (f1 float(30, 0) primary key);
207insert into t1 values (1e29), (-1e29);207insert into t1 values (1e29), (-1e29);
208insert into t1 values (1e30), (-1e30);208insert into t1 values (1e30), (-1e30);
209--error 1264209--error ER_WARN_DATA_OUT_OF_RANGE
210insert into t1 values (2e30), (-2e30);210insert into t1 values (2e30), (-2e30);
211select f1 + 0e0 from t1;211select f1 + 0e0 from t1;
212drop table t1;212drop table t1;
213213
=== modified file 'plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test'
--- plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test 2010-04-27 04:31:43 +0000
+++ plugin/embedded_innodb/test-suite-dir/embedded_innodb/tests/t/type_timestamp.test 2010-08-27 21:22:40 +0000
@@ -83,15 +83,15 @@
83# (for both strings and numbers)83# (for both strings and numbers)
84#84#
85create table t1 (ix timestamp primary key);85create table t1 (ix timestamp primary key);
86--error 1685 # Bad unix timestamp86--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad unix timestamp
87insert into t1 values (0),(20030101010160),(20030101016001),(20030101240101),(20030132010101),(20031301010101),(20031200000000),(20030000000000);87insert into t1 values (0),(20030101010160),(20030101016001),(20030101240101),(20030132010101),(20031301010101),(20031200000000),(20030000000000);
88select ix+0 from t1;88select ix+0 from t1;
89truncate table t1;89truncate table t1;
90--error 1685 # Bad unix timestamp90--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad unix timestamp
91insert into t1 values ("00000000000000"),("20030101010160"),("20030101016001"),("20030101240101"),("20030132010101"),("20031301010101"),("20031200000000"),("20030000000000");91insert into t1 values ("00000000000000"),("20030101010160"),("20030101016001"),("20030101240101"),("20030132010101"),("20031301010101"),("20031200000000"),("20030000000000");
92select ix+0 from t1;92select ix+0 from t1;
93truncate table t1;93truncate table t1;
94--error 1685 # Bad unix timestamp94--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad unix timestamp
95insert into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");95insert into t1 values ("0000-00-00 00:00:00 some trailer"),("2003-01-01 00:00:00 some trailer");
96select ix+0 from t1;96select ix+0 from t1;
97drop table t1;97drop table t1;
@@ -100,9 +100,9 @@
100# Test for TIMESTAMP column with default now() and on update now() clauses100# Test for TIMESTAMP column with default now() and on update now() clauses
101#101#
102102
103--error 1293103--error ER_TOO_MUCH_AUTO_TIMESTAMP_COLS
104create table t1 (t1 timestamp default now(), t2 timestamp on update now());104create table t1 (t1 timestamp default now(), t2 timestamp on update now());
105--error 1293105--error ER_TOO_MUCH_AUTO_TIMESTAMP_COLS
106create table t1 (t1 timestamp on update now(), t2 timestamp default now() on update now());106create table t1 (t1 timestamp on update now(), t2 timestamp default now() on update now());
107107
108# Let us test TIMESTAMP auto-update behaviour108# Let us test TIMESTAMP auto-update behaviour
@@ -314,12 +314,12 @@
314--sorted_result314--sorted_result
315select * from t1;315select * from t1;
316# Embedded InnoDB needs to have HailDB instead of libinnodb before this will work316# Embedded InnoDB needs to have HailDB instead of libinnodb before this will work
317--error 1022317--error ER_DUP_KEY
318insert into t1 (a) values (3), (5) on duplicate key update b = 3, c = c;318insert into t1 (a) values (3), (5) on duplicate key update b = 3, c = c;
319--sorted_result319--sorted_result
320select * from t1;320select * from t1;
321# Embedded InnoDB needs to have HailDB instead of libinnodb before this will work321# Embedded InnoDB needs to have HailDB instead of libinnodb before this will work
322--error 1022322--error ER_DUP_KEY
323insert into t1 (a, c) values (4, '2004-04-04 00:00:00'),323insert into t1 (a, c) values (4, '2004-04-04 00:00:00'),
324 (6, '2006-06-06 06:06:06') on duplicate key update b = 4;324 (6, '2006-06-06 06:06:06') on duplicate key update b = 4;
325--sorted_result325--sorted_result
326326
=== modified file 'plugin/filesystem_engine/tests/t/basic_create_table.test'
--- plugin/filesystem_engine/tests/t/basic_create_table.test 2010-06-29 13:21:24 +0000
+++ plugin/filesystem_engine/tests/t/basic_create_table.test 2010-08-27 21:22:40 +0000
@@ -3,21 +3,21 @@
3--enable_warnings3--enable_warnings
44
5# test file not existed5# test file not existed
6--error 10056--error ER_CANT_CREATE_TABLE
7CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/_FILE_NOT_EXISTED_";7CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/_FILE_NOT_EXISTED_";
88
9# test col separator not empty9# test col separator not empty
10--error 169810--error ER_UNKNOWN_ENGINE_OPTION
11CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data",COL_SEPARATOR="";11CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data",COL_SEPARATOR="";
1212
13# test row separator not empty13# test row separator not empty
14--error 169814--error ER_UNKNOWN_ENGINE_OPTION
15CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data",ROW_SEPARATOR="";15CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data",ROW_SEPARATOR="";
1616
17CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data";17CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data";
1818
19# test table existed19# test table existed
20--error 105020--error ER_TABLE_EXISTS_ERROR
21CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data";21CREATE TABLE t1 (a INT) ENGINE=FILESYSTEM,FILE="../filesystem_ln/basic_create_table.data";
2222
23SHOW CREATE TABLE t1;23SHOW CREATE TABLE t1;
2424
=== modified file 'plugin/myisam/tests/t/myisam.test'
--- plugin/myisam/tests/t/myisam.test 2010-08-10 18:09:11 +0000
+++ plugin/myisam/tests/t/myisam.test 2010-08-27 21:22:40 +0000
@@ -329,10 +329,10 @@
329# Test of creating table with too long key329# Test of creating table with too long key
330#330#
331331
332--error 1071332--error ER_TOO_LONG_KEY
333CREATE 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;333CREATE 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;
334CREATE TEMPORARY TABLE t1 (a varchar(300), b varchar(300), c varchar(300), d varchar(300), e varchar(300)) ENGINE=MyISAM;334CREATE TEMPORARY TABLE t1 (a varchar(300), b varchar(300), c varchar(300), d varchar(300), e varchar(300)) ENGINE=MyISAM;
335--error 1071335--error ER_TOO_LONG_KEY
336ALTER TABLE t1 ADD INDEX t1 (a, b, c, d, e);336ALTER TABLE t1 ADD INDEX t1 (a, b, c, d, e);
337DROP TABLE t1;337DROP TABLE t1;
338338
@@ -805,15 +805,15 @@
805# Some errors/warnings on create805# Some errors/warnings on create
806#806#
807807
808--error 1074808--error ER_TOO_BIG_FIELDLENGTH
809create temporary table t1 (v varchar(65530), key(v));809create temporary table t1 (v varchar(65530), key(v));
810--error 1074810--error ER_TOO_BIG_FIELDLENGTH
811create temporary table t1 (v varchar(65536));811create temporary table t1 (v varchar(65536));
812--error 1074812--error ER_TOO_BIG_FIELDLENGTH
813create temporary table t1 (v varchar(65530));813create temporary table t1 (v varchar(65530));
814814
815# MyISAM specific varchar tests815# MyISAM specific varchar tests
816--error 1074816--error ER_TOO_BIG_FIELDLENGTH
817create temporary table t1 (v varchar(65535));817create temporary table t1 (v varchar(65535));
818818
819eval set storage_engine=$default;819eval set storage_engine=$default;
820820
=== modified file 'plugin/pbxt/tests/t/basic_create_nullable.test'
--- plugin/pbxt/tests/t/basic_create_nullable.test 2010-08-12 22:49:45 +0000
+++ plugin/pbxt/tests/t/basic_create_nullable.test 2010-08-27 21:22:40 +0000
@@ -1,9 +1,9 @@
1create table t1 (a int, b int not null, c int null, d int not null, pk int primary key);1create table t1 (a int, b int not null, c int null, d int not null, pk int primary key);
2show create table t1;2show create table t1;
3insert into t1 values (0,0, 0, 0,0);3insert into t1 values (0,0, 0, 0,0);
4--error 10484--error ER_BAD_NULL_ERROR
5insert into t1 values (NULL, NULL, NULL, NULL, 1);5insert into t1 values (NULL, NULL, NULL, NULL, 1);
6insert into t1 values (NULL, 1, NULL, 1, 2);6insert into t1 values (NULL, 1, NULL, 1, 2);
7--error 10487--error ER_BAD_NULL_ERROR
8insert into t1 values (1,2,3,NULL, 3);8insert into t1 values (1,2,3,NULL, 3);
9drop table t1;9drop table t1;
1010
=== modified file 'plugin/pbxt/tests/t/basic_create_table.test'
--- plugin/pbxt/tests/t/basic_create_table.test 2010-08-12 22:49:45 +0000
+++ plugin/pbxt/tests/t/basic_create_table.test 2010-08-27 21:22:40 +0000
@@ -1,6 +1,6 @@
1CREATE TABLE t1 (a int primary key);1CREATE TABLE t1 (a int primary key);
2SHOW CREATE TABLE t1;2SHOW CREATE TABLE t1;
3--error 10503--error ER_TABLE_EXISTS_ERROR
4CREATE TABLE t1 (a int primary key);4CREATE TABLE t1 (a int primary key);
5CREATE TABLE t2 (a int primary key, b varchar(20), c bigint);5CREATE TABLE t2 (a int primary key, b varchar(20), c bigint);
66
77
=== modified file 'plugin/pbxt/tests/t/basic_drop_table.test'
--- plugin/pbxt/tests/t/basic_drop_table.test 2010-08-12 22:49:45 +0000
+++ plugin/pbxt/tests/t/basic_drop_table.test 2010-08-27 21:22:40 +0000
@@ -2,6 +2,6 @@
2CREATE TABLE t2 (a int primary key);2CREATE TABLE t2 (a int primary key);
3DROP TABLE t1;3DROP TABLE t1;
4DROP TABLE t2;4DROP TABLE t2;
5--error 10515--error ER_BAD_TABLE_ERROR
6DROP TABLE t3;6DROP TABLE t3;
77
88
=== modified file 'plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test'
--- plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test 2010-08-12 22:49:45 +0000
+++ plugin/pbxt/tests/t/basic_insert_pkey_duplicate.test 2010-08-27 21:22:40 +0000
@@ -1,5 +1,5 @@
1create table t1 (a int primary key);1create table t1 (a int primary key);
2insert into t1 values (1);2insert into t1 values (1);
3--error 1062,10223--error ER_DUP_ENTRY, ER_DUP_KEY
4insert into t1 values (1);4insert into t1 values (1);
5drop table t1;5drop table t1;
66
=== modified file 'plugin/pbxt/tests/t/basic_statement_rollback.test'
--- plugin/pbxt/tests/t/basic_statement_rollback.test 2010-08-12 22:49:45 +0000
+++ plugin/pbxt/tests/t/basic_statement_rollback.test 2010-08-27 21:22:40 +0000
@@ -3,7 +3,7 @@
3select * from t1;3select * from t1;
4begin;4begin;
5insert into t1 values (5);5insert into t1 values (5);
6--error 1022,10626--error ER_DUP_KEY, ER_DUP_ENTRY
7insert into t1 values (1),(2),(3),(4);7insert into t1 values (1),(2),(3),(4);
8commit;8commit;
9select * from t1;9select * from t1;
1010
=== modified file 'plugin/rand_function/tests/t/basic.test'
--- plugin/rand_function/tests/t/basic.test 2010-06-04 09:22:02 +0000
+++ plugin/rand_function/tests/t/basic.test 2010-08-27 21:22:40 +0000
@@ -3,7 +3,7 @@
3# Bug #7281: problem with rand()3# Bug #7281: problem with rand()
4#4#
55
6--error 10546--error ER_BAD_FIELD_ERROR
7select rand(rand);7select rand(rand);
88
9#9#
1010
=== modified file 'plugin/schema_dictionary/tests/t/no_default.test'
--- plugin/schema_dictionary/tests/t/no_default.test 2010-03-17 13:39:11 +0000
+++ plugin/schema_dictionary/tests/t/no_default.test 2010-08-27 21:22:40 +0000
@@ -1,5 +1,5 @@
1create table t1 (a int primary key);1create table t1 (a int primary key);
2--error 13642--error ER_NO_DEFAULT_FOR_FIELD
3insert into t1 values ();3insert into t1 values ();
4select COLUMN_NAME,COLUMN_DEFAULT,COLUMN_DEFAULT_IS_NULL FROM DATA_DICTIONARY.COLUMNS WHERE TABLE_SCHEMA="test" AND TABLE_NAME="t1";4select COLUMN_NAME,COLUMN_DEFAULT,COLUMN_DEFAULT_IS_NULL FROM DATA_DICTIONARY.COLUMNS WHERE TABLE_SCHEMA="test" AND TABLE_NAME="t1";
5drop table t1;5drop table t1;
66
=== modified file 'plugin/show_schema_proto/tests/t/basic.test'
--- plugin/show_schema_proto/tests/t/basic.test 2010-03-16 23:42:10 +0000
+++ plugin/show_schema_proto/tests/t/basic.test 2010-08-27 21:22:40 +0000
@@ -10,7 +10,7 @@
10#10#
11#11#
12##SELECT SHOW_SCHEMA_PROTO('test');12##SELECT SHOW_SCHEMA_PROTO('test');
13--error 104913--error ER_BAD_DB_ERROR
14SELECT SHOW_SCHEMA_PROTO('not_exists');14SELECT SHOW_SCHEMA_PROTO('not_exists');
15#CREATE DATABASE foobar COLLATE = utf8_bin;15#CREATE DATABASE foobar COLLATE = utf8_bin;
16#SELECT SHOW_SCHEMA_PROTO('foobar');16#SELECT SHOW_SCHEMA_PROTO('foobar');
1717
=== modified file 'plugin/sleep/tests/t/sleep.test'
--- plugin/sleep/tests/t/sleep.test 2010-03-03 20:57:45 +0000
+++ plugin/sleep/tests/t/sleep.test 2010-08-27 21:22:40 +0000
@@ -1,6 +1,6 @@
1--error 15821--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
2select sleep();2select sleep();
3--error 15823--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
4select sleep(10,10);4select sleep(10,10);
5select sleep('a');5select sleep('a');
6show warnings;6show warnings;
77
=== modified file 'plugin/tableprototester/tests/t/drop_table.test'
--- plugin/tableprototester/tests/t/drop_table.test 2010-03-27 21:22:09 +0000
+++ plugin/tableprototester/tests/t/drop_table.test 2010-08-27 21:22:40 +0000
@@ -1,2 +1,2 @@
1--error 16931--error ER_CORRUPT_TABLE_DEFINITION
2DROP TABLE t1;2DROP TABLE t1;
33
=== modified file 'plugin/tableprototester/tests/t/invalid_table_collation.test'
--- plugin/tableprototester/tests/t/invalid_table_collation.test 2010-07-05 03:25:34 +0000
+++ plugin/tableprototester/tests/t/invalid_table_collation.test 2010-08-27 21:22:40 +0000
@@ -1,3 +1,3 @@
1--error 16931--error ER_CORRUPT_TABLE_DEFINITION
2SHOW CREATE TABLE test.invalid_table_collation;2SHOW CREATE TABLE test.invalid_table_collation;
33
44
=== modified file 'plugin/tableprototester/tests/t/missing_engine.test'
--- plugin/tableprototester/tests/t/missing_engine.test 2010-06-03 04:49:12 +0000
+++ plugin/tableprototester/tests/t/missing_engine.test 2010-08-27 21:22:40 +0000
@@ -1,5 +1,5 @@
11
2SHOW TABLES like 't1';2SHOW TABLES like 't1';
33
4--error 16934--error ER_CORRUPT_TABLE_DEFINITION
5SHOW CREATE TABLE t1;5SHOW CREATE TABLE t1;
66
=== modified file 'plugin/tableprototester/tests/t/too_many_enum_values.test'
--- plugin/tableprototester/tests/t/too_many_enum_values.test 2010-06-03 07:57:13 +0000
+++ plugin/tableprototester/tests/t/too_many_enum_values.test 2010-08-27 21:22:40 +0000
@@ -1,5 +1,5 @@
1--error 16931--error ER_CORRUPT_TABLE_DEFINITION
2SHOW CREATE TABLE too_many_enum_values;2SHOW CREATE TABLE too_many_enum_values;
3--error 16933--error ER_CORRUPT_TABLE_DEFINITION
4SELECT * FROM too_many_enum_values;4SELECT * FROM too_many_enum_values;
55
66
=== modified file 'tests/suite/broken/t/packet.test'
--- tests/suite/broken/t/packet.test 2008-10-18 15:43:20 +0000
+++ tests/suite/broken/t/packet.test 2010-08-27 21:22:40 +0000
@@ -20,7 +20,7 @@
20connect (con2,localhost,root,,);20connect (con2,localhost,root,,);
21connection con2;21connection con2;
22select @@net_buffer_length, @@max_allowed_packet;22select @@net_buffer_length, @@max_allowed_packet;
23--error 115323--error ER_NET_PACKET_TOO_LARGE
24SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;24SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
25set global max_allowed_packet=default;25set global max_allowed_packet=default;
26set max_allowed_packet=default;26set max_allowed_packet=default;
2727
=== modified file 'tests/suite/broken/t/strict-date.test'
--- tests/suite/broken/t/strict-date.test 2009-01-12 02:31:02 +0000
+++ tests/suite/broken/t/strict-date.test 2010-08-27 21:22:40 +0000
@@ -16,42 +16,42 @@
1616
17# All test cases expected to fail should return 17# All test cases expected to fail should return
18# SQLSTATE 22007 <invalid date value>18# SQLSTATE 22007 <invalid date value>
19--error 129219--error ER_TRUNCATED_WRONG_VALUE
20INSERT INTO t1 VALUES('2004-0-31');20INSERT INTO t1 VALUES('2004-0-31');
21--error 129221--error ER_TRUNCATED_WRONG_VALUE
22INSERT INTO t1 VALUES('2004-01-02'),('2004-0-31');22INSERT INTO t1 VALUES('2004-01-02'),('2004-0-31');
23--error 129223--error ER_TRUNCATED_WRONG_VALUE
24INSERT INTO t1 VALUES('2004-10-0');24INSERT INTO t1 VALUES('2004-10-0');
25--error 129225--error ER_TRUNCATED_WRONG_VALUE
26INSERT INTO t1 VALUES('2004-09-31');26INSERT INTO t1 VALUES('2004-09-31');
27--error 129227--error ER_TRUNCATED_WRONG_VALUE
28INSERT INTO t1 VALUES('2004-10-32');28INSERT INTO t1 VALUES('2004-10-32');
29--error 129229--error ER_TRUNCATED_WRONG_VALUE
30INSERT INTO t1 VALUES('2003-02-29');30INSERT INTO t1 VALUES('2003-02-29');
31--error 129231--error ER_TRUNCATED_WRONG_VALUE
32INSERT INTO t1 VALUES('2004-13-15');32INSERT INTO t1 VALUES('2004-13-15');
33--error 129233--error ER_TRUNCATED_WRONG_VALUE
34INSERT INTO t1 VALUES('0000-00-00');34INSERT INTO t1 VALUES('0000-00-00');
35# Standard says we should return SQLSTATE 2201835# Standard says we should return SQLSTATE 22018
36--error 129236--error ER_TRUNCATED_WRONG_VALUE
37INSERT INTO t1 VALUES ('59');37INSERT INTO t1 VALUES ('59');
3838
39# Test the different related modes39# Test the different related modes
40set @@sql_mode='STRICT_ALL_TABLES';40set @@sql_mode='STRICT_ALL_TABLES';
41INSERT INTO t1 VALUES('2004-01-03'),('2004-0-31');41INSERT INTO t1 VALUES('2004-01-03'),('2004-0-31');
42set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';42set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
43--error 129243--error ER_TRUNCATED_WRONG_VALUE
44INSERT INTO t1 VALUES('2004-0-30');44INSERT INTO t1 VALUES('2004-0-30');
45--error 129245--error ER_TRUNCATED_WRONG_VALUE
46INSERT INTO t1 VALUES('2004-01-04'),('2004-0-31'),('2004-01-05');46INSERT INTO t1 VALUES('2004-01-04'),('2004-0-31'),('2004-01-05');
47INSERT INTO t1 VALUES('0000-00-00');47INSERT INTO t1 VALUES('0000-00-00');
48INSERT IGNORE INTO t1 VALUES('2004-0-29');48INSERT IGNORE INTO t1 VALUES('2004-0-29');
49set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';49set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
50--error 129250--error ER_TRUNCATED_WRONG_VALUE
51INSERT INTO t1 VALUES('0000-00-00');51INSERT INTO t1 VALUES('0000-00-00');
52INSERT IGNORE INTO t1 VALUES('0000-00-00');52INSERT IGNORE INTO t1 VALUES('0000-00-00');
53INSERT INTO t1 VALUES ('2004-0-30');53INSERT INTO t1 VALUES ('2004-0-30');
54--error 129254--error ER_TRUNCATED_WRONG_VALUE
55INSERT INTO t1 VALUES ('2004-2-30');55INSERT INTO t1 VALUES ('2004-2-30');
56set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';56set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
57INSERT INTO t1 VALUES ('2004-2-30');57INSERT INTO t1 VALUES ('2004-2-30');
@@ -64,11 +64,11 @@
6464
65set @@sql_mode='strict_trans_tables';65set @@sql_mode='strict_trans_tables';
66CREATE TABLE t1 (col1 date) engine=myisam;66CREATE TABLE t1 (col1 date) engine=myisam;
67--error 129267--error ER_TRUNCATED_WRONG_VALUE
68INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');68INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
69INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');69INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
70INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');70INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
71--error 129271--error ER_TRUNCATED_WRONG_VALUE
72INSERT INTO t1 VALUES ('2003-02-29');72INSERT INTO t1 VALUES ('2003-02-29');
73INSERT ignore INTO t1 VALUES('2003-02-30');73INSERT ignore INTO t1 VALUES('2003-02-30');
74set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';74set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
@@ -78,12 +78,12 @@
7878
79set @@sql_mode='strict_trans_tables';79set @@sql_mode='strict_trans_tables';
80CREATE TABLE t1 (col1 date) engine=innodb;80CREATE TABLE t1 (col1 date) engine=innodb;
81--error 129281--error ER_TRUNCATED_WRONG_VALUE
82INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');82INSERT INTO t1 VALUES('2004-13-31'),('2004-1-1');
83--error 129283--error ER_TRUNCATED_WRONG_VALUE
84INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');84INSERT INTO t1 VALUES ('2004-1-2'), ('2004-13-31'),('2004-1-3');
85INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');85INSERT IGNORE INTO t1 VALUES('2004-13-31'),('2004-1-4');
86--error 129286--error ER_TRUNCATED_WRONG_VALUE
87INSERT INTO t1 VALUES ('2003-02-29');87INSERT INTO t1 VALUES ('2003-02-29');
88INSERT ignore INTO t1 VALUES('2003-02-30');88INSERT ignore INTO t1 VALUES('2003-02-30');
89set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';89set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
@@ -100,22 +100,22 @@
100100
101# All test cases expected to fail should return 101# All test cases expected to fail should return
102# SQLSTATE 22007 <invalid datetime value>102# SQLSTATE 22007 <invalid datetime value>
103--error 1292103--error ER_TRUNCATED_WRONG_VALUE
104INSERT INTO t1 VALUES('2004-0-31 15:30:00');104INSERT INTO t1 VALUES('2004-0-31 15:30:00');
105--error 1292105--error ER_TRUNCATED_WRONG_VALUE
106INSERT INTO t1 VALUES('2004-10-0 15:30:00');106INSERT INTO t1 VALUES('2004-10-0 15:30:00');
107--error 1292107--error ER_TRUNCATED_WRONG_VALUE
108INSERT INTO t1 VALUES('2004-09-31 15:30:00');108INSERT INTO t1 VALUES('2004-09-31 15:30:00');
109--error 1292109--error ER_TRUNCATED_WRONG_VALUE
110INSERT INTO t1 VALUES('2004-10-32 15:30:00');110INSERT INTO t1 VALUES('2004-10-32 15:30:00');
111--error 1292111--error ER_TRUNCATED_WRONG_VALUE
112INSERT INTO t1 VALUES('2003-02-29 15:30:00');112INSERT INTO t1 VALUES('2003-02-29 15:30:00');
113--error 1292113--error ER_TRUNCATED_WRONG_VALUE
114INSERT INTO t1 VALUES('2004-13-15 15:30:00');114INSERT INTO t1 VALUES('2004-13-15 15:30:00');
115--error 1292115--error ER_TRUNCATED_WRONG_VALUE
116INSERT INTO t1 VALUES('0000-00-00 15:30:00');116INSERT INTO t1 VALUES('0000-00-00 15:30:00');
117# Standard says we should return SQLSTATE 22018117# Standard says we should return SQLSTATE 22018
118--error 1292118--error ER_TRUNCATED_WRONG_VALUE
119INSERT INTO t1 VALUES ('59');119INSERT INTO t1 VALUES ('59');
120select * from t1;120select * from t1;
121drop table t1;121drop table t1;
@@ -129,49 +129,49 @@
129# All test cases expected to fail should return 129# All test cases expected to fail should return
130# SQLSTATE 22007 <invalid datetime value>130# SQLSTATE 22007 <invalid datetime value>
131# Standard says we should return ok, but we can't as this is out of range131# Standard says we should return ok, but we can't as this is out of range
132--error 1292132--error ER_TRUNCATED_WRONG_VALUE
133INSERT INTO t1 VALUES('0000-10-31 15:30:00');133INSERT INTO t1 VALUES('0000-10-31 15:30:00');
134--error 1292134--error ER_TRUNCATED_WRONG_VALUE
135INSERT INTO t1 VALUES('2004-0-31 15:30:00');135INSERT INTO t1 VALUES('2004-0-31 15:30:00');
136--error 1292136--error ER_TRUNCATED_WRONG_VALUE
137INSERT INTO t1 VALUES('2004-10-0 15:30:00');137INSERT INTO t1 VALUES('2004-10-0 15:30:00');
138--error 1292138--error ER_TRUNCATED_WRONG_VALUE
139INSERT INTO t1 VALUES('2004-09-31 15:30:00');139INSERT INTO t1 VALUES('2004-09-31 15:30:00');
140--error 1292140--error ER_TRUNCATED_WRONG_VALUE
141INSERT INTO t1 VALUES('2004-10-32 15:30:00');141INSERT INTO t1 VALUES('2004-10-32 15:30:00');
142--error 1292142--error ER_TRUNCATED_WRONG_VALUE
143INSERT INTO t1 VALUES('2003-02-29 15:30:00');143INSERT INTO t1 VALUES('2003-02-29 15:30:00');
144--error 1292144--error ER_TRUNCATED_WRONG_VALUE
145INSERT INTO t1 VALUES('2004-13-15 15:30:00');145INSERT INTO t1 VALUES('2004-13-15 15:30:00');
146--error 1292146--error ER_TRUNCATED_WRONG_VALUE
147INSERT INTO t1 VALUES('2004-02-29 25:30:00');147INSERT INTO t1 VALUES('2004-02-29 25:30:00');
148--error 1292148--error ER_TRUNCATED_WRONG_VALUE
149INSERT INTO t1 VALUES('2004-02-29 15:65:00');149INSERT INTO t1 VALUES('2004-02-29 15:65:00');
150--error 1292150--error ER_TRUNCATED_WRONG_VALUE
151INSERT INTO t1 VALUES('2004-02-29 15:31:61');151INSERT INTO t1 VALUES('2004-02-29 15:31:61');
152--error 1292152--error ER_TRUNCATED_WRONG_VALUE
153INSERT INTO t1 VALUES('0000-00-00 15:30:00');153INSERT INTO t1 VALUES('0000-00-00 15:30:00');
154--error 1292154--error ER_TRUNCATED_WRONG_VALUE
155INSERT INTO t1 VALUES('0000-00-00 00:00:00');155INSERT INTO t1 VALUES('0000-00-00 00:00:00');
156INSERT IGNORE INTO t1 VALUES('0000-00-00 00:00:00');156INSERT IGNORE INTO t1 VALUES('0000-00-00 00:00:00');
157# Standard says we should return SQLSTATE 22018157# Standard says we should return SQLSTATE 22018
158--error 1292158--error ER_TRUNCATED_WRONG_VALUE
159INSERT INTO t1 VALUES ('59');159INSERT INTO t1 VALUES ('59');
160160
161set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';161set @@sql_mode='STRICT_ALL_TABLES,ALLOW_INVALID_DATES';
162--error 1292162--error ER_TRUNCATED_WRONG_VALUE
163INSERT INTO t1 VALUES('2004-0-31 15:30:00');163INSERT INTO t1 VALUES('2004-0-31 15:30:00');
164--error 1292164--error ER_TRUNCATED_WRONG_VALUE
165INSERT INTO t1 VALUES('2004-10-0 15:30:00');165INSERT INTO t1 VALUES('2004-10-0 15:30:00');
166--error 1292166--error ER_TRUNCATED_WRONG_VALUE
167INSERT INTO t1 VALUES('2004-10-32 15:30:00');167INSERT INTO t1 VALUES('2004-10-32 15:30:00');
168--error 1292168--error ER_TRUNCATED_WRONG_VALUE
169INSERT INTO t1 VALUES('2004-02-30 15:30:04');169INSERT INTO t1 VALUES('2004-02-30 15:30:04');
170INSERT INTO t1 VALUES('0000-00-00 00:00:00');170INSERT INTO t1 VALUES('0000-00-00 00:00:00');
171set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';171set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_IN_DATE';
172INSERT INTO t1 VALUES('0000-00-00 00:00:00');172INSERT INTO t1 VALUES('0000-00-00 00:00:00');
173set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';173set @@sql_mode='STRICT_ALL_TABLES,NO_ZERO_DATE';
174--error 1292174--error ER_TRUNCATED_WRONG_VALUE
175INSERT INTO t1 VALUES('0000-00-00 00:00:00');175INSERT INTO t1 VALUES('0000-00-00 00:00:00');
176set @@sql_mode='ansi,traditional';176set @@sql_mode='ansi,traditional';
177SELECT * FROM t1;177SELECT * FROM t1;
@@ -191,19 +191,19 @@
191191
192INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));192INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
193193
194--error 1292194--error ER_TRUNCATED_WRONG_VALUE
195INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));195INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
196--error 1292196--error ER_TRUNCATED_WRONG_VALUE
197INSERT INTO t1 (col1) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));197INSERT INTO t1 (col1) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
198--error 1292198--error ER_TRUNCATED_WRONG_VALUE
199INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));199INSERT INTO t1 (col1) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
200--error 1411200--error ER_WRONG_VALUE_FOR_TYPE
201INSERT INTO t1 (col1) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));201INSERT INTO t1 (col1) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
202--error 1292202--error ER_TRUNCATED_WRONG_VALUE
203INSERT INTO t1 (col1) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));203INSERT INTO t1 (col1) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
204--error 1411204--error ER_WRONG_VALUE_FOR_TYPE
205INSERT INTO t1 (col1) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));205INSERT INTO t1 (col1) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
206--error 1292206--error ER_TRUNCATED_WRONG_VALUE
207INSERT INTO t1 (col1) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));207INSERT INTO t1 (col1) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
208208
209## Test INSERT with STR_TO_DATE into DATETIME209## Test INSERT with STR_TO_DATE into DATETIME
@@ -212,40 +212,40 @@
212212
213INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));213INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
214214
215--error 1292215--error ER_TRUNCATED_WRONG_VALUE
216INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));216INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
217--error 1292217--error ER_TRUNCATED_WRONG_VALUE
218INSERT INTO t1 (col2) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));218INSERT INTO t1 (col2) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
219--error 1292219--error ER_TRUNCATED_WRONG_VALUE
220INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));220INSERT INTO t1 (col2) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
221--error 1411221--error ER_WRONG_VALUE_FOR_TYPE
222INSERT INTO t1 (col2) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));222INSERT INTO t1 (col2) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
223--error 1292223--error ER_TRUNCATED_WRONG_VALUE
224INSERT INTO t1 (col2) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));224INSERT INTO t1 (col2) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
225--error 1411225--error ER_WRONG_VALUE_FOR_TYPE
226INSERT INTO t1 (col2) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));226INSERT INTO t1 (col2) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
227--error 1292227--error ER_TRUNCATED_WRONG_VALUE
228INSERT INTO t1 (col2) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));228INSERT INTO t1 (col2) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
229229
230## Test INSERT with STR_TO_DATE into TIMESTAMP230## Test INSERT with STR_TO_DATE into TIMESTAMP
231# All test cases expected to fail should return 231# All test cases expected to fail should return
232# SQLSTATE 22007 <invalid datetime value>232# SQLSTATE 22007 <invalid datetime value>
233233
234--error 1292234--error ER_TRUNCATED_WRONG_VALUE
235INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));235INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.10.0000 15.30','%d.%m.%Y %H.%i'));
236--error 1292236--error ER_TRUNCATED_WRONG_VALUE
237INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));237INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.0.2004 15.30','%d.%m.%Y %H.%i'));
238--error 1292238--error ER_TRUNCATED_WRONG_VALUE
239INSERT INTO t1 (col3) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));239INSERT INTO t1 (col3) VALUES(STR_TO_DATE('0.10.2004 15.30','%d.%m.%Y %H.%i'));
240--error 1292240--error ER_TRUNCATED_WRONG_VALUE
241INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));241INSERT INTO t1 (col3) VALUES(STR_TO_DATE('31.9.2004 15.30','%d.%m.%Y %H.%i'));
242--error 1411242--error ER_WRONG_VALUE_FOR_TYPE
243INSERT INTO t1 (col3) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));243INSERT INTO t1 (col3) VALUES(STR_TO_DATE('32.10.2004 15.30','%d.%m.%Y %H.%i'));
244--error 1292244--error ER_TRUNCATED_WRONG_VALUE
245INSERT INTO t1 (col3) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));245INSERT INTO t1 (col3) VALUES(STR_TO_DATE('29.02.2003 15.30','%d.%m.%Y %H.%i'));
246--error 1411246--error ER_WRONG_VALUE_FOR_TYPE
247INSERT INTO t1 (col3) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));247INSERT INTO t1 (col3) VALUES(STR_TO_DATE('15.13.2004 15.30','%d.%m.%Y %H.%i'));
248--error 1292248--error ER_TRUNCATED_WRONG_VALUE
249INSERT INTO t1 (col3) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));249INSERT INTO t1 (col3) VALUES(STR_TO_DATE('00.00.0000','%d.%m.%Y'));
250250
251drop table t1;251drop table t1;
@@ -265,25 +265,25 @@
265265
266INSERT INTO t1 (col1) VALUES(CAST('0000-10-31' AS DATE));266INSERT INTO t1 (col1) VALUES(CAST('0000-10-31' AS DATE));
267267
268--error 1292268--error ER_TRUNCATED_WRONG_VALUE
269INSERT INTO t1 (col1) VALUES(CAST('2004-10-0' AS DATE));269INSERT INTO t1 (col1) VALUES(CAST('2004-10-0' AS DATE));
270--error 1292270--error ER_TRUNCATED_WRONG_VALUE
271INSERT INTO t1 (col1) VALUES(CAST('2004-0-10' AS DATE));271INSERT INTO t1 (col1) VALUES(CAST('2004-0-10' AS DATE));
272272
273# deactivated because of Bug#8294273# deactivated because of Bug#8294
274# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE274# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
275# --error 1292275# --error ER_TRUNCATED_WRONG_VALUE
276# INSERT INTO t1 (col1) VALUES(CAST('2004-9-31' AS DATE));276# INSERT INTO t1 (col1) VALUES(CAST('2004-9-31' AS DATE));
277# --error 1292277# --error ER_TRUNCATED_WRONG_VALUE
278# INSERT INTO t1 (col1) VALUES(CAST('2004-10-32' AS DATE));278# INSERT INTO t1 (col1) VALUES(CAST('2004-10-32' AS DATE));
279# --error 1292279# --error ER_TRUNCATED_WRONG_VALUE
280# INSERT INTO t1 (col1) VALUES(CAST('2003-02-29' AS DATE));280# INSERT INTO t1 (col1) VALUES(CAST('2003-02-29' AS DATE));
281# --error 1292281# --error ER_TRUNCATED_WRONG_VALUE
282# INSERT INTO t1 (col1) VALUES(CAST('2004-13-15' AS DATE));282# INSERT INTO t1 (col1) VALUES(CAST('2004-13-15' AS DATE));
283283
284# deactivated because of Bug#6145284# deactivated because of Bug#6145
285# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values285# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
286--error 1292286--error ER_TRUNCATED_WRONG_VALUE
287INSERT INTO t1 (col1) VALUES(CAST('0000-00-00' AS DATE));287INSERT INTO t1 (col1) VALUES(CAST('0000-00-00' AS DATE));
288288
289## Test INSERT with CAST AS DATETIME into DATETIME289## Test INSERT with CAST AS DATETIME into DATETIME
@@ -292,53 +292,53 @@
292292
293INSERT INTO t1 (col2) VALUES(CAST('0000-10-31 15:30' AS DATETIME));293INSERT INTO t1 (col2) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
294294
295--error 1292295--error ER_TRUNCATED_WRONG_VALUE
296INSERT INTO t1 (col2) VALUES(CAST('2004-10-0 15:30' AS DATETIME));296INSERT INTO t1 (col2) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
297--error 1292297--error ER_TRUNCATED_WRONG_VALUE
298INSERT INTO t1 (col2) VALUES(CAST('2004-0-10 15:30' AS DATETIME));298INSERT INTO t1 (col2) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
299299
300# deactivated because of Bug#8294300# deactivated because of Bug#8294
301# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE301# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
302#--error 1292302#--error ER_TRUNCATED_WRONG_VALUE
303#INSERT INTO t1 (col2) VALUES(CAST('2004-9-31 15:30' AS DATETIME));303#INSERT INTO t1 (col2) VALUES(CAST('2004-9-31 15:30' AS DATETIME));
304#--error 1292304#--error ER_TRUNCATED_WRONG_VALUE
305#INSERT INTO t1 (col2) VALUES(CAST('2004-10-32 15:30' AS DATETIME));305#INSERT INTO t1 (col2) VALUES(CAST('2004-10-32 15:30' AS DATETIME));
306#--error 1292306#--error ER_TRUNCATED_WRONG_VALUE
307#INSERT INTO t1 (col2) VALUES(CAST('2003-02-29 15:30' AS DATETIME));307#INSERT INTO t1 (col2) VALUES(CAST('2003-02-29 15:30' AS DATETIME));
308#--error 1292308#--error ER_TRUNCATED_WRONG_VALUE
309#INSERT INTO t1 (col2) VALUES(CAST('2004-13-15 15:30' AS DATETIME));309#INSERT INTO t1 (col2) VALUES(CAST('2004-13-15 15:30' AS DATETIME));
310310
311# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values311# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
312--error 1292312--error ER_TRUNCATED_WRONG_VALUE
313INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME));313INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME));
314314
315## Test INSERT with CAST AS DATETIME into TIMESTAMP315## Test INSERT with CAST AS DATETIME into TIMESTAMP
316# All test cases expected to fail should return 316# All test cases expected to fail should return
317# SQLSTATE 22007 <invalid datetime value>317# SQLSTATE 22007 <invalid datetime value>
318--error 1292318--error ER_TRUNCATED_WRONG_VALUE
319INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME));319INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
320# should return OK320# should return OK
321# We accept this to be a failure321# We accept this to be a failure
322322
323--error 1292323--error ER_TRUNCATED_WRONG_VALUE
324INSERT INTO t1 (col3) VALUES(CAST('2004-10-0 15:30' AS DATETIME));324INSERT INTO t1 (col3) VALUES(CAST('2004-10-0 15:30' AS DATETIME));
325--error 1292325--error ER_TRUNCATED_WRONG_VALUE
326INSERT INTO t1 (col3) VALUES(CAST('2004-0-10 15:30' AS DATETIME));326INSERT INTO t1 (col3) VALUES(CAST('2004-0-10 15:30' AS DATETIME));
327# should return SQLSTATE 22007 <invalid datetime value>327# should return SQLSTATE 22007 <invalid datetime value>
328328
329# deactivated because of Bug#8294329# deactivated because of Bug#8294
330# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE330# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
331#--error 1292331#--error ER_TRUNCATED_WRONG_VALUE
332#INSERT INTO t1 (col3) VALUES(CAST('2004-9-31 15:30' AS DATETIME));332#INSERT INTO t1 (col3) VALUES(CAST('2004-9-31 15:30' AS DATETIME));
333#--error 1292333#--error ER_TRUNCATED_WRONG_VALUE
334#INSERT INTO t1 (col3) VALUES(CAST('2004-10-32 15:30' AS DATETIME));334#INSERT INTO t1 (col3) VALUES(CAST('2004-10-32 15:30' AS DATETIME));
335#--error 1292335#--error ER_TRUNCATED_WRONG_VALUE
336#INSERT INTO t1 (col3) VALUES(CAST('2003-02-29 15:30' AS DATETIME));336#INSERT INTO t1 (col3) VALUES(CAST('2003-02-29 15:30' AS DATETIME));
337#--error 1292337#--error ER_TRUNCATED_WRONG_VALUE
338#INSERT INTO t1 (col3) VALUES(CAST('2004-13-15 15:30' AS DATETIME));338#INSERT INTO t1 (col3) VALUES(CAST('2004-13-15 15:30' AS DATETIME));
339339
340# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values340# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
341--error 1292341--error ER_TRUNCATED_WRONG_VALUE
342INSERT INTO t1 (col3) VALUES(CAST('0000-00-00' AS DATETIME));342INSERT INTO t1 (col3) VALUES(CAST('0000-00-00' AS DATETIME));
343343
344drop table t1;344drop table t1;
@@ -359,24 +359,24 @@
359359
360INSERT INTO t1 (col1) VALUES(CONVERT('0000-10-31' , DATE));360INSERT INTO t1 (col1) VALUES(CONVERT('0000-10-31' , DATE));
361361
362--error 1292362--error ER_TRUNCATED_WRONG_VALUE
363INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-0' , DATE));363INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-0' , DATE));
364--error 1292364--error ER_TRUNCATED_WRONG_VALUE
365INSERT INTO t1 (col1) VALUES(CONVERT('2004-0-10' , DATE));365INSERT INTO t1 (col1) VALUES(CONVERT('2004-0-10' , DATE));
366366
367# deactivated because of Bug#8294367# deactivated because of Bug#8294
368# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE368# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
369#--error 1292369#--error ER_TRUNCATED_WRONG_VALUE
370#INSERT INTO t1 (col1) VALUES(CONVERT('2004-9-31' , DATE));370#INSERT INTO t1 (col1) VALUES(CONVERT('2004-9-31' , DATE));
371#--error 1292371#--error ER_TRUNCATED_WRONG_VALUE
372#INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-32' , DATE));372#INSERT INTO t1 (col1) VALUES(CONVERT('2004-10-32' , DATE));
373#--error 1292373#--error ER_TRUNCATED_WRONG_VALUE
374#INSERT INTO t1 (col1) VALUES(CONVERT('2003-02-29' , DATE));374#INSERT INTO t1 (col1) VALUES(CONVERT('2003-02-29' , DATE));
375#--error 1292375#--error ER_TRUNCATED_WRONG_VALUE
376#INSERT INTO t1 (col1) VALUES(CONVERT('2004-13-15',DATE));376#INSERT INTO t1 (col1) VALUES(CONVERT('2004-13-15',DATE));
377377
378# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values378# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
379--error 1292379--error ER_TRUNCATED_WRONG_VALUE
380INSERT INTO t1 (col1) VALUES(CONVERT('0000-00-00',DATE));380INSERT INTO t1 (col1) VALUES(CONVERT('0000-00-00',DATE));
381381
382## Test INSERT with CONVERT to DATETIME into DATETIME382## Test INSERT with CONVERT to DATETIME into DATETIME
@@ -385,52 +385,52 @@
385385
386INSERT INTO t1 (col2) VALUES(CONVERT('0000-10-31 15:30',DATETIME));386INSERT INTO t1 (col2) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
387387
388--error 1292388--error ER_TRUNCATED_WRONG_VALUE
389INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-0 15:30',DATETIME));389INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
390--error 1292390--error ER_TRUNCATED_WRONG_VALUE
391INSERT INTO t1 (col2) VALUES(CONVERT('2004-0-10 15:30',DATETIME));391INSERT INTO t1 (col2) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
392392
393# deactivated because of Bug#8294393# deactivated because of Bug#8294
394# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE394# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
395#--error 1292395#--error ER_TRUNCATED_WRONG_VALUE
396#INSERT INTO t1 (col2) VALUES(CONVERT('2004-9-31 15:30',DATETIME));396#INSERT INTO t1 (col2) VALUES(CONVERT('2004-9-31 15:30',DATETIME));
397#--error 1292397#--error ER_TRUNCATED_WRONG_VALUE
398#INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-32 15:30',DATETIME));398#INSERT INTO t1 (col2) VALUES(CONVERT('2004-10-32 15:30',DATETIME));
399#--error 1292399#--error ER_TRUNCATED_WRONG_VALUE
400#INSERT INTO t1 (col2) VALUES(CONVERT('2003-02-29 15:30',DATETIME));400#INSERT INTO t1 (col2) VALUES(CONVERT('2003-02-29 15:30',DATETIME));
401#--error 1292401#--error ER_TRUNCATED_WRONG_VALUE
402#INSERT INTO t1 (col2) VALUES(CONVERT('2004-13-15 15:30',DATETIME));402#INSERT INTO t1 (col2) VALUES(CONVERT('2004-13-15 15:30',DATETIME));
403403
404# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values404# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
405--error 1292405--error ER_TRUNCATED_WRONG_VALUE
406INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME));406INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME));
407407
408## Test INSERT with CONVERT to DATETIME into DATETIME408## Test INSERT with CONVERT to DATETIME into DATETIME
409# All test cases expected to fail should return 409# All test cases expected to fail should return
410# SQLSTATE 22007 <invalid datetime value>410# SQLSTATE 22007 <invalid datetime value>
411--error 1292411--error ER_TRUNCATED_WRONG_VALUE
412INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME));412INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
413# should return OK413# should return OK
414# We accept this to be a failure414# We accept this to be a failure
415415
416--error 1292416--error ER_TRUNCATED_WRONG_VALUE
417INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-0 15:30',DATETIME));417INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-0 15:30',DATETIME));
418--error 1292418--error ER_TRUNCATED_WRONG_VALUE
419INSERT INTO t1 (col3) VALUES(CONVERT('2004-0-10 15:30',DATETIME));419INSERT INTO t1 (col3) VALUES(CONVERT('2004-0-10 15:30',DATETIME));
420420
421# deactivated because of Bug#8294421# deactivated because of Bug#8294
422# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE422# Bug#8294 Traditional: Misleading error message for invalid CAST to DATE
423#--error 1292423#--error ER_TRUNCATED_WRONG_VALUE
424#INSERT INTO t1 (col3) VALUES(CONVERT('2004-9-31 15:30',DATETIME));424#INSERT INTO t1 (col3) VALUES(CONVERT('2004-9-31 15:30',DATETIME));
425#--error 1292425#--error ER_TRUNCATED_WRONG_VALUE
426#INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-32 15:30',DATETIME));426#INSERT INTO t1 (col3) VALUES(CONVERT('2004-10-32 15:30',DATETIME));
427#--error 1292427#--error ER_TRUNCATED_WRONG_VALUE
428#INSERT INTO t1 (col3) VALUES(CONVERT('2003-02-29 15:30',DATETIME));428#INSERT INTO t1 (col3) VALUES(CONVERT('2003-02-29 15:30',DATETIME));
429#--error 1292429#--error ER_TRUNCATED_WRONG_VALUE
430#INSERT INTO t1 (col3) VALUES(CONVERT('2004-13-15 15:30',DATETIME));430#INSERT INTO t1 (col3) VALUES(CONVERT('2004-13-15 15:30',DATETIME));
431431
432# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values432# Bug#6145: Traditional: CONVERT and CAST should reject zero DATE values
433--error 1292433--error ER_TRUNCATED_WRONG_VALUE
434INSERT INTO t1 (col3) VALUES(CONVERT('0000-00-00',DATETIME));434INSERT INTO t1 (col3) VALUES(CONVERT('0000-00-00',DATETIME));
435435
436drop table t1;436drop table t1;
@@ -440,13 +440,13 @@
440#440#
441441
442create table t1 (col1 date, col2 datetime, col3 timestamp);442create table t1 (col1 date, col2 datetime, col3 timestamp);
443--error 1292443--error ER_TRUNCATED_WRONG_VALUE
444insert into t1 values (0,0,0);444insert into t1 values (0,0,0);
445--error 1292445--error ER_TRUNCATED_WRONG_VALUE
446insert into t1 values (0.0,0.0,0.0);446insert into t1 values (0.0,0.0,0.0);
447--error 1292447--error ER_TRUNCATED_WRONG_VALUE
448insert into t1 (col1) values (convert('0000-00-00',date));448insert into t1 (col1) values (convert('0000-00-00',date));
449--error 1292449--error ER_TRUNCATED_WRONG_VALUE
450insert into t1 (col1) values (cast('0000-00-00' as date));450insert into t1 (col1) values (cast('0000-00-00' as date));
451451
452set sql_mode='no_zero_date';452set sql_mode='no_zero_date';
@@ -456,16 +456,16 @@
456set sql_mode='traditional';456set sql_mode='traditional';
457create table t1 (col1 date);457create table t1 (col1 date);
458insert ignore into t1 values ('0000-00-00');458insert ignore into t1 values ('0000-00-00');
459--error 1292459--error ER_TRUNCATED_WRONG_VALUE
460insert into t1 select * from t1;460insert into t1 select * from t1;
461insert ignore into t1 values ('0000-00-00');461insert ignore into t1 values ('0000-00-00');
462insert ignore into t1 (col1) values (cast('0000-00-00' as date));462insert ignore into t1 (col1) values (cast('0000-00-00' as date));
463--error 1292463--error ER_TRUNCATED_WRONG_VALUE
464insert into t1 select * from t1;464insert into t1 select * from t1;
465--error 1292465--error ER_TRUNCATED_WRONG_VALUE
466alter table t1 modify col1 datetime;466alter table t1 modify col1 datetime;
467alter ignore table t1 modify col1 datetime;467alter ignore table t1 modify col1 datetime;
468--error 1292468--error ER_TRUNCATED_WRONG_VALUE
469insert into t1 select * from t1;469insert into t1 select * from t1;
470select * from t1;470select * from t1;
471drop table t1;471drop table t1;
@@ -474,12 +474,12 @@
474# Bug #5906: handle invalid date due to conversion474# Bug #5906: handle invalid date due to conversion
475#475#
476create table t1 (d date);476create table t1 (d date);
477--error 1292477--error ER_TRUNCATED_WRONG_VALUE
478insert into t1 values ('2000-10-00');478insert into t1 values ('2000-10-00');
479--error 1292479--error ER_TRUNCATED_WRONG_VALUE
480insert into t1 values (1000);480insert into t1 values (1000);
481insert into t1 values ('2000-10-01');481insert into t1 values ('2000-10-01');
482--error 1292482--error ER_TRUNCATED_WRONG_VALUE
483update t1 set d = 1100;483update t1 set d = 1100;
484select * from t1;484select * from t1;
485drop table t1;485drop table t1;
486486
=== modified file 'tests/suite/jp/t/jp_like_utf8.test'
--- tests/suite/jp/t/jp_like_utf8.test 2010-06-22 19:48:34 +0000
+++ tests/suite/jp/t/jp_like_utf8.test 2010-08-27 21:22:40 +0000
@@ -30,15 +30,15 @@
30# jisx0212 supplemental character data30# jisx0212 supplemental character data
3131
32LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;32LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;
33--error 140633--error ER_DATA_TOO_LONG
34LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;34LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;
35LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;35LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;
36LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;36LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;
37--error 140637--error ER_DATA_TOO_LONG
38LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;38LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;
39LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;39LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;
40LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;40LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;
41--error 140641--error ER_DATA_TOO_LONG
42LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;42LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;
43LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;43LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;
4444
4545
=== modified file 'tests/suite/jp/t/jp_select_utf8.test'
--- tests/suite/jp/t/jp_select_utf8.test 2010-06-22 19:48:34 +0000
+++ tests/suite/jp/t/jp_select_utf8.test 2010-08-27 21:22:40 +0000
@@ -30,15 +30,15 @@
30# jisx0212 supplemental character data30# jisx0212 supplemental character data
3131
32LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;32LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;
33--error 140633--error ER_DATA_TOO_LONG
34LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;34LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;
35LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;35LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;
36LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;36LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;
37--error 140637--error ER_DATA_TOO_LONG
38LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;38LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;
39LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;39LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;
40LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;40LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;
41--error 140641--error ER_DATA_TOO_LONG
42LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;42LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;
43LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;43LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;
4444
4545
=== modified file 'tests/suite/jp/t/jp_where_utf8.test'
--- tests/suite/jp/t/jp_where_utf8.test 2010-06-22 19:48:34 +0000
+++ tests/suite/jp/t/jp_where_utf8.test 2010-08-27 21:22:40 +0000
@@ -30,15 +30,15 @@
30# jisx0212 supplemental character data30# jisx0212 supplemental character data
3131
32LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;32LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `T1`;
33--error 140633--error ER_DATA_TOO_LONG
34LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;34LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `ï¼´ï¼’`;
35LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;35LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `T3`;
36LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;36LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼”`;
37--error 140637--error ER_DATA_TOO_LONG
38LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;38LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T5`;
39LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;39LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼–`;
40LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;40LOAD DATA INFILE '../std_data_ln/jisx0201_utf8.dat' INTO TABLE `ï¼´ï¼—`;
41--error 140641--error ER_DATA_TOO_LONG
42LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;42LOAD DATA INFILE '../std_data_ln/jisx0208_utf8.dat' INTO TABLE `T8`;
43LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;43LOAD DATA INFILE '../std_data_ln/jisx0212_utf8.dat' INTO TABLE `ï¼´ï¼™`;
4444
4545
=== modified file 'tests/t/almost_full.test'
--- tests/t/almost_full.test 2010-08-13 17:44:18 +0000
+++ tests/t/almost_full.test 2010-08-27 21:22:40 +0000
@@ -21,11 +21,11 @@
2121
22#DELETE FROM t1 WHERE a=1 or a=5;22#DELETE FROM t1 WHERE a=1 or a=5;
2323
24#--error 111424#--error ER_RECORD_FILE_FULL
25#INSERT INTO t1 SET b=repeat('a',600);25#INSERT INTO t1 SET b=repeat('a',600);
26#CHECK TABLE t1 EXTENDED;26#CHECK TABLE t1 EXTENDED;
2727
28#--error 111428#--error ER_RECORD_FILE_FULL
29#UPDATE t1 SET b=repeat('a', 800) where a=10;29#UPDATE t1 SET b=repeat('a', 800) where a=10;
30#CHECK TABLE t1 EXTENDED;30#CHECK TABLE t1 EXTENDED;
3131
3232
=== modified file 'tests/t/alter_column_drop_default.test'
--- tests/t/alter_column_drop_default.test 2009-05-19 07:45:34 +0000
+++ tests/t/alter_column_drop_default.test 2010-08-27 21:22:40 +0000
@@ -2,7 +2,7 @@
2INSERT INTO t1 values ();2INSERT INTO t1 values ();
3SELECT * FROM t1;3SELECT * FROM t1;
4ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;4ALTER TABLE t1 ALTER COLUMN a DROP DEFAULT;
5--error 13645--error ER_NO_DEFAULT_FOR_FIELD
6INSERT INTO t1 values ();6INSERT INTO t1 values ();
7INSERT INTO t1 (a) VALUES (11);7INSERT INTO t1 (a) VALUES (11);
8SELECT * FROM t1 ORDER BY a;8SELECT * FROM t1 ORDER BY a;
99
=== modified file 'tests/t/alter_table.test'
--- tests/t/alter_table.test 2010-06-08 05:20:09 +0000
+++ tests/t/alter_table.test 2010-08-27 21:22:40 +0000
@@ -522,11 +522,11 @@
522#create table t1(f1 int);522#create table t1(f1 int);
523#alter table t1 add column f2 datetime not null, add column f21 date not null;523#alter table t1 add column f2 datetime not null, add column f21 date not null;
524#insert into t1 values(1,'2000-01-01','2000-01-01');524#insert into t1 values(1,'2000-01-01','2000-01-01');
525#--error 1292525#--error ER_TRUNCATED_WRONG_VALUE
526#alter table t1 add column f3 datetime not null;526#alter table t1 add column f3 datetime not null;
527#--error 1292527#--error ER_TRUNCATED_WRONG_VALUE
528#alter table t1 add column f3 date not null;528#alter table t1 add column f3 date not null;
529#--error 1292529#--error ER_TRUNCATED_WRONG_VALUE
530#alter table t1 add column f4 datetime not null default '2002-02-02',530#alter table t1 add column f4 datetime not null default '2002-02-02',
531# add column f41 date not null;531# add column f41 date not null;
532#alter table t1 add column f4 datetime not null default '2002-02-02',532#alter table t1 add column f4 datetime not null default '2002-02-02',
533533
=== modified file 'tests/t/alter_table_options.test'
--- tests/t/alter_table_options.test 2010-05-12 21:58:06 +0000
+++ tests/t/alter_table_options.test 2010-08-27 21:22:40 +0000
@@ -1,5 +1,5 @@
1CREATE TABLE t1 (a int);1CREATE TABLE t1 (a int);
2--error 16982--error ER_UNKNOWN_ENGINE_OPTION
3ALTER TABLE t1 FOO=BAR, INVALIDFOOBAR=0;3ALTER TABLE t1 FOO=BAR, INVALIDFOOBAR=0;
4SHOW WARNINGS;4SHOW WARNINGS;
5DROP TABLE t1;5DROP TABLE t1;
66
=== modified file 'tests/t/analyze.test'
--- tests/t/analyze.test 2010-05-12 21:58:06 +0000
+++ tests/t/analyze.test 2010-08-27 21:22:40 +0000
@@ -64,9 +64,9 @@
64# Bug #30495: optimize table t1,t2,t3 extended errors64# Bug #30495: optimize table t1,t2,t3 extended errors
65#65#
66#create table t1(a int);66#create table t1(a int);
67#--error 106467#--error ER_PARSE_ERROR
68#analyze table t1 extended;68#analyze table t1 extended;
69#--error 106469#--error ER_PARSE_ERROR
70#optimize table t1 extended;70#optimize table t1 extended;
71#drop table t1;71#drop table t1;
7272
7373
=== modified file 'tests/t/auto_increment.test'
--- tests/t/auto_increment.test 2010-03-09 22:42:17 +0000
+++ tests/t/auto_increment.test 2010-08-27 21:22:40 +0000
@@ -136,7 +136,7 @@
136update t1 set a=0 where b=5;136update t1 set a=0 where b=5;
137select * from t1 order by b;137select * from t1 order by b;
138delete from t1 where a=0;138delete from t1 where a=0;
139--error 1048139--error ER_BAD_NULL_ERROR
140update t1 set a=NULL where b=6;140update t1 set a=NULL where b=6;
141update t1 set a=300 where b=7;141update t1 set a=300 where b=7;
142insert into t1(a,b)values(NULL,8);142insert into t1(a,b)values(NULL,8);
@@ -151,7 +151,7 @@
151update t1 set a=0 where b=12;151update t1 set a=0 where b=12;
152select * from t1 order by b;152select * from t1 order by b;
153delete from t1 where a=0;153delete from t1 where a=0;
154--error 1048154--error ER_BAD_NULL_ERROR
155update t1 set a=NULL where b=13;155update t1 set a=NULL where b=13;
156update t1 set a=500 where b=14;156update t1 set a=500 where b=14;
157select * from t1 order by b;157select * from t1 order by b;
@@ -169,7 +169,7 @@
169169
170create table t1 (a bigint);170create table t1 (a bigint);
171insert into t1 values (1), (2), (3), (0), (0);171insert into t1 values (1), (2), (3), (0), (0);
172--error 1062172--error ER_DUP_ENTRY
173alter table t1 modify a bigint not null auto_increment primary key; 173alter table t1 modify a bigint not null auto_increment primary key;
174select * from t1;174select * from t1;
175drop table t1;175drop table t1;
@@ -198,7 +198,7 @@
198select * from t1;198select * from t1;
199#set sql_mode= '';199#set sql_mode= '';
200alter table t1 modify b varchar(255);200alter table t1 modify b varchar(255);
201--error 1062201--error ER_DUP_ENTRY
202insert into t1 values (0,4);202insert into t1 values (0,4);
203select * from t1;203select * from t1;
204drop table t1;204drop table t1;
205205
=== modified file 'tests/t/binary.test'
--- tests/t/binary.test 2009-11-13 00:56:59 +0000
+++ tests/t/binary.test 2010-08-27 21:22:40 +0000
@@ -88,7 +88,7 @@
88--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/88--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
89show create table t1;89show create table t1;
90drop table t1;90drop table t1;
91--error 106491--error ER_PARSE_ERROR
92create table t2 (a varbinary);92create table t2 (a varbinary);
9393
94# End of 4.1 tests94# End of 4.1 tests
9595
=== modified file 'tests/t/broken_table_proto_file.test'
--- tests/t/broken_table_proto_file.test 2010-03-27 21:22:09 +0000
+++ tests/t/broken_table_proto_file.test 2010-08-27 21:22:40 +0000
@@ -11,9 +11,9 @@
11system echo "this is a junk file for test" >> $MYSQLTEST_VARDIR/master-data/test/t1.dfe ;11system echo "this is a junk file for test" >> $MYSQLTEST_VARDIR/master-data/test/t1.dfe ;
12--replace_column 6 # 7 # 8 # 9 #12--replace_column 6 # 7 # 8 # 9 #
13SHOW TABLE STATUS like 't1';13SHOW TABLE STATUS like 't1';
14--error 169314--error ER_CORRUPT_TABLE_DEFINITION
15show create table t1;15show create table t1;
16--error 169316--error ER_CORRUPT_TABLE_DEFINITION
17drop table if exists t1;17drop table if exists t1;
18system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.dfe;18system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.dfe;
1919
2020
=== modified file 'tests/t/case.test'
--- tests/t/case.test 2009-03-25 09:18:25 +0000
+++ tests/t/case.test 2010-08-27 21:22:40 +0000
@@ -66,14 +66,14 @@
66SHOW CREATE TABLE t1;66SHOW CREATE TABLE t1;
67DROP TABLE t1;67DROP TABLE t1;
6868
69--error 126769--error ER_CANT_AGGREGATE_2COLLATIONS
70SELECT CASE 70SELECT CASE
71 WHEN 1 71 WHEN 1
72 THEN 'a' COLLATE utf8_bin 72 THEN 'a' COLLATE utf8_bin
73 ELSE 'a' COLLATE utf8_swedish_ci73 ELSE 'a' COLLATE utf8_swedish_ci
74 END;74 END;
7575
76--error 127076--error ER_CANT_AGGREGATE_3COLLATIONS
77SELECT CASE 'a' COLLATE utf8_bin77SELECT CASE 'a' COLLATE utf8_bin
78 WHEN 'a' COLLATE utf8_danish_ci THEN 178 WHEN 'a' COLLATE utf8_danish_ci THEN 1
79 WHEN 'a' COLLATE utf8_swedish_ci THEN 279 WHEN 'a' COLLATE utf8_swedish_ci THEN 2
@@ -96,7 +96,7 @@
96#96#
97# Check COALESCE argument types aggregation97# Check COALESCE argument types aggregation
9898
99--error 126799--error ER_CANT_AGGREGATE_2COLLATIONS
100CREATE TABLE t1 SELECT COALESCE('a' COLLATE utf8_swedish_ci,'b' COLLATE utf8_bin);100CREATE TABLE t1 SELECT COALESCE('a' COLLATE utf8_swedish_ci,'b' COLLATE utf8_bin);
101CREATE TABLE t1 SELECT 101CREATE TABLE t1 SELECT
102 COALESCE(1), COALESCE(1.0),COALESCE('a'),102 COALESCE(1), COALESCE(1.0),COALESCE('a'),
103103
=== modified file 'tests/t/cast.test'
--- tests/t/cast.test 2010-03-22 23:04:11 +0000
+++ tests/t/cast.test 2010-08-27 21:22:40 +0000
@@ -37,7 +37,7 @@
37select cast(1000 as CHAR(3));37select cast(1000 as CHAR(3));
3838
39# Should throw an error about 'abc' being too large for a char(2)39# Should throw an error about 'abc' being too large for a char(2)
40--error 129240--error ER_TRUNCATED_WRONG_VALUE
41create table t1 select41create table t1 select
42 cast('ab' AS char) as c1,42 cast('ab' AS char) as c1,
43 cast('a ' AS char) as c2,43 cast('a ' AS char) as c2,
@@ -57,7 +57,7 @@
5757
58# BUG in drizzletest - can't handle these chars right58# BUG in drizzletest - can't handle these chars right
59# # Should throw an error about incorrect59# # Should throw an error about incorrect
60#--error 129260#--error ER_TRUNCATED_WRONG_VALUE
61#create table t1 select61#create table t1 select
62# cast('ÆÇ' AS char) as c1,62# cast('ÆÇ' AS char) as c1,
63# cast('Æ ' AS char) as c2,63# cast('Æ ' AS char) as c2,
6464
=== modified file 'tests/t/comment_column.test'
--- tests/t/comment_column.test 2010-02-19 23:07:45 +0000
+++ tests/t/comment_column.test 2010-08-27 21:22:40 +0000
@@ -62,7 +62,7 @@
6262
6363
64# comment overflow(warning)64# comment overflow(warning)
65--error 147065--error ER_WRONG_STRING_LENGTH
66ALTER TABLE t1 ADD COLUMN c11 INTEGER COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';66ALTER TABLE t1 ADD COLUMN c11 INTEGER COMMENT 'ABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdABCDEfghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
67SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';67SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
68SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';68SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';
@@ -92,7 +92,7 @@
9292
93# comment overflow(warning)93# comment overflow(warning)
94drop table t1;94drop table t1;
95--error 147095--error ER_WRONG_STRING_LENGTH
96create 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) 96create 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)
97) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';97) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
98SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';98SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
@@ -100,11 +100,11 @@
100SELECT index_comment,char_length(index_comment) FROM data_dictionary.indexes WHERE table_name='t1';100SELECT index_comment,char_length(index_comment) FROM data_dictionary.indexes WHERE table_name='t1';
101let $ENGINE=`select variable_value from data_dictionary.global_variables where variable_name='STORAGE_ENGINE'`;101let $ENGINE=`select variable_value from data_dictionary.global_variables where variable_name='STORAGE_ENGINE'`;
102--replace_result $ENGINE ENGINE102--replace_result $ENGINE ENGINE
103--error 1146103--error ER_NO_SUCH_TABLE
104SHOW CREATE TABLE t1;104SHOW CREATE TABLE t1;
105105
106# comment overflow(error)106# comment overflow(error)
107--error 1051107--error ER_BAD_TABLE_ERROR
108DROP TABLE t1;108DROP TABLE t1;
109--error ER_WRONG_STRING_LENGTH109--error ER_WRONG_STRING_LENGTH
110create 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) 110create 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)
111111
=== modified file 'tests/t/comment_index.test'
--- tests/t/comment_index.test 2010-02-19 23:07:45 +0000
+++ tests/t/comment_index.test 2010-08-27 21:22:40 +0000
@@ -57,7 +57,7 @@
5757
5858
59# comment overflow(warning)59# comment overflow(warning)
60--error 147060--error ER_WRONG_STRING_LENGTH
61CREATE INDEX i11 ON t1(c11) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';61CREATE INDEX i11 ON t1(c11) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
62SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';62SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
63SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';63SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';
@@ -66,7 +66,7 @@
66--replace_result $ENGINE ENGINE66--replace_result $ENGINE ENGINE
67SHOW CREATE TABLE t1;67SHOW CREATE TABLE t1;
6868
69--error 147069--error ER_WRONG_STRING_LENGTH
70ALTER TABLE t1 ADD INDEX (c13) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';70ALTER TABLE t1 ADD INDEX (c13) COMMENT 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
71SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';71SELECT table_comment,char_length(table_comment) FROM data_dictionary.tables WHERE table_name='t1';
72SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';72SELECT column_comment,char_length(column_comment) FROM data_dictionary.columns WHERE table_name='t1';
7373
=== modified file 'tests/t/comments.test'
--- tests/t/comments.test 2009-03-03 07:39:39 +0000
+++ tests/t/comments.test 2010-08-27 21:22:40 +0000
@@ -5,7 +5,7 @@
5select 1+2/*hello*/+3;5select 1+2/*hello*/+3;
6select 1 /* long6select 1 /* long
7multi line comment */;7multi line comment */;
8--error 10658--error ER_EMPTY_QUERY
9 ;9 ;
10select 1 /*!32301 +1 */;10select 1 /*!32301 +1 */;
11select 1 /*!72301 +1 */;11select 1 /*!72301 +1 */;
1212
=== modified file 'tests/t/connect.test'
--- tests/t/connect.test 2010-03-03 20:57:45 +0000
+++ tests/t/connect.test 2010-08-27 21:22:40 +0000
@@ -15,7 +15,7 @@
15show tables;15show tables;
1616
17--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT17--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
18--error 104918--error ER_BAD_DB_ERROR
19connect (fail_con,localhost,root,z,test2);19connect (fail_con,localhost,root,z,test2);
20--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT20--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
21connect (fail_con,localhost,root,z,);21connect (fail_con,localhost,root,z,);
@@ -30,13 +30,13 @@
30show tables;30show tables;
3131
32--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT32--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
33--error 104933--error ER_BAD_DB_ERROR
34connect (fail_con,localhost,test,,test2);34connect (fail_con,localhost,test,,test2);
35--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT35--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
36--error 104936--error ER_BAD_DB_ERROR
37connect (fail_con,localhost,test,,"");37connect (fail_con,localhost,test,,"");
38--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT38--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
39--error 104939--error ER_BAD_DB_ERROR
40connect (fail_con,localhost,test,zorro,test2);40connect (fail_con,localhost,test,zorro,test2);
41--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT41--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
42connect (fail_con,localhost,test,zorro,);42connect (fail_con,localhost,test,zorro,);
@@ -45,13 +45,13 @@
4545
4646
47--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT47--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
48--error 104948--error ER_BAD_DB_ERROR
49connect (fail_con,localhost,test,,test2);49connect (fail_con,localhost,test,,test2);
50--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT50--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
51connect (fail_con,localhost,test,,);51connect (fail_con,localhost,test,,);
52--disconnect fail_con52--disconnect fail_con
53--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT53--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
54--error 104954--error ER_BAD_DB_ERROR
55connect (fail_con,localhost,test,zorro,test2);55connect (fail_con,localhost,test,zorro,test2);
56--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT56--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
57connect (fail_con,localhost,test,zorro,);57connect (fail_con,localhost,test,zorro,);
5858
=== modified file 'tests/t/create.test'
--- tests/t/create.test 2010-05-20 00:15:10 +0000
+++ tests/t/create.test 2010-08-27 21:22:40 +0000
@@ -14,7 +14,7 @@
1414
15create table t1 (b char(0) not null);15create table t1 (b char(0) not null);
16create table if not exists t1 (b char(0) not null);16create table if not exists t1 (b char(0) not null);
17--error 104817--error ER_BAD_NULL_ERROR
18insert into t1 values (""),(null);18insert into t1 values (""),(null);
19select * from t1;19select * from t1;
20drop table t1;20drop table t1;
@@ -26,18 +26,18 @@
26# Test of some CREATE TABLE'S that should fail26# Test of some CREATE TABLE'S that should fail
27#27#
2828
29--error 114629--error ER_NO_SUCH_TABLE
30create temporary table t2 engine=MEMORY select * from t1;30create temporary table t2 engine=MEMORY select * from t1;
31--error 114631--error ER_NO_SUCH_TABLE
32create table t2 select auto+1 from t1;32create table t2 select auto+1 from t1;
33drop table if exists t1,t2;33drop table if exists t1,t2;
34--error 116734--error ER_WRONG_KEY_COLUMN
35create table t1 (b char(0) not null, index(b));35create table t1 (b char(0) not null, index(b));
36--error 116336--error ER_TABLE_CANT_HANDLE_BLOB
37create temporary table t1 (a int not null,b text) engine=MEMORY;37create temporary table t1 (a int not null,b text) engine=MEMORY;
38drop table if exists t1;38drop table if exists t1;
3939
40--error 107540--error ER_WRONG_AUTO_KEY
41create temporary table t1 (ordid int not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) engine=MEMORY;41create temporary table t1 (ordid int not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) engine=MEMORY;
4242
43-- error 104943-- error 1049
@@ -52,30 +52,30 @@
52show create table `t1`;52show create table `t1`;
53drop table `a/a`;53drop table `a/a`;
54drop table `t1`;54drop table `t1`;
55--error 110355--error ER_WRONG_TABLE_NAME
56create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);56create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa int);
57--error 105957--error ER_TOO_LONG_IDENT
58create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);58create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);
5959
60#60#
61# Some wrong defaults, so these creates should fail too (Bug #5902)61# Some wrong defaults, so these creates should fail too (Bug #5902)
62#62#
63--error 106763--error ER_INVALID_DEFAULT
64create table t1 (a datetime default now());64create table t1 (a datetime default now());
65--error 129465--error ER_INVALID_ON_UPDATE
66create table t1 (a datetime on update now());66create table t1 (a datetime on update now());
67--error 106767--error ER_INVALID_DEFAULT
68create table t1 (a int default 100 auto_increment);68create table t1 (a int default 100 auto_increment);
69# TODO: Should this really fail? What's wrong with default 1000 ???69# TODO: Should this really fail? What's wrong with default 1000 ???
70#--error 106770#--error ER_INVALID_DEFAULT
71#create table t1 (a int default 1000);71#create table t1 (a int default 1000);
72--error 106772--error ER_INVALID_DEFAULT
73create table t1 (a varchar(5) default 'abcdef');73create table t1 (a varchar(5) default 'abcdef');
7474
75create table t1 (a varchar(5) default 'abcde');75create table t1 (a varchar(5) default 'abcde');
76insert into t1 values();76insert into t1 values();
77select * from t1;77select * from t1;
78--error 106778--error ER_INVALID_DEFAULT
79alter table t1 alter column a set default 'abcdef';79alter table t1 alter column a set default 'abcdef';
80drop table t1;80drop table t1;
8181
@@ -99,13 +99,13 @@
99drop table mysqltest.test2$;99drop table mysqltest.test2$;
100drop database mysqltest;100drop database mysqltest;
101101
102--error 1103102--error ER_WRONG_TABLE_NAME
103create table `` (a int);103create table `` (a int);
104--error 1103104--error ER_WRONG_TABLE_NAME
105drop table if exists ``;105drop table if exists ``;
106--error 1166106--error ER_WRONG_COLUMN_NAME
107create table t1 (`` int);107create table t1 (`` int);
108--error 1280108--error ER_WRONG_NAME_FOR_INDEX
109create table t1 (i int, index `` (i)); 109create table t1 (i int, index `` (i));
110110
111#111#
@@ -144,13 +144,13 @@
144describe t1;144describe t1;
145describe t2;145describe t2;
146drop table if exists t2;146drop table if exists t2;
147--error 1060147--error ER_DUP_FIELDNAME
148create table t2 (a int, a float) select * from t1; 148create table t2 (a int, a float) select * from t1;
149drop table if exists t2;149drop table if exists t2;
150--error 1060150--error ER_DUP_FIELDNAME
151create table t2 (a int) select a as b, a+1 as b from t1; 151create table t2 (a int) select a as b, a+1 as b from t1;
152drop table if exists t2;152drop table if exists t2;
153--error 1060153--error ER_DUP_FIELDNAME
154create table t2 (b int) select a as b, a+1 as b from t1; 154create table t2 (b int) select a as b, a+1 as b from t1;
155drop table if exists t1,t2;155drop table if exists t1,t2;
156156
@@ -162,7 +162,7 @@
162INSERT INTO t1 values (1),(2),(1);162INSERT INTO t1 values (1),(2),(1);
163--error ER_DUP_ENTRY163--error ER_DUP_ENTRY
164CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;164CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
165--error 1146165--error ER_NO_SUCH_TABLE
166SELECT * from t2;166SELECT * from t2;
167DROP TABLE t1;167DROP TABLE t1;
168DROP TABLE IF EXISTS t2;168DROP TABLE IF EXISTS t2;
@@ -189,7 +189,7 @@
189CREATE TEMPORARY TABLE t1 (a int not null);189CREATE TEMPORARY TABLE t1 (a int not null);
190show create table t1;190show create table t1;
191drop table t1;191drop table t1;
192--error 1286192--error ER_UNKNOWN_STORAGE_ENGINE
193SET SESSION storage_engine="gemini";193SET SESSION storage_engine="gemini";
194SELECT @@storage_engine;194SELECT @@storage_engine;
195CREATE TEMPORARY TABLE t1 (a int not null);195CREATE TEMPORARY TABLE t1 (a int not null);
@@ -203,11 +203,11 @@
203#203#
204create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));204create table t1 ( k1 varchar(2), k2 int, primary key(k1,k2));
205insert into t1 values ("a", 1), ("b", 2);205insert into t1 values ("a", 1), ("b", 2);
206--error 1048206--error ER_BAD_NULL_ERROR
207insert into t1 values ("c", NULL);207insert into t1 values ("c", NULL);
208--error 1048208--error ER_BAD_NULL_ERROR
209insert into t1 values (NULL, 3);209insert into t1 values (NULL, 3);
210--error 1048210--error ER_BAD_NULL_ERROR
211insert into t1 values (NULL, NULL);211insert into t1 values (NULL, NULL);
212drop table t1;212drop table t1;
213213
@@ -223,11 +223,11 @@
223#223#
224224
225create table t1 select 1,2,3;225create table t1 select 1,2,3;
226--error 1364226--error ER_NO_DEFAULT_FOR_FIELD
227create table if not exists t1 select 1,2;227create table if not exists t1 select 1,2;
228--error 1136228--error ER_WRONG_VALUE_COUNT_ON_ROW
229create table if not exists t1 select 1,2,3,4;229create table if not exists t1 select 1,2,3,4;
230--error 1364230--error ER_NO_DEFAULT_FOR_FIELD
231create table if not exists t1 select 1;231create table if not exists t1 select 1;
232select * from t1;232select * from t1;
233drop table t1;233drop table t1;
@@ -256,11 +256,11 @@
256# "Table truncated when creating another table name with Spaces"256# "Table truncated when creating another table name with Spaces"
257#257#
258258
259--error 1103259--error ER_WRONG_TABLE_NAME
260create table `t1 `(a int);260create table `t1 `(a int);
261--error 1102261--error ER_WRONG_DB_NAME
262create database `db1 `;262create database `db1 `;
263--error 1166263--error ER_WRONG_COLUMN_NAME
264create table t1(`a ` int);264create table t1(`a ` int);
265265
266#266#
@@ -268,11 +268,11 @@
268# "Parser permits multiple commas without syntax error"268# "Parser permits multiple commas without syntax error"
269#269#
270270
271--error 1064271--error ER_PARSE_ERROR
272create table t1 (a int,);272create table t1 (a int,);
273--error 1064273--error ER_PARSE_ERROR
274create table t1 (a int,,b int);274create table t1 (a int,,b int);
275--error 1064275--error ER_PARSE_ERROR
276create table t1 (,b int);276create table t1 (,b int);
277277
278#278#
@@ -281,7 +281,7 @@
281281
282create table t1 (a int, key(a));282create table t1 (a int, key(a));
283create table t2 (b int, foreign key(b) references t1(a), key(b));283create table t2 (b int, foreign key(b) references t1(a), key(b));
284--error 1217284--error ER_ROW_IS_REFERENCED
285drop table if exists t1,t2;285drop table if exists t1,t2;
286drop table if exists t2,t1;286drop table if exists t2,t1;
287287
@@ -320,15 +320,15 @@
320--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/320--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
321show create table t2;321show create table t2;
322select * from t2;322select * from t2;
323--error 1050323--error ER_TABLE_EXISTS_ERROR
324create table t3 like t1;324create table t3 like t1;
325--error 1050325--error ER_TABLE_EXISTS_ERROR
326create table t3 like mysqltest.t3;326create table t3 like mysqltest.t3;
327--error 1049327--error ER_BAD_DB_ERROR
328create table non_existing_database.t1 like t1;328create table non_existing_database.t1 like t1;
329--error ER_NO_SUCH_TABLE329--error ER_NO_SUCH_TABLE
330create table t3 like non_existing_table;330create table t3 like non_existing_table;
331--error 1050331--error ER_TABLE_EXISTS_ERROR
332create temporary table t3 like t1;332create temporary table t3 like t1;
333drop table t1, t2, t3;333drop table t1, t2, t3;
334drop database mysqltest;334drop database mysqltest;
@@ -341,7 +341,7 @@
341CREATE TEMPORARY TABLE t1 (a int not null);341CREATE TEMPORARY TABLE t1 (a int not null);
342show create table t1;342show create table t1;
343drop table t1;343drop table t1;
344--error 1286344--error ER_UNKNOWN_STORAGE_ENGINE
345SET SESSION storage_engine="gemini";345SET SESSION storage_engine="gemini";
346SELECT @@storage_engine;346SELECT @@storage_engine;
347CREATE TEMPORARY TABLE t1 (a int not null);347CREATE TEMPORARY TABLE t1 (a int not null);
@@ -412,9 +412,9 @@
412#412#
413413
414create table t1(cenum enum('a'));414create table t1(cenum enum('a'));
415--error 1291415--error ER_DUPLICATED_VALUE_IN_TYPE
416create table t2(cenum enum('a','a'));416create table t2(cenum enum('a','a'));
417--error 1291417--error ER_DUPLICATED_VALUE_IN_TYPE
418create table t3(cenum enum('a','A','a','c','c'));418create table t3(cenum enum('a','A','a','c','c'));
419drop table t1;419drop table t1;
420420
@@ -434,9 +434,9 @@
434#434#
435435
436## TODO: Is this really a bug? It works in Drizzle. Should it?436## TODO: Is this really a bug? It works in Drizzle. Should it?
437#--error 1280437#--error ER_WRONG_NAME_FOR_INDEX
438#create table t1 (a int, index `primary` (a));438#create table t1 (a int, index `primary` (a));
439#--error 1280439#--error ER_WRONG_NAME_FOR_INDEX
440#create table t1 (a int, index `PRIMARY` (a));440#create table t1 (a int, index `PRIMARY` (a));
441#441#
442#create table t1 (`primary` int, index(`primary`));442#create table t1 (`primary` int, index(`primary`));
@@ -447,9 +447,9 @@
447#show create table t2;447#show create table t2;
448#448#
449#create table t3 (a int);449#create table t3 (a int);
450#--error 1280450#--error ER_WRONG_NAME_FOR_INDEX
451#alter table t3 add index `primary` (a);451#alter table t3 add index `primary` (a);
452#--error 1280452#--error ER_WRONG_NAME_FOR_INDEX
453#alter table t3 add index `PRIMARY` (a);453#alter table t3 add index `PRIMARY` (a);
454#454#
455#create table t4 (`primary` int);455#create table t4 (`primary` int);
@@ -485,7 +485,7 @@
485# an improper fix is present.485# an improper fix is present.
486#486#
487create table t1 (a int);487create table t1 (a int);
488--error 1093488--error ER_UPDATE_TABLE_USED
489create table t1 select * from t1;489create table t1 select * from t1;
490## TODO: Huh? --error ER_WRONG_OBJECT490## TODO: Huh? --error ER_WRONG_OBJECT
491#create table t2 union = (t1) select * from t1;491#create table t2 union = (t1) select * from t1;
@@ -496,11 +496,11 @@
496#496#
497# Bug#10413: Invalid column name is not rejected497# Bug#10413: Invalid column name is not rejected
498#498#
499--error 1103499--error ER_WRONG_TABLE_NAME
500create table t1(column.name int);500create table t1(column.name int);
501--error 1103501--error ER_WRONG_TABLE_NAME
502create table t1(test.column.name int);502create table t1(test.column.name int);
503--error 1102503--error ER_WRONG_DB_NAME
504create table t1(xyz.t1.name int);504create table t1(xyz.t1.name int);
505create table t1(t1.name int);505create table t1(t1.name int);
506create table t2(test.t2.name int);506create table t2(test.t2.name int);
@@ -573,7 +573,7 @@
573show create table t1;573show create table t1;
574drop table t1;574drop table t1;
575575
576--error 1364576--error ER_NO_DEFAULT_FOR_FIELD
577create table t1 ( 577create table t1 (
578 a varchar(12) collate utf8_bin not null, 578 a varchar(12) collate utf8_bin not null,
579 b int not null, primary key (a)579 b int not null, primary key (a)
@@ -1027,7 +1027,7 @@
1027# to be rewritten to hit the limit1027# to be rewritten to hit the limit
1028#1028#
1029# Ensure limit is really 64 keys1029# Ensure limit is really 64 keys
1030--error 10691030--error ER_TOO_MANY_KEYS
1031alter table t1 add key 1031alter table t1 add key
1032 a065_long_123456789_123456789_123456789_123456789_123456789_1234 (1032 a065_long_123456789_123456789_123456789_123456789_123456789_1234 (
1033 c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);1033 c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16);
@@ -1041,12 +1041,12 @@
1041c16 int, c17 int);1041c16 int, c17 int);
10421042
1043# Get error for max key parts1043# Get error for max key parts
1044--error 10701044--error ER_TOO_MANY_KEY_PARTS
1045alter table t1 add key i1 (1045alter table t1 add key i1 (
1046 c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16, c17);1046 c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16, c17);
10471047
1048# Get error for max key-name length1048# Get error for max key-name length
1049--error 10591049--error ER_TOO_LONG_IDENT
1050alter table t1 add key 1050alter table t1 add key
1051 a001_long_123456789_123456789_123456789_123456789_123456789_12345 (c1);1051 a001_long_123456789_123456789_123456789_123456789_123456789_12345 (c1);
10521052
@@ -1151,24 +1151,24 @@
1151# Test incorrect database names1151# Test incorrect database names
1152#1152#
11531153
1154--error 11021154--error ER_WRONG_DB_NAME
1155CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;1155CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1156--error 11021156--error ER_WRONG_DB_NAME
1157DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;1157DROP DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
11581158
1159# TODO: enable these tests when RENAME DATABASE is implemented.1159# TODO: enable these tests when RENAME DATABASE is implemented.
1160# --error 10491160# --error ER_BAD_DB_ERROR
1161# RENAME DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa TO a;1161# RENAME DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa TO a;
1162# --error 11021162# --error ER_WRONG_DB_NAME
1163# RENAME DATABASE mysqltest TO aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;1163# RENAME DATABASE mysqltest TO aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1164# create database mysqltest;1164# create database mysqltest;
1165# --error 11021165# --error ER_WRONG_DB_NAME
1166# RENAME DATABASE mysqltest TO aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;1166# RENAME DATABASE mysqltest TO aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1167# drop database mysqltest;1167# drop database mysqltest;
11681168
1169--error 11021169--error ER_WRONG_DB_NAME
1170USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;1170USE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
1171--error 11021171--error ER_WRONG_DB_NAME
1172SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;1172SHOW CREATE DATABASE aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
11731173
1174##1174##
@@ -1212,12 +1212,12 @@
1212#1212#
1213# Bug#25629 CREATE TABLE LIKE does not work with INFORMATION_SCHEMA1213# Bug#25629 CREATE TABLE LIKE does not work with INFORMATION_SCHEMA
1214#1214#
1215--error 10051215--error ER_CANT_CREATE_TABLE
1216create table t1 like data_dictionary.processlist;1216create table t1 like data_dictionary.processlist;
1217create table t1 like data_dictionary.processlist engine=innodb;1217create table t1 like data_dictionary.processlist engine=innodb;
1218show create table t1;1218show create table t1;
1219drop table t1;1219drop table t1;
1220--error 10051220--error ER_CANT_CREATE_TABLE
1221create temporary table t1 like data_dictionary.processlist;1221create temporary table t1 like data_dictionary.processlist;
1222create temporary table t1 like data_dictionary.processlist engine=myisam;1222create temporary table t1 like data_dictionary.processlist engine=myisam;
1223show create table t1;1223show create table t1;
@@ -1314,7 +1314,7 @@
1314--echo1314--echo
13151315
1316CREATE TABLE t3(c1 DATETIME NOT NULL);1316CREATE TABLE t3(c1 DATETIME NOT NULL);
1317--error 1686 # Bad datetime1317--error ER_INVALID_DATETIME_VALUE # Bad datetime
1318INSERT INTO t3 VALUES (0);1318INSERT INTO t3 VALUES (0);
13191319
1320--echo1320--echo
13211321
=== modified file 'tests/t/create_schema_options.test'
--- tests/t/create_schema_options.test 2010-05-12 21:58:06 +0000
+++ tests/t/create_schema_options.test 2010-08-27 21:22:40 +0000
@@ -1,12 +1,12 @@
1--error 16991--error ER_UNKNOWN_SCHEMA_OPTION
2CREATE DATABASE foo unknown_key=value;2CREATE DATABASE foo unknown_key=value;
3--error 16993--error ER_UNKNOWN_SCHEMA_OPTION
4CREATE DATABASE foo unknown_key=value, anotheR_unknown_key;4CREATE DATABASE foo unknown_key=value, anotheR_unknown_key;
5SHOW WARNINGS;5SHOW WARNINGS;
6--error 16996--error ER_UNKNOWN_SCHEMA_OPTION
7CREATE DATABASE foo unknown_key=42;7CREATE DATABASE foo unknown_key=42;
88
9--error 16999--error ER_UNKNOWN_SCHEMA_OPTION
10CREATE DATABASE foo unknown_key;10CREATE DATABASE foo unknown_key;
1111
12# These will require us to define schema engines12# These will require us to define schema engines
1313
=== modified file 'tests/t/create_select_column_order.test'
--- tests/t/create_select_column_order.test 2009-05-12 07:37:24 +0000
+++ tests/t/create_select_column_order.test 2010-08-27 21:22:40 +0000
@@ -1,14 +1,14 @@
1create table t1 (a int not null, b int, primary key (a));1create table t1 (a int not null, b int, primary key (a));
2insert into t1 values (1,1);2insert into t1 values (1,1);
3--error 13643--error ER_NO_DEFAULT_FOR_FIELD
4create table if not exists t1 select 2;4create table if not exists t1 select 2;
5select * from t1;5select * from t1;
6drop table t1;6drop table t1;
77
8create table t1 select 1,2,3;8create table t1 select 1,2,3;
9--error 13649--error ER_NO_DEFAULT_FOR_FIELD
10create table if not exists t1 select 1,2;10create table if not exists t1 select 1,2;
11--error 136411--error ER_NO_DEFAULT_FOR_FIELD
12create table if not exists t1 select 1;12create table if not exists t1 select 1;
1313
14select * from t1;14select * from t1;
1515
=== modified file 'tests/t/create_select_tmp.test'
--- tests/t/create_select_tmp.test 2009-06-16 00:53:22 +0000
+++ tests/t/create_select_tmp.test 2010-08-27 21:22:40 +0000
@@ -13,19 +13,19 @@
13INSERT INTO t1 VALUES (1),(2),(1);13INSERT INTO t1 VALUES (1),(2),(1);
14--error ER_DUP_ENTRY14--error ER_DUP_ENTRY
15CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;15CREATE TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
16--error 114616--error ER_NO_SUCH_TABLE
17select * from t2;17select * from t2;
18--error ER_DUP_ENTRY18--error ER_DUP_ENTRY
19CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;19CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=INNODB SELECT a FROM t1;
20--error 114620--error ER_NO_SUCH_TABLE
21select * from t2;21select * from t2;
22--error ER_DUP_ENTRY22--error ER_DUP_ENTRY
23CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;23CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
24--error 114624--error ER_NO_SUCH_TABLE
25select * from t2;25select * from t2;
26--error ER_DUP_ENTRY26--error ER_DUP_ENTRY
27CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;27CREATE TEMPORARY TABLE t2 ( PRIMARY KEY (a) ) ENGINE=MYISAM SELECT a FROM t1;
28--error 114628--error ER_NO_SUCH_TABLE
29select * from t2;29select * from t2;
30drop table t1;30drop table t1;
3131
3232
=== modified file 'tests/t/create_table_options.test'
--- tests/t/create_table_options.test 2010-05-12 21:58:06 +0000
+++ tests/t/create_table_options.test 2010-08-27 21:22:40 +0000
@@ -1,11 +1,11 @@
1--error 16981--error ER_UNKNOWN_ENGINE_OPTION
2CREATE TABLE t1 (a int) FOO=BAR, INVALIDFOOBAR=0;2CREATE TABLE t1 (a int) FOO=BAR, INVALIDFOOBAR=0;
33
4--error 16984--error ER_UNKNOWN_ENGINE_OPTION
5CREATE TABLE t1 (a int) INVALIDFOOBAR=0;5CREATE TABLE t1 (a int) INVALIDFOOBAR=0;
66
7--error 16987--error ER_UNKNOWN_ENGINE_OPTION
8CREATE TABLE t1 (a int) INVALIDFOOBAR=foo;8CREATE TABLE t1 (a int) INVALIDFOOBAR=foo;
99
10--error 169810--error ER_UNKNOWN_ENGINE_OPTION
11CREATE TABLE t1 (a int) INVALIDFOOBAR="foa";11CREATE TABLE t1 (a int) INVALIDFOOBAR="foa";
1212
=== modified file 'tests/t/ctype_utf8.test'
--- tests/t/ctype_utf8.test 2010-05-12 21:58:06 +0000
+++ tests/t/ctype_utf8.test 2010-08-27 21:22:40 +0000
@@ -117,19 +117,19 @@
117# Bug #2368 Multibyte charsets do not check that incoming data is well-formed117# Bug #2368 Multibyte charsets do not check that incoming data is well-formed
118#118#
119create table t1 (s1 char(10));119create table t1 (s1 char(10));
120--error 1366120--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
121insert into t1 values (0x41FF);121insert into t1 values (0x41FF);
122select hex(s1) from t1;122select hex(s1) from t1;
123drop table t1;123drop table t1;
124124
125create table t1 (s1 varchar(10));125create table t1 (s1 varchar(10));
126--error 1366126--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
127insert into t1 values (0x41FF);127insert into t1 values (0x41FF);
128select hex(s1) from t1;128select hex(s1) from t1;
129drop table t1;129drop table t1;
130130
131create table t1 (s1 text);131create table t1 (s1 text);
132--error 1366132--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
133insert into t1 values (0x41FF);133insert into t1 values (0x41FF);
134select hex(s1) from t1;134select hex(s1) from t1;
135drop table t1;135drop table t1;
@@ -138,7 +138,7 @@
138# Bug 2699138# Bug 2699
139# UTF8 breaks primary keys for cols > 333 characters139# UTF8 breaks primary keys for cols > 333 characters
140#140#
141--error 1071141--error ER_TOO_LONG_KEY
142create table t1 (a text, primary key(a(360))) engine=innodb;142create table t1 (a text, primary key(a(360))) engine=innodb;
143143
144#144#
145145
=== modified file 'tests/t/data_dictionary_like_info.test'
--- tests/t/data_dictionary_like_info.test 2010-07-08 22:17:25 +0000
+++ tests/t/data_dictionary_like_info.test 2010-08-27 21:22:40 +0000
@@ -175,15 +175,15 @@
175--error ER_PARSE_ERROR175--error ER_PARSE_ERROR
176alter database data_dictionary;176alter database data_dictionary;
177use data_dictionary;177use data_dictionary;
178#--error 1044178#--error ER_DBACCESS_DENIED_ERROR
179#drop table tables;179#drop table tables;
180#--error 1044180#--error ER_DBACCESS_DENIED_ERROR
181#alter table tables;181#alter table tables;
182#182#
183# Bug #9683 INFORMATION_SCH: Creation of temporary table allowed in Information_schema DB183# Bug #9683 INFORMATION_SCH: Creation of temporary table allowed in Information_schema DB
184#184#
185use data_dictionary;185use data_dictionary;
186--error 1044186--error ER_DBACCESS_DENIED_ERROR
187create temporary table schemas(f1 char(10));187create temporary table schemas(f1 char(10));
188#188#
189#189#
@@ -370,9 +370,9 @@
370#370#
371# Bug#30079 A check for "hidden" I_S tables is flawed371# Bug#30079 A check for "hidden" I_S tables is flawed
372#372#
373#--error 1109373#--error ER_UNKNOWN_TABLE
374#show fields from data_dictionary.table_names;374#show fields from data_dictionary.table_names;
375#--error 1109375#--error ER_UNKNOWN_TABLE
376#show keys from data_dictionary.table_names;376#show keys from data_dictionary.table_names;
377377
378SET max_heap_table_size = DEFAULT;378SET max_heap_table_size = DEFAULT;
379379
=== modified file 'tests/t/dayofmonth.test'
--- tests/t/dayofmonth.test 2009-01-30 04:01:12 +0000
+++ tests/t/dayofmonth.test 2010-08-27 21:22:40 +0000
@@ -16,9 +16,9 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1582 # Wrong parameter count...19--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
20SELECT DAYOFMONTH();20SELECT DAYOFMONTH();
21--error 1582 # Wrong parameter count...21--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
22SELECT DAYOFMONTH(1, 0);22SELECT DAYOFMONTH(1, 0);
2323
24# 24#
@@ -26,23 +26,23 @@
26# produce an error, not a NULL or anything26# produce an error, not a NULL or anything
27# else...27# else...
28#28#
29--error 168629--error ER_INVALID_DATETIME_VALUE
30SELECT DAYOFMONTH("xxx");30SELECT DAYOFMONTH("xxx");
3131
32# Indy, bad dates!32# Indy, bad dates!
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT DAYOFMONTH("0000-00-00"); # No 0000-00-00 dates!...34SELECT DAYOFMONTH("0000-00-00"); # No 0000-00-00 dates!...
35--error 168635--error ER_INVALID_DATETIME_VALUE
36SELECT DAYOFMONTH("0000-01-01"); # No zero year parts36SELECT DAYOFMONTH("0000-01-01"); # No zero year parts
37--error 168637--error ER_INVALID_DATETIME_VALUE
38SELECT DAYOFMONTH("0001-00-01"); # No zero month parts38SELECT DAYOFMONTH("0001-00-01"); # No zero month parts
39--error 168639--error ER_INVALID_DATETIME_VALUE
40SELECT DAYOFMONTH("0001-01-00"); # No zero day parts40SELECT DAYOFMONTH("0001-01-00"); # No zero day parts
41--error 168641--error ER_INVALID_DATETIME_VALUE
42SELECT DAYOFMONTH("2000-02-30"); # No Feb 30th!42SELECT DAYOFMONTH("2000-02-30"); # No Feb 30th!
43--error 168643--error ER_INVALID_DATETIME_VALUE
44SELECT DAYOFMONTH("1900-02-29"); # Not a leap DAYOFMONTH since not divisible evenly by 400...44SELECT DAYOFMONTH("1900-02-29"); # Not a leap DAYOFMONTH since not divisible evenly by 400...
45--error 168645--error ER_INVALID_DATETIME_VALUE
46SELECT DAYOFMONTH('1976-15-15'); # No 15th month!46SELECT DAYOFMONTH('1976-15-15'); # No 15th month!
4747
48# A good date, which should output 148# A good date, which should output 1
4949
=== modified file 'tests/t/dayofyear.test'
--- tests/t/dayofyear.test 2009-01-30 04:01:12 +0000
+++ tests/t/dayofyear.test 2010-08-27 21:22:40 +0000
@@ -16,9 +16,9 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1582 # Wrong parameter count...19--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
20SELECT DAYOFYEAR();20SELECT DAYOFYEAR();
21--error 1582 # Wrong parameter count...21--error ER_WRONG_PARAMCOUNT_TO_FUNCTION # Wrong parameter count...
22SELECT DAYOFYEAR(1, 0);22SELECT DAYOFYEAR(1, 0);
2323
24# 24#
@@ -26,23 +26,23 @@
26# produce an error, not a NULL or anything26# produce an error, not a NULL or anything
27# else...27# else...
28#28#
29--error 168629--error ER_INVALID_DATETIME_VALUE
30SELECT DAYOFYEAR("xxx");30SELECT DAYOFYEAR("xxx");
3131
32# Indy, bad dates!32# Indy, bad dates!
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT DAYOFYEAR("0000-00-00"); # No 0000-00-00 dates!...34SELECT DAYOFYEAR("0000-00-00"); # No 0000-00-00 dates!...
35--error 168635--error ER_INVALID_DATETIME_VALUE
36SELECT DAYOFYEAR("0000-01-01"); # No zero year parts36SELECT DAYOFYEAR("0000-01-01"); # No zero year parts
37--error 168637--error ER_INVALID_DATETIME_VALUE
38SELECT DAYOFYEAR("0001-00-01"); # No zero month parts38SELECT DAYOFYEAR("0001-00-01"); # No zero month parts
39--error 168639--error ER_INVALID_DATETIME_VALUE
40SELECT DAYOFYEAR("0001-01-00"); # No zero day parts40SELECT DAYOFYEAR("0001-01-00"); # No zero day parts
41--error 168641--error ER_INVALID_DATETIME_VALUE
42SELECT DAYOFYEAR("2000-02-30"); # No Feb 30th!42SELECT DAYOFYEAR("2000-02-30"); # No Feb 30th!
43--error 168643--error ER_INVALID_DATETIME_VALUE
44SELECT DAYOFYEAR("1900-02-29"); # Not a leap DAYOFYEAR since not divisible evenly by 400...44SELECT DAYOFYEAR("1900-02-29"); # Not a leap DAYOFYEAR since not divisible evenly by 400...
45--error 168645--error ER_INVALID_DATETIME_VALUE
46SELECT DAYOFYEAR('1976-15-15'); # No 15th month!46SELECT DAYOFYEAR('1976-15-15'); # No 15th month!
4747
48# A good date, which should output 148# A good date, which should output 1
4949
=== modified file 'tests/t/default.test'
--- tests/t/default.test 2010-01-08 06:23:08 +0000
+++ tests/t/default.test 2010-08-27 21:22:40 +0000
@@ -103,7 +103,7 @@
103# multiple-row statement, the preceding rows will have been inserted.103# multiple-row statement, the preceding rows will have been inserted.
104#104#
105create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);105create table bug20691 (i int, d datetime NOT NULL, dn datetime NULL);
106--error 1364106--error ER_NO_DEFAULT_FOR_FIELD
107insert into bug20691 values (7, DEFAULT, DEFAULT), (7, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (7, DEFAULT, DEFAULT);107insert into bug20691 values (7, DEFAULT, DEFAULT), (7, '1975-07-10 07:10:03', '1978-01-13 14:08:51'), (7, DEFAULT, DEFAULT);
108insert into bug20691 values (7, '1975-07-10 07:10:03', DEFAULT);108insert into bug20691 values (7, '1975-07-10 07:10:03', DEFAULT);
109select * from bug20691 order by i asc;109select * from bug20691 order by i asc;
@@ -118,10 +118,10 @@
118 i decimal not null,118 i decimal not null,
119 x int);119 x int);
120insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);120insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 1);
121--error 1364121--error ER_NO_DEFAULT_FOR_FIELD
122insert into bug20691 (x) values (2);122insert into bug20691 (x) values (2);
123insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);123insert into bug20691 values (3, '0007-01-01', 11, 17, '0019-01-01 00:00:00', 23, 3);
124--error 1364124--error ER_NO_DEFAULT_FOR_FIELD
125insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);125insert into bug20691 values (DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, 4);
126select * from bug20691 order by x asc;126select * from bug20691 order by x asc;
127drop table bug20691;127drop table bug20691;
128128
=== modified file 'tests/t/derived.test'
--- tests/t/derived.test 2010-08-21 22:42:44 +0000
+++ tests/t/derived.test 2010-08-27 21:22:40 +0000
@@ -17,15 +17,15 @@
17CREATE TABLE t3 (a int not null, b char (10) not null);17CREATE TABLE t3 (a int not null, b char (10) not null);
18insert into t3 values (3,'f'),(4,'y'),(5,'z'),(6,'c');18insert into t3 values (3,'f'),(4,'y'),(5,'z'),(6,'c');
19select 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;19select 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;
20--error 105420--error ER_BAD_FIELD_ERROR
21SELECT a FROM (SELECT 1 FROM (SELECT 1) a HAVING a=1) b;21SELECT a FROM (SELECT 1 FROM (SELECT 1) a HAVING a=1) b;
22--error 105222--error ER_NON_UNIQ_ERROR
23SELECT a,b as a FROM (SELECT '1' as a,'2' as b) b HAVING a=1;23SELECT a,b as a FROM (SELECT '1' as a,'2' as b) b HAVING a=1;
24SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=2;24SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=2;
25SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=1;25SELECT a,2 as a FROM (SELECT '1' as a) b HAVING a=1;
26--error 105426--error ER_BAD_FIELD_ERROR
27SELECT 1 FROM (SELECT 1) a WHERE a=2;27SELECT 1 FROM (SELECT 1) a WHERE a=2;
28--error 105428--error ER_BAD_FIELD_ERROR
29SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a;29SELECT (SELECT 1) as a FROM (SELECT 1 FROM t1 HAVING a=1) as a;
30--sort_result30--sort_result
31select * from t1 as x1, (select * from t1) as x2;31select * from t1 as x1, (select * from t1) as x2;
@@ -62,13 +62,13 @@
62drop table t1;62drop table t1;
63SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;63SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;
64select * from (select 1 as a) b left join (select 2 as a) c using(a);64select * from (select 1 as a) b left join (select 2 as a) c using(a);
65--error 105465--error ER_BAD_FIELD_ERROR
66SELECT * FROM (SELECT 1 UNION SELECT a) b;66SELECT * FROM (SELECT 1 UNION SELECT a) b;
67--error 105467--error ER_BAD_FIELD_ERROR
68SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;68SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
69--error 105469--error ER_BAD_FIELD_ERROR
70SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;70SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
71--error 105471--error ER_BAD_FIELD_ERROR
72select 1 from (select 2) a order by 0;72select 1 from (select 2) a order by 0;
7373
74#74#
@@ -200,7 +200,7 @@
200#200#
201CREATE TABLE t1 (a char(10), b char(10));201CREATE TABLE t1 (a char(10), b char(10));
202INSERT INTO t1 VALUES ('root','localhost'), ('root','%');202INSERT INTO t1 VALUES ('root','localhost'), ('root','%');
203--error 1242203--error ER_SUBQUERY_NO_1_ROW
204SELECT * FROM (SELECT (SELECT a.a FROM t1 AS a WHERE a.a = b.a) FROM t1 AS b) AS c;204SELECT * FROM (SELECT (SELECT a.a FROM t1 AS a WHERE a.a = b.a) FROM t1 AS b) AS c;
205DROP TABLE t1;205DROP TABLE t1;
206#206#
207207
=== modified file 'tests/t/drop.test'
--- tests/t/drop.test 2010-03-03 04:58:12 +0000
+++ tests/t/drop.test 2010-08-27 21:22:40 +0000
@@ -6,13 +6,13 @@
6drop database if exists client_test_db;6drop database if exists client_test_db;
7--enable_warnings7--enable_warnings
88
9--error 10519--error ER_BAD_TABLE_ERROR
10drop table t1;10drop table t1;
11create table t1(n int);11create table t1(n int);
12insert into t1 values(1);12insert into t1 values(1);
13create temporary table t1( n int);13create temporary table t1( n int);
14insert into t1 values(2);14insert into t1 values(2);
15--error 105015--error ER_TABLE_EXISTS_ERROR
16create table t1(n int);16create table t1(n int);
17drop table t1;17drop table t1;
18select * from t1;18select * from t1;
@@ -37,14 +37,14 @@
37# (tableN instead on tN)37# (tableN instead on tN)
38#38#
39use mysqltest;39use mysqltest;
40--error 105140--error ER_BAD_TABLE_ERROR
41drop table table1, table2, table3, table4, table5, table6,41drop table table1, table2, table3, table4, table5, table6,
42table7, table8, table9, table10, table11, table12, table13,42table7, table8, table9, table10, table11, table12, table13,
43table14, table15, table16, table17, table18, table19, table20,43table14, table15, table16, table17, table18, table19, table20,
44table21, table22, table23, table24, table25, table26, table27,44table21, table22, table23, table24, table25, table26, table27,
45table28;45table28;
4646
47--error 105147--error ER_BAD_TABLE_ERROR
48drop table table1, table2, table3, table4, table5, table6,48drop table table1, table2, table3, table4, table5, table6,
49table7, table8, table9, table10, table11, table12, table13,49table7, table8, table9, table10, table11, table12, table13,
50table14, table15, table16, table17, table18, table19, table20,50table14, table15, table16, table17, table18, table19, table20,
@@ -56,24 +56,24 @@
5656
57# test drop/create database and FLUSH TABLES WITH READ LOCK57# test drop/create database and FLUSH TABLES WITH READ LOCK
58flush tables with read lock;58flush tables with read lock;
59--error 1209,122359--error ER_DROP_DB_WITH_READ_LOCK, ER_CANT_UPDATE_WITH_READLOCK
60create database mysqltest;60create database mysqltest;
61unlock tables;61unlock tables;
62create database mysqltest;62create database mysqltest;
63show databases;63show databases;
64flush tables with read lock;64flush tables with read lock;
65--error 1208,122365--error ER_DROP_DB_WITH_READ_LOCK, ER_CANT_UPDATE_WITH_READLOCK
66drop database mysqltest;66drop database mysqltest;
67unlock tables;67unlock tables;
68drop database mysqltest;68drop database mysqltest;
69show databases;69show databases;
70--error 100870--error ER_DB_DROP_EXISTS
71drop database mysqltest;71drop database mysqltest;
7272
73# test create table and FLUSH TABLES WITH READ LOCK73# test create table and FLUSH TABLES WITH READ LOCK
74drop table t1;74drop table t1;
75flush tables with read lock;75flush tables with read lock;
76--error 122376--error ER_CANT_UPDATE_WITH_READLOCK
77create table t1(n int);77create table t1(n int);
78unlock tables;78unlock tables;
79create table t1(n int);79create table t1(n int);
8080
=== modified file 'tests/t/errors.test'
--- tests/t/errors.test 2008-12-16 07:07:50 +0000
+++ tests/t/errors.test 2010-08-27 21:22:40 +0000
@@ -5,28 +5,28 @@
5--disable_warnings5--disable_warnings
6drop table if exists t1;6drop table if exists t1;
7--enable_warnings7--enable_warnings
8--error 11468--error ER_NO_SUCH_TABLE
9insert into t1 values(1);9insert into t1 values(1);
10--error 114610--error ER_NO_SUCH_TABLE
11delete from t1;11delete from t1;
12--error 114612--error ER_NO_SUCH_TABLE
13update t1 set a=1;13update t1 set a=1;
14create table t1 (a int);14create table t1 (a int);
15--error 105415--error ER_BAD_FIELD_ERROR
16select count(test.t1.b) from t1;16select count(test.t1.b) from t1;
17--error 105417--error ER_BAD_FIELD_ERROR
18select count(not_existing_database.t1) from t1;18select count(not_existing_database.t1) from t1;
19--error 105419--error ER_BAD_FIELD_ERROR
20select count(not_existing_database.t1.a) from t1;20select count(not_existing_database.t1.a) from t1;
21--error 1044,114621--error ER_DBACCESS_DENIED_ERROR, ER_NO_SUCH_TABLE
22select count(not_existing_database.t1.a) from not_existing_database.t1;22select count(not_existing_database.t1.a) from not_existing_database.t1;
23--error 105423--error ER_BAD_FIELD_ERROR
24select 1 from t1 order by 2;24select 1 from t1 order by 2;
25--error 105425--error ER_BAD_FIELD_ERROR
26select 1 from t1 group by 2;26select 1 from t1 group by 2;
27--error 105427--error ER_BAD_FIELD_ERROR
28select 1 from t1 order by t1.b;28select 1 from t1 order by t1.b;
29--error 105429--error ER_BAD_FIELD_ERROR
30select count(*),b from t1;30select count(*),b from t1;
31drop table t1;31drop table t1;
3232
@@ -35,9 +35,9 @@
35#35#
36# Bug #6080: Error message for a field with a display width that is too long36# Bug #6080: Error message for a field with a display width that is too long
37#37#
38--error 106438--error ER_PARSE_ERROR
39create table t1 (a int(256));39create table t1 (a int(256));
40--error 107440--error ER_TOO_BIG_FIELDLENGTH
41create table t1 (a varchar(66000));41create table t1 (a varchar(66000));
4242
43#43#
4444
=== modified file 'tests/t/explain.test'
--- tests/t/explain.test 2009-06-16 00:53:22 +0000
+++ tests/t/explain.test 2010-08-27 21:22:40 +0000
@@ -15,9 +15,9 @@
15explain select * from t1 use key (str,str) where str="foo";15explain select * from t1 use key (str,str) where str="foo";
1616
17#The following should give errors17#The following should give errors
18--error 117618--error ER_KEY_DOES_NOT_EXITS
19explain select * from t1 use key (str,str,foo) where str="foo";19explain select * from t1 use key (str,str,foo) where str="foo";
20--error 117620--error ER_KEY_DOES_NOT_EXITS
21explain select * from t1 ignore key (str,str,foo) where str="foo";21explain select * from t1 ignore key (str,str,foo) where str="foo";
22drop table t1;22drop table t1;
2323
2424
=== modified file 'tests/t/flush.test'
--- tests/t/flush.test 2010-03-03 20:57:45 +0000
+++ tests/t/flush.test 2010-08-27 21:22:40 +0000
@@ -29,7 +29,7 @@
29select * from t1;29select * from t1;
30connection con2;30connection con2;
31flush tables with read lock;31flush tables with read lock;
32--error 122332--error ER_CANT_UPDATE_WITH_READLOCK
33drop table t2;33drop table t2;
34connection con1;34connection con1;
35send drop table t2;35send drop table t2;
3636
=== modified file 'tests/t/func_date_add.test'
--- tests/t/func_date_add.test 2009-06-16 00:53:22 +0000
+++ tests/t/func_date_add.test 2010-08-27 21:22:40 +0000
@@ -55,9 +55,9 @@
55insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));55insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
56# These will all work now, and we'll end up with some NULL entries in the56# These will all work now, and we'll end up with some NULL entries in the
57# table and some warnings.57# table and some warnings.
58--error 144158--error ER_DATETIME_FUNCTION_OVERFLOW
59insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);59insert into t1 (d) select date_sub('2000-01-01', INTERVAL 2001 YEAR);
60--error 144160--error ER_DATETIME_FUNCTION_OVERFLOW
61insert into t1 (d) select date_add('2000-01-01',interval 8000 year);61insert into t1 (d) select date_add('2000-01-01',interval 8000 year);
62insert into t1 values (date_add(NULL, INTERVAL 1 DAY));62insert into t1 values (date_add(NULL, INTERVAL 1 DAY));
63insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));63insert into t1 values (date_add('2000-01-04', INTERVAL NULL DAY));
6464
=== modified file 'tests/t/func_default.test'
--- tests/t/func_default.test 2008-12-06 22:41:03 +0000
+++ tests/t/func_default.test 2010-08-27 21:22:40 +0000
@@ -25,7 +25,7 @@
25#25#
26CREATE TABLE t1 (id int, s varchar(20));26CREATE TABLE t1 (id int, s varchar(20));
27INSERT INTO t1 VALUES (1, 'one'), (2, 'two'), (3, 'three');27INSERT INTO t1 VALUES (1, 'one'), (2, 'two'), (3, 'three');
28--error 136428--error ER_NO_DEFAULT_FOR_FIELD
29SELECT s, 32 AS mi FROM t1 GROUP BY s HAVING DEFAULT(mi) IS NULL;29SELECT s, 32 AS mi FROM t1 GROUP BY s HAVING DEFAULT(mi) IS NULL;
30DROP TABLE t1;30DROP TABLE t1;
3131
3232
=== modified file 'tests/t/func_gconcat.test'
--- tests/t/func_gconcat.test 2009-03-25 09:18:25 +0000
+++ tests/t/func_gconcat.test 2010-08-27 21:22:40 +0000
@@ -69,9 +69,9 @@
6969
70# Test errors70# Test errors
7171
72--error 111172--error ER_INVALID_GROUP_FUNC_USE
73select group_concat(sum(c)) from t1 group by grp;73select group_concat(sum(c)) from t1 group by grp;
74--error 105474--error ER_BAD_FIELD_ERROR
75select grp,group_concat(c order by 2) from t1 group by grp;75select grp,group_concat(c order by 2) from t1 group by grp;
7676
77drop table t1;77drop table t1;
7878
=== modified file 'tests/t/func_sapdb.test'
--- tests/t/func_sapdb.test 2009-02-28 17:49:22 +0000
+++ tests/t/func_sapdb.test 2010-08-27 21:22:40 +0000
@@ -33,7 +33,7 @@
33select datediff("1997-11-30 23:59:59.000001","1997-12-31");33select datediff("1997-11-30 23:59:59.000001","1997-12-31");
3434
35# This will give an error35# This will give an error
36--error 1686 # Bad datetime36--error ER_INVALID_DATETIME_VALUE # Bad datetime
37select datediff("1997-11-31 23:59:59.000001","1997-12-31");37select datediff("1997-11-31 23:59:59.000001","1997-12-31");
38select datediff("1997-11-30 23:59:59.000001",null);38select datediff("1997-11-30 23:59:59.000001",null);
3939
4040
=== modified file 'tests/t/func_str.test'
--- tests/t/func_str.test 2010-08-18 21:57:15 +0000
+++ tests/t/func_str.test 2010-08-27 21:22:40 +0000
@@ -294,9 +294,9 @@
294#294#
295295
296create table t1 (c1 INT, c2 INT);296create table t1 (c1 INT, c2 INT);
297--error 1264297--error ER_WARN_DATA_OUT_OF_RANGE
298insert into t1 values ('21474836461','21474836461');298insert into t1 values ('21474836461','21474836461');
299--error 1264299--error ER_WARN_DATA_OUT_OF_RANGE
300insert into t1 values ('-21474836461','-21474836461');300insert into t1 values ('-21474836461','-21474836461');
301select * from t1;301select * from t1;
302drop table t1;302drop table t1;
@@ -335,7 +335,7 @@
335 PRIMARY KEY (id)335 PRIMARY KEY (id)
336) ENGINE=MyISAM;336) ENGINE=MyISAM;
337337
338--error 1264338--error ER_WARN_DATA_OUT_OF_RANGE
339INSERT INTO t1 VALUES ('0','16307858876001849059');339INSERT INTO t1 VALUES ('0','16307858876001849059');
340340
341SELECT CONV('e251273eb74a8ee3', 16, 10);341SELECT CONV('e251273eb74a8ee3', 16, 10);
342342
=== modified file 'tests/t/func_time.test'
--- tests/t/func_time.test 2010-08-21 22:42:44 +0000
+++ tests/t/func_time.test 2010-08-27 21:22:40 +0000
@@ -14,7 +14,7 @@
14select date_format("1997-01-02", concat("%M %W %D ","%Y %y %m %d %h %i %s %w"));14select date_format("1997-01-02", concat("%M %W %D ","%Y %y %m %d %h %i %s %w"));
15select dayofmonth("1997-01-02"),dayofmonth(19970323);15select dayofmonth("1997-01-02"),dayofmonth(19970323);
16select month("1997-01-02"),year("98-02-03"),dayofyear("1997-12-31");16select month("1997-01-02"),year("98-02-03"),dayofyear("1997-12-31");
17--error 1686 # No more bad dates!17--error ER_INVALID_DATETIME_VALUE # No more bad dates!
18select month("2001-02-00"),year("2001-01-01");18select month("2001-02-00"),year("2001-01-01");
19select DAYOFYEAR("1997-03-03"), QUARTER(980303);19select DAYOFYEAR("1997-03-03"), QUARTER(980303);
20select HOUR("1997-03-03 23:03:22"), MINUTE("23:03:22"), SECOND(230322);20select HOUR("1997-03-03 23:03:22"), MINUTE("23:03:22"), SECOND(230322);
@@ -92,10 +92,10 @@
92select extract(DAY FROM "1999-01-02");92select extract(DAY FROM "1999-01-02");
93select extract(DAY_HOUR FROM "1999-01-02 10:11:12");93select extract(DAY_HOUR FROM "1999-01-02 10:11:12");
94# The following is an interval, not a time!94# The following is an interval, not a time!
95--error 1686 # Bad datetime95--error ER_INVALID_DATETIME_VALUE # Bad datetime
96select extract(DAY_MINUTE FROM "02 10:11:12");96select extract(DAY_MINUTE FROM "02 10:11:12");
97# The following is an interval, not a time!97# The following is an interval, not a time!
98--error 1686 # Bad datetime98--error ER_INVALID_DATETIME_VALUE # Bad datetime
99select extract(DAY_SECOND FROM "225 10:11:12");99select extract(DAY_SECOND FROM "225 10:11:12");
100select extract(HOUR FROM "1999-01-02 10:11:12");100select extract(HOUR FROM "1999-01-02 10:11:12");
101select extract(HOUR_MINUTE FROM "10:11:12");101select extract(HOUR_MINUTE FROM "10:11:12");
@@ -103,7 +103,7 @@
103select extract(MINUTE FROM "10:11:12");103select extract(MINUTE FROM "10:11:12");
104select extract(MINUTE_SECOND FROM "10:11:12");104select extract(MINUTE_SECOND FROM "10:11:12");
105select extract(SECOND FROM "1999-01-02 10:11:12");105select extract(SECOND FROM "1999-01-02 10:11:12");
106--error 1686 # Bad datetime106--error ER_INVALID_DATETIME_VALUE # Bad datetime
107select extract(MONTH FROM "2001-02-00");107select extract(MONTH FROM "2001-02-00");
108108
109#109#
@@ -160,9 +160,9 @@
160160
161CREATE TEMPORARY TABLE t1 (updated text) ENGINE=MyISAM;161CREATE TEMPORARY TABLE t1 (updated text) ENGINE=MyISAM;
162INSERT INTO t1 VALUES ('');162INSERT INTO t1 VALUES ('');
163--error 1686 # "" is not a date!163--error ER_INVALID_DATETIME_VALUE # "" is not a date!
164SELECT month(updated) from t1;164SELECT month(updated) from t1;
165--error 1686 # "" is not a date for pete's sake.165--error ER_INVALID_DATETIME_VALUE # "" is not a date for pete's sake.
166SELECT year(updated) from t1;166SELECT year(updated) from t1;
167drop table t1;167drop table t1;
168168
@@ -173,21 +173,21 @@
173173
174create table t1 (d date, dt datetime, t timestamp, c char(10));174create table t1 (d date, dt datetime, t timestamp, c char(10));
175insert into t1 values (null, null, null, null);175insert into t1 values (null, null, null, null);
176--error 1686 # Bad dates...176--error ER_INVALID_DATETIME_VALUE # Bad dates...
177insert into t1 values ("0000-00-00", "0000-00-00", "0000-00-00", "0000-00-00");177insert into t1 values ("0000-00-00", "0000-00-00", "0000-00-00", "0000-00-00");
178--error 1686 # 0000-00-00 is a bad date178--error ER_INVALID_DATETIME_VALUE # 0000-00-00 is a bad date
179select dayofyear("0000-00-00"),dayofyear(d),dayofyear(dt),dayofyear(t),dayofyear(c) from t1;179select dayofyear("0000-00-00"),dayofyear(d),dayofyear(dt),dayofyear(t),dayofyear(c) from t1;
180--error 1686 # 0000-00-00 is a bad date180--error ER_INVALID_DATETIME_VALUE # 0000-00-00 is a bad date
181select dayofmonth("0000-00-00"),dayofmonth(d),dayofmonth(dt),dayofmonth(t),dayofmonth(c) from t1;181select dayofmonth("0000-00-00"),dayofmonth(d),dayofmonth(dt),dayofmonth(t),dayofmonth(c) from t1;
182--error 1686 # 0000-00-00 is not a damn date.182--error ER_INVALID_DATETIME_VALUE # 0000-00-00 is not a damn date.
183select month("0000-00-00"),month(d),month(dt),month(t),month(c) from t1;183select month("0000-00-00"),month(d),month(dt),month(t),month(c) from t1;
184--error 1686 # 0000-00-00 not a date184--error ER_INVALID_DATETIME_VALUE # 0000-00-00 not a date
185select quarter("0000-00-00"),quarter(d),quarter(dt),quarter(t),quarter(c) from t1;185select quarter("0000-00-00"),quarter(d),quarter(dt),quarter(t),quarter(c) from t1;
186--error 1686 # Argh. 0000-00-00 is not a date.186--error ER_INVALID_DATETIME_VALUE # Argh. 0000-00-00 is not a date.
187select year("0000-00-00"),year(d),year(dt),year(t),year(c) from t1;187select year("0000-00-00"),year(d),year(dt),year(t),year(c) from t1;
188--error 1686 # Bad datetime188--error ER_INVALID_DATETIME_VALUE # Bad datetime
189select to_days("0000-00-00"),to_days(d),to_days(dt),to_days(c) from t1;189select to_days("0000-00-00"),to_days(d),to_days(dt),to_days(c) from t1;
190--error 1686 # Ugh. bad datetime190--error ER_INVALID_DATETIME_VALUE # Ugh. bad datetime
191select extract(MONTH FROM "0000-00-00"),extract(MONTH FROM d),extract(MONTH FROM dt),extract(MONTH FROM t),extract(MONTH FROM c) from t1;191select extract(MONTH FROM "0000-00-00"),extract(MONTH FROM d),extract(MONTH FROM dt),extract(MONTH FROM t),extract(MONTH FROM c) from t1;
192drop table t1;192drop table t1;
193193
@@ -243,19 +243,19 @@
243# check for invalid dates243# check for invalid dates
244244
245# bad year245# bad year
246--error 1685 # Bad timestamp246--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
247select unix_timestamp('2039-01-20 01:00:00');247select unix_timestamp('2039-01-20 01:00:00');
248--error 1685 # Bad timestamp248--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
249select unix_timestamp('1968-01-20 01:00:00');249select unix_timestamp('1968-01-20 01:00:00');
250# bad month250# bad month
251--error 1685 # Bad timestamp251--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
252select unix_timestamp('2038-02-10 01:00:00');252select unix_timestamp('2038-02-10 01:00:00');
253--error 1685 # Bad timestamp253--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
254select unix_timestamp('1969-11-20 01:00:00');254select unix_timestamp('1969-11-20 01:00:00');
255# bad day255# bad day
256--error 1685 # Bad timestamp256--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
257select unix_timestamp('2038-01-20 01:00:00');257select unix_timestamp('2038-01-20 01:00:00');
258--error 1685 # Bad timestamp258--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
259select unix_timestamp('1969-12-30 01:00:00');259select unix_timestamp('1969-12-30 01:00:00');
260260
261#261#
@@ -358,7 +358,7 @@
358# test for last_day358# test for last_day
359select last_day('2000-02-05');359select last_day('2000-02-05');
360select last_day('2002-12-31');360select last_day('2002-12-31');
361--error 1686 # Bad date361--error ER_INVALID_DATETIME_VALUE # Bad date
362select last_day('2003-03-32');362select last_day('2003-03-32');
363select last_day('2003-04-01');363select last_day('2003-04-01');
364select last_day('2001-01-01 01:01:01');364select last_day('2001-01-01 01:01:01');
@@ -399,11 +399,11 @@
399# Bug #10568399# Bug #10568
400#400#
401401
402--error 1686 # Bad date402--error ER_INVALID_DATETIME_VALUE # Bad date
403select last_day('2005-00-00');403select last_day('2005-00-00');
404--error 1686 # Bad date404--error ER_INVALID_DATETIME_VALUE # Bad date
405select last_day('2005-00-01');405select last_day('2005-00-01');
406--error 1686 # Bad date406--error ER_INVALID_DATETIME_VALUE # Bad date
407select last_day('2005-01-00');407select last_day('2005-01-00');
408408
409#409#
@@ -426,7 +426,7 @@
426drop table t1;426drop table t1;
427427
428# check if EXTRACT() handles out-of-range values correctly428# check if EXTRACT() handles out-of-range values correctly
429--error 1686 # Bad datetime429--error ER_INVALID_DATETIME_VALUE # Bad datetime
430SELECT EXTRACT(HOUR FROM '100000:02:03');430SELECT EXTRACT(HOUR FROM '100000:02:03');
431431
432#432#
@@ -447,7 +447,7 @@
447# Bug #23653: crash if last_day('0000-00-00')447# Bug #23653: crash if last_day('0000-00-00')
448#448#
449449
450--error 1686 # Bad date450--error ER_INVALID_DATETIME_VALUE # Bad date
451select last_day('0000-00-00');451select last_day('0000-00-00');
452452
453--echo End of 4.1 tests453--echo End of 4.1 tests
454454
=== modified file 'tests/t/group_by.test'
--- tests/t/group_by.test 2010-08-23 19:49:47 +0000
+++ tests/t/group_by.test 2010-08-27 21:22:40 +0000
@@ -82,7 +82,7 @@
8282
83INSERT INTO t1 VALUES (1,'1970-01-01','1997-10-17 00:00:00',2529,1,21000,11886,'check',0,'F',16200,6);83INSERT INTO t1 VALUES (1,'1970-01-01','1997-10-17 00:00:00',2529,1,21000,11886,'check',0,'F',16200,6);
8484
85--error 105685--error ER_WRONG_GROUP_FIELD
86SELECT 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;86SELECT 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;
8787
88drop table t1;88drop table t1;
@@ -168,7 +168,7 @@
168# KEY votes (votes)168# KEY votes (votes)
169#);169#);
170#170#
171#--error 1265171#--error ER_WARN_DATA_TRUNCATED
172#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);172#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);
173#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);173#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);
174#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);174#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);
175175
=== modified file 'tests/t/having.test'
--- tests/t/having.test 2009-06-16 00:53:22 +0000
+++ tests/t/having.test 2010-08-27 21:22:40 +0000
@@ -207,7 +207,7 @@
207select count(*) as count_col1 from t1 group by col1 having col1 = 10;207select count(*) as count_col1 from t1 group by col1 having col1 = 10;
208select count(*) as count_col1 from t1 as tmp1 group by col1 having col1 = 10;208select count(*) as count_col1 from t1 as tmp1 group by col1 having col1 = 10;
209select count(*) from t1 group by col2 having col2 = 'hello';209select count(*) from t1 group by col2 having col2 = 'hello';
210--error 1054210--error ER_BAD_FIELD_ERROR
211select count(*) from t1 group by col2 having col1 = 10;211select count(*) from t1 group by col2 having col1 = 10;
212select col1 as count_col1 from t1 as tmp1 group by col1 having col1 = 10;212select col1 as count_col1 from t1 as tmp1 group by col1 having col1 = 10;
213select col1 as count_col1 from t1 as tmp1 group by col1 having count_col1 = 10;213select col1 as count_col1 from t1 as tmp1 group by col1 having count_col1 = 10;
@@ -221,10 +221,10 @@
221select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having count_col1 = 10;221select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having count_col1 = 10;
222select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col2 = 'hello';222select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col2 = 'hello';
223select col1 as count_col1,col2 as group_col2 from t1 as tmp1 group by col1,col2 having group_col2 = 'hello';223select col1 as count_col1,col2 as group_col2 from t1 as tmp1 group by col1,col2 having group_col2 = 'hello';
224--error 1064224--error ER_PARSE_ERROR
225select sum(col1) as co12 from t1 group by col2 having col2 10; 225select sum(col1) as co12 from t1 group by col2 having col2 10;
226select sum(col1) as co2, count(col2) as cc from t1 group by col1 having col1 =10; 226select sum(col1) as co2, count(col2) as cc from t1 group by col1 having col1 =10;
227--error 1054227--error ER_BAD_FIELD_ERROR
228select t2.col2 from t2 group by t2.col1, t2.col2 having t1.col1 <= 10;228select t2.col2 from t2 group by t2.col1, t2.col2 having t1.col1 <= 10;
229229
230230
@@ -273,7 +273,7 @@
273273
274# nested queries with HAVING, inner having column resolved in outer FROM clause274# nested queries with HAVING, inner having column resolved in outer FROM clause
275# the outer having column is not referenced in GROUP BY which results in an error275# the outer having column is not referenced in GROUP BY which results in an error
276--error 1054276--error ER_BAD_FIELD_ERROR
277select t1.col1 from t1277select t1.col1 from t1
278where t1.col2 in 278where t1.col2 in
279 (select t2.col2 from t2 279 (select t2.col2 from t2
@@ -302,7 +302,7 @@
302# correlated subqueries - inner having column 't1.col2' resolves to302# correlated subqueries - inner having column 't1.col2' resolves to
303# the outer FROM clause, which cannot be used because the outer query303# the outer FROM clause, which cannot be used because the outer query
304# is grouped304# is grouped
305--error 1054305--error ER_BAD_FIELD_ERROR
306select sum(col1) from t1306select sum(col1) from t1
307group by col_t1307group by col_t1
308having col_t1 in (select sum(t2.col1) from t2308having col_t1 in (select sum(t2.col1) from t2
@@ -318,11 +318,11 @@
318#318#
319# queries with joins and ambiguous column names319# queries with joins and ambiguous column names
320#320#
321--error 1052321--error ER_NON_UNIQ_ERROR
322select t1.col1, t2.col1 from t1, t2 where t1.col1 = t2.col1322select t1.col1, t2.col1 from t1, t2 where t1.col1 = t2.col1
323group by t1.col1, t2.col1 having col1 = 2;323group by t1.col1, t2.col1 having col1 = 2;
324324
325--error 1052325--error ER_NON_UNIQ_ERROR
326select t1.col1*10+t2.col1 from t1,t2 where t1.col1=t2.col1326select t1.col1*10+t2.col1 from t1,t2 where t1.col1=t2.col1
327group by t1.col1, t2.col1 having col1 = 2;327group by t1.col1, t2.col1 having col1 = 2;
328328
329329
=== modified file 'tests/t/heap.test'
--- tests/t/heap.test 2010-06-22 19:48:34 +0000
+++ tests/t/heap.test 2010-08-27 21:22:40 +0000
@@ -215,10 +215,10 @@
215create temporary table t1 (v varchar(10), c char(10), t varchar(50));215create temporary table t1 (v varchar(10), c char(10), t varchar(50));
216insert into t1 values('+ ', '+ ', '+ ');216insert into t1 values('+ ', '+ ', '+ ');
217set @a=repeat(' ',20);217set @a=repeat(' ',20);
218--error 1406218--error ER_DATA_TOO_LONG
219insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));219insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
220set @a=repeat(' ',10);220set @a=repeat(' ',10);
221--error 1406221--error ER_DATA_TOO_LONG
222insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));222insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
223set @a=repeat(' ',9);223set @a=repeat(' ',9);
224insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));224insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
@@ -315,7 +315,7 @@
315insert into t1 values ('a '),('a '),('a '),('a ');315insert into t1 values ('a '),('a '),('a '),('a ');
316--error ER_DUP_ENTRY316--error ER_DUP_ENTRY
317insert into t1 values ('a ');317insert into t1 values ('a ');
318--error 1406318--error ER_DATA_TOO_LONG
319insert into t1 values ('a ');319insert into t1 values ('a ');
320--error ER_DUP_ENTRY320--error ER_DUP_ENTRY
321insert into t1 values ('a ');321insert into t1 values ('a ');
@@ -393,7 +393,7 @@
393insert into t1 values ('a '),('a '),('a '),('a ');393insert into t1 values ('a '),('a '),('a '),('a ');
394--error ER_DUP_ENTRY394--error ER_DUP_ENTRY
395insert into t1 values ('a ');395insert into t1 values ('a ');
396--error 1406396--error ER_DATA_TOO_LONG
397insert into t1 values ('a ');397insert into t1 values ('a ');
398--error ER_DUP_ENTRY398--error ER_DUP_ENTRY
399insert into t1 values ('a ');399insert into t1 values ('a ');
@@ -436,7 +436,7 @@
436select * from t1;436select * from t1;
437drop table t1;437drop table t1;
438438
439--error 1075439--error ER_WRONG_AUTO_KEY
440create temporary table t1 (a int not null, b int not null auto_increment,440create temporary table t1 (a int not null, b int not null auto_increment,
441 primary key(a, b)) engine=MEMORY;441 primary key(a, b)) engine=MEMORY;
442442
443443
=== modified file 'tests/t/heap_var.test'
--- tests/t/heap_var.test 2010-05-11 04:37:30 +0000
+++ tests/t/heap_var.test 2010-08-27 21:22:40 +0000
@@ -51,7 +51,7 @@
5151
52select count(*) from t1;52select count(*) from t1;
5353
54--error 106254--error ER_DUP_ENTRY
55insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');55insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
5656
57--replace_column 1 # 6 # 7 # 8 # 9 # 10 #57--replace_column 1 # 6 # 7 # 8 # 9 # 10 #
5858
=== modified file 'tests/t/hour.test'
--- tests/t/hour.test 2009-01-30 04:01:12 +0000
+++ tests/t/hour.test 2010-08-27 21:22:40 +0000
@@ -16,11 +16,11 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1064 19--error ER_PARSE_ERROR
20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
21# the SQL parser, which considers HOUR a keyword before being a function symbol21# the SQL parser, which considers HOUR a keyword before being a function symbol
22SELECT HOUR();22SELECT HOUR();
23--error 106423--error ER_PARSE_ERROR
24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
25# the SQL parser, which considers HOUR a keyword before being a function symbol25# the SQL parser, which considers HOUR a keyword before being a function symbol
26SELECT HOUR(1, 0);26SELECT HOUR(1, 0);
@@ -30,7 +30,7 @@
30# produce an error, not a NULL or anything30# produce an error, not a NULL or anything
31# else...31# else...
32#32#
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT HOUR("xxx");34SELECT HOUR("xxx");
3535
36# 36#
@@ -39,25 +39,25 @@
39# The following are all bad dates, with no possibility of interpreting39# The following are all bad dates, with no possibility of interpreting
40# the values as TIME-only components.40# the values as TIME-only components.
41#41#
42--error 168642--error ER_INVALID_DATETIME_VALUE
43SELECT HOUR("0000-00-00"); # No 0000-00-00 dates!...43SELECT HOUR("0000-00-00"); # No 0000-00-00 dates!...
44--error 168644--error ER_INVALID_DATETIME_VALUE
45SELECT HOUR("0000-01-01"); # No zero year parts45SELECT HOUR("0000-01-01"); # No zero year parts
46--error 168646--error ER_INVALID_DATETIME_VALUE
47SELECT HOUR("0001-00-01"); # No zero month parts47SELECT HOUR("0001-00-01"); # No zero month parts
48--error 168648--error ER_INVALID_DATETIME_VALUE
49SELECT HOUR("0001-01-00"); # No zero day parts49SELECT HOUR("0001-01-00"); # No zero day parts
50--error 168650--error ER_INVALID_DATETIME_VALUE
51SELECT HOUR("2000-02-30"); # No Feb 30th!51SELECT HOUR("2000-02-30"); # No Feb 30th!
52--error 168652--error ER_INVALID_DATETIME_VALUE
53SELECT HOUR("1900-02-29"); # Not a leap HOUR since not divisible evenly by 400...53SELECT HOUR("1900-02-29"); # Not a leap HOUR since not divisible evenly by 400...
54--error 168654--error ER_INVALID_DATETIME_VALUE
55SELECT HOUR('1976-15-15'); # No 15th month!55SELECT HOUR('1976-15-15'); # No 15th month!
56--error 168656--error ER_INVALID_DATETIME_VALUE
57SELECT HOUR('23:59:70'); # No 70th second!57SELECT HOUR('23:59:70'); # No 70th second!
58--error 168658--error ER_INVALID_DATETIME_VALUE
59SELECT HOUR('23:70:59'); # No 70th minute!59SELECT HOUR('23:70:59'); # No 70th minute!
60--error 168660--error ER_INVALID_DATETIME_VALUE
61SELECT HOUR('26:00:00'); # No 26th hour!61SELECT HOUR('26:00:00'); # No 26th hour!
6262
63# A good date, which cannot be interpreted as a TIME component. Should return 0.63# A good date, which cannot be interpreted as a TIME component. Should return 0.
6464
=== modified file 'tests/t/innodb.test'
--- tests/t/innodb.test 2010-08-24 16:57:49 +0000
+++ tests/t/innodb.test 2010-08-27 21:22:40 +0000
@@ -157,12 +157,12 @@
157select n from t1;157select n from t1;
158savepoint savept3;158savepoint savept3;
159rollback to savepoint savept2;159rollback to savepoint savept2;
160--error 1305160--error ER_SP_DOES_NOT_EXIST
161rollback to savepoint savept3;161rollback to savepoint savept3;
162rollback to savepoint savept2;162rollback to savepoint savept2;
163release savepoint `my_savepoint`;163release savepoint `my_savepoint`;
164select n from t1;164select n from t1;
165-- error 1305165--error 1305
166rollback to savepoint `my_savepoint`;166rollback to savepoint `my_savepoint`;
167rollback to savepoint savept2;167rollback to savepoint savept2;
168insert into t1 values (8);168insert into t1 values (8);
@@ -184,7 +184,7 @@
184flush tables with read lock;184flush tables with read lock;
185#185#
186# Current code can't handle a read lock in middle of transaction186# Current code can't handle a read lock in middle of transaction
187#--error 1223;187#--error ER_CANT_UPDATE_WITH_READLOCK
188commit;188commit;
189unlock tables;189unlock tables;
190commit;190commit;
@@ -540,7 +540,7 @@
540commit;540commit;
541drop database mysqltest;541drop database mysqltest;
542# Don't check error message542# Don't check error message
543--error 1049543--error ER_BAD_DB_ERROR
544show tables from mysqltest;544show tables from mysqltest;
545545
546#546#
@@ -869,7 +869,7 @@
869create index id2 on t2 (id);869create index id2 on t2 (id);
870show create table t2;870show create table t2;
871drop index id2 on t2;871drop index id2 on t2;
872--error 1025,1025872--error ER_ERROR_ON_RENAME, ER_ERROR_ON_RENAME
873drop index id on t2;873drop index id on t2;
874show create table t2;874show create table t2;
875drop table t2;875drop table t2;
@@ -923,22 +923,22 @@
923#923#
924# Bug #6126: Duplicate columns in keys gives misleading error message924# Bug #6126: Duplicate columns in keys gives misleading error message
925#925#
926--error 1060926--error ER_DUP_FIELDNAME
927create table t1 (c char(10), index (c,c)) engine=innodb;927create table t1 (c char(10), index (c,c)) engine=innodb;
928--error 1060928--error ER_DUP_FIELDNAME
929create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1)) engine=innodb;929create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1)) engine=innodb;
930--error 1060930--error ER_DUP_FIELDNAME
931create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2)) engine=innodb;931create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2)) engine=innodb;
932--error 1060932--error ER_DUP_FIELDNAME
933create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1)) engine=innodb;933create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1)) engine=innodb;
934create table t1 (c1 char(10), c2 char(10)) engine=innodb;934create table t1 (c1 char(10), c2 char(10)) engine=innodb;
935--error 1060935--error ER_DUP_FIELDNAME
936alter table t1 add key (c1,c1);936alter table t1 add key (c1,c1);
937--error 1060937--error ER_DUP_FIELDNAME
938alter table t1 add key (c2,c1,c1);938alter table t1 add key (c2,c1,c1);
939--error 1060939--error ER_DUP_FIELDNAME
940alter table t1 add key (c1,c2,c1);940alter table t1 add key (c1,c2,c1);
941--error 1060941--error ER_DUP_FIELDNAME
942alter table t1 add key (c1,c1,c2);942alter table t1 add key (c1,c1,c2);
943drop table t1;943drop table t1;
944944
@@ -1197,7 +1197,7 @@
1197 id INT PRIMARY KEY1197 id INT PRIMARY KEY
1198) ENGINE=InnoDB;1198) ENGINE=InnoDB;
11991199
1200--error 1005,10051200--error ER_CANT_CREATE_TABLE, ER_CANT_CREATE_TABLE
1201CREATE TEMPORARY TABLE t21201CREATE TEMPORARY TABLE t2
1202(1202(
1203 id INT NOT NULL PRIMARY KEY,1203 id INT NOT NULL PRIMARY KEY,
@@ -1251,16 +1251,16 @@
1251drop table t1, t2, t3, t4;1251drop table t1, t2, t3, t4;
12521252
1253# these should be refused1253# these should be refused
1254--error 10711254--error ER_TOO_LONG_KEY
1255create table t1 (col1 varchar(768) primary key)1255create table t1 (col1 varchar(768) primary key)
1256 engine = innodb;1256 engine = innodb;
1257--error 10711257--error ER_TOO_LONG_KEY
1258create table t2 (col1 varbinary(1024) primary key)1258create table t2 (col1 varbinary(1024) primary key)
1259 engine = innodb;1259 engine = innodb;
1260--error 10711260--error ER_TOO_LONG_KEY
1261create table t3 (col1 text, primary key(col1(768)))1261create table t3 (col1 text, primary key(col1(768)))
1262 engine = innodb;1262 engine = innodb;
1263--error 10711263--error ER_TOO_LONG_KEY
1264create table t4 (col1 blob, primary key(col1(1024)))1264create table t4 (col1 blob, primary key(col1(1024)))
1265 engine = innodb;1265 engine = innodb;
12661266
@@ -1279,23 +1279,23 @@
1279 CONSTRAINT c1 FOREIGN KEY (v) REFERENCES t1(id)1279 CONSTRAINT c1 FOREIGN KEY (v) REFERENCES t1(id)
1280) ENGINE=InnoDB;1280) ENGINE=InnoDB;
12811281
1282--error 14521282--error ER_NO_REFERENCED_ROW_2
1283INSERT INTO t2 VALUES(2);1283INSERT INTO t2 VALUES(2);
12841284
1285INSERT INTO t1 VALUES(1);1285INSERT INTO t1 VALUES(1);
1286INSERT INTO t2 VALUES(1);1286INSERT INTO t2 VALUES(1);
12871287
1288--error 14511288--error ER_ROW_IS_REFERENCED_2
1289DELETE FROM t1 WHERE id = 1;1289DELETE FROM t1 WHERE id = 1;
12901290
1291--error 12171291--error ER_ROW_IS_REFERENCED
1292DROP TABLE t1;1292DROP TABLE t1;
12931293
1294SET FOREIGN_KEY_CHECKS=0;1294SET FOREIGN_KEY_CHECKS=0;
1295DROP TABLE t1;1295DROP TABLE t1;
1296SET FOREIGN_KEY_CHECKS=1;1296SET FOREIGN_KEY_CHECKS=1;
12971297
1298--error 14521298--error ER_NO_REFERENCED_ROW_2
1299INSERT INTO t2 VALUES(3);1299INSERT INTO t2 VALUES(3);
13001300
1301DROP TABLE t2;1301DROP TABLE t2;
@@ -1580,12 +1580,12 @@
1580#1580#
1581# S-lock to records (2,2),(4,2), and (6,2) should not be released in a update1581# S-lock to records (2,2),(4,2), and (6,2) should not be released in a update
1582#1582#
1583--error 12051583--error ER_LOCK_WAIT_TIMEOUT
1584select * from t1 where a = 2 and b = 2 for update;1584select * from t1 where a = 2 and b = 2 for update;
1585#1585#
1586# X-lock to record (1,1),(3,1),(5,1) should not be released in a update1586# X-lock to record (1,1),(3,1),(5,1) should not be released in a update
1587#1587#
1588--error 12051588--error ER_LOCK_WAIT_TIMEOUT
1589connection a;1589connection a;
1590commit;1590commit;
1591connection b;1591connection b;
@@ -1715,39 +1715,39 @@
1715create table t10(a int not null, b int, primary key(a)) engine=innodb select * from t2 for update;1715create table t10(a int not null, b int, primary key(a)) engine=innodb select * from t2 for update;
17161716
1717connection b;1717connection b;
1718--error 12051718--error ER_LOCK_WAIT_TIMEOUT
1719reap;1719reap;
17201720
1721connection c;1721connection c;
1722--error 12051722--error ER_LOCK_WAIT_TIMEOUT
1723reap;1723reap;
17241724
1725connection d;1725connection d;
1726--error 12051726--error ER_LOCK_WAIT_TIMEOUT
1727reap;1727reap;
17281728
1729connection e;1729connection e;
1730--error 12051730--error ER_LOCK_WAIT_TIMEOUT
1731reap;1731reap;
17321732
1733connection f;1733connection f;
1734--error 12051734--error ER_LOCK_WAIT_TIMEOUT
1735reap;1735reap;
17361736
1737connection g;1737connection g;
1738--error 12051738--error ER_LOCK_WAIT_TIMEOUT
1739reap;1739reap;
17401740
1741connection h;1741connection h;
1742--error 12051742--error ER_LOCK_WAIT_TIMEOUT
1743reap;1743reap;
17441744
1745connection i;1745connection i;
1746--error 12051746--error ER_LOCK_WAIT_TIMEOUT
1747reap;1747reap;
17481748
1749connection j;1749connection j;
1750--error 12051750--error ER_LOCK_WAIT_TIMEOUT
1751reap;1751reap;
17521752
1753connection a;1753connection a;
@@ -1767,7 +1767,7 @@
1767drop table t1, t2, t3, t5, t6, t8, t9;1767drop table t1, t2, t3, t5, t6, t8, t9;
17681768
1769# bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"1769# bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"
1770--error 10051770--error ER_CANT_CREATE_TABLE
1771CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;1771CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
17721772
1773#1773#
@@ -1844,7 +1844,7 @@
1844--replace_regex /'[^']*test\/#sql-[0-9a-f_]*'/'#sql-temporary'/1844--replace_regex /'[^']*test\/#sql-[0-9a-f_]*'/'#sql-temporary'/
1845# Embedded server doesn't chdir to data directory1845# Embedded server doesn't chdir to data directory
1846--replace_result $MYSQLTEST_VARDIR . master-data/ ''1846--replace_result $MYSQLTEST_VARDIR . master-data/ ''
1847--error 10251847--error ER_ERROR_ON_RENAME
1848ALTER TABLE t2 MODIFY a INT NOT NULL;1848ALTER TABLE t2 MODIFY a INT NOT NULL;
1849DELETE FROM t1;1849DELETE FROM t1;
1850DROP TABLE t2,t1;1850DROP TABLE t2,t1;
18511851
=== modified file 'tests/t/insert.test'
--- tests/t/insert.test 2010-04-20 18:23:07 +0000
+++ tests/t/insert.test 2010-08-27 21:22:40 +0000
@@ -33,7 +33,7 @@
33create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);33create table t1 (a int not null auto_increment, primary key (a), t timestamp null, c char(10) default "hello", i int);
34insert into t1 values (default,default,default,default);34insert into t1 values (default,default,default,default);
35insert into t1 values (default,default,default,default);35insert into t1 values (default,default,default,default);
36--error 1685 # Bad timestamp36--error ER_INVALID_UNIX_TIMESTAMP_VALUE # Bad timestamp
37insert into t1 values (4,0,"a",5);37insert into t1 values (4,0,"a",5);
38insert into t1 values (default,default,default,default);38insert into t1 values (default,default,default,default);
39select a,t is not null,c,i from t1;39select a,t is not null,c,i from t1;
@@ -116,7 +116,7 @@
116 }116 }
117enable_query_log;117enable_query_log;
118select count(*) from t2;118select count(*) from t2;
119--error 1697119--error ER_USE_SQL_BIG_RESULT
120insert into t2 select t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;120insert into t2 select t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
121insert into t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;121insert into t2 select SQL_BIG_RESULT t1.* from t1, t2 t, t3 where t1.id1 = t.id2 and t.id2 = t3.id3;
122select count(*) from t2;122select count(*) from t2;
@@ -131,19 +131,19 @@
131insert into t1 SET a=1, b=a+1;131insert into t1 SET a=1, b=a+1;
132insert into t1 (a,b) select 1,2;132insert into t1 (a,b) select 1,2;
133INSERT INTO t1 ( a ) SELECT 0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);133INSERT INTO t1 ( a ) SELECT 0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);
134--error 1110134--error ER_FIELD_SPECIFIED_TWICE
135replace into t1 (a,a) select 100, 'hundred';135replace into t1 (a,a) select 100, 'hundred';
136--error 1110136--error ER_FIELD_SPECIFIED_TWICE
137insert into t1 (a,b,b) values (1,1,1);137insert into t1 (a,b,b) values (1,1,1);
138--error 1136138--error ER_WRONG_VALUE_COUNT_ON_ROW
139insert into t1 (a,a) values (1,1,1);139insert into t1 (a,a) values (1,1,1);
140--error 1110140--error ER_FIELD_SPECIFIED_TWICE
141insert into t1 (a,a) values (1,1);141insert into t1 (a,a) values (1,1);
142--error 1110142--error ER_FIELD_SPECIFIED_TWICE
143insert into t1 SET a=1,b=2,a=1;143insert into t1 SET a=1,b=2,a=1;
144--error 1110144--error ER_FIELD_SPECIFIED_TWICE
145insert into t1 (b,b) select 1,2;145insert into t1 (b,b) select 1,2;
146--error 1110146--error ER_FIELD_SPECIFIED_TWICE
147INSERT INTO t1 (b,b) SELECT 0,0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);147INSERT INTO t1 (b,b) SELECT 0,0 ON DUPLICATE KEY UPDATE a = a + VALUES (a);
148drop table t1;148drop table t1;
149149
150150
=== modified file 'tests/t/insert_select.test'
--- tests/t/insert_select.test 2010-02-15 18:29:31 +0000
+++ tests/t/insert_select.test 2010-08-27 21:22:40 +0000
@@ -89,7 +89,7 @@
89select * from t1;89select * from t1;
90insert into t1 select t2.a from t1,t2;90insert into t1 select t2.a from t1,t2;
91select * from t1;91select * from t1;
92--error 106692--error ER_NONUNIQ_TABLE
93insert into t1 select * from t1,t1;93insert into t1 select * from t1,t1;
94drop table t1,t2;94drop table t1,t2;
9595
@@ -194,11 +194,11 @@
194insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= a + 10;194insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= a + 10;
195195
196#Some error cases196#Some error cases
197--error 1052197--error ER_NON_UNIQ_ERROR
198insert into t1 select t2.a from t2 on duplicate key update a= a + t2.b;198insert into t1 select t2.a from t2 on duplicate key update a= a + t2.b;
199--error 1054199--error ER_BAD_FIELD_ERROR
200insert into t1 select t2.a from t2 on duplicate key update t2.a= a + t2.b;200insert into t1 select t2.a from t2 on duplicate key update t2.a= a + t2.b;
201--error 1054201--error ER_BAD_FIELD_ERROR
202insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= t1.a + t2.b;202insert into t1 select t2.a from t2 group by t2.a on duplicate key update a= t1.a + t2.b;
203drop table t1,t2,t3;203drop table t1,t2,t3;
204204
@@ -218,9 +218,9 @@
218create table t1(x int, y int);218create table t1(x int, y int);
219create table t2(x int, z int);219create table t2(x int, z int);
220insert into t1(x,y) select x,z from t2 on duplicate key update x=values(x);220insert into t1(x,y) select x,z from t2 on duplicate key update x=values(x);
221--error 1054221--error ER_BAD_FIELD_ERROR
222insert into t1(x,y) select x,z from t2 on duplicate key update x=values(z);222insert into t1(x,y) select x,z from t2 on duplicate key update x=values(z);
223--error 1054223--error ER_BAD_FIELD_ERROR
224insert into t1(x,y) select x,z from t2 on duplicate key update x=values(t2.x);224insert into t1(x,y) select x,z from t2 on duplicate key update x=values(t2.x);
225drop table t1,t2; 225drop table t1,t2;
226226
227227
=== modified file 'tests/t/insert_update.test'
--- tests/t/insert_update.test 2010-04-05 23:46:43 +0000
+++ tests/t/insert_update.test 2010-08-27 21:22:40 +0000
@@ -93,7 +93,7 @@
93INSERT t1 SET a=5 ON DUPLICATE KEY UPDATE b=0;93INSERT t1 SET a=5 ON DUPLICATE KEY UPDATE b=0;
94--sorted_result94--sorted_result
95SELECT * FROM t1;95SELECT * FROM t1;
96--error 105296--error ER_NON_UNIQ_ERROR
97INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=c+VALUES(a);97INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=c+VALUES(a);
98INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=t1.c+VALUES(t1.a);98INSERT t1 SELECT a,b,c FROM t2 WHERE d=2 ON DUPLICATE KEY UPDATE c=t1.c+VALUES(t1.a);
99--sorted_result99--sorted_result
@@ -113,9 +113,9 @@
113select * from t1;113select * from t1;
114insert into t1 select 1 on duplicate key update a=2;114insert into t1 select 1 on duplicate key update a=2;
115select * from t1;115select * from t1;
116--error 1052116--error ER_NON_UNIQ_ERROR
117insert into t1 select a from t1 on duplicate key update a=a+1 ;117insert into t1 select a from t1 on duplicate key update a=a+1 ;
118--error 1052118--error ER_NON_UNIQ_ERROR
119insert ignore into t1 select a from t1 on duplicate key update a=t1.a+1 ;119insert ignore into t1 select a from t1 on duplicate key update a=t1.a+1 ;
120drop table t1;120drop table t1;
121121
@@ -187,13 +187,13 @@
187#187#
188CREATE TABLE t1 (a INT PRIMARY KEY, b INT NOT NULL);188CREATE TABLE t1 (a INT PRIMARY KEY, b INT NOT NULL);
189189
190--error 1364190--error ER_NO_DEFAULT_FOR_FIELD
191INSERT INTO t1 (a) VALUES (1);191INSERT INTO t1 (a) VALUES (1);
192192
193--error 1364193--error ER_NO_DEFAULT_FOR_FIELD
194INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE a = b;194INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE a = b;
195195
196--error 1364196--error ER_NO_DEFAULT_FOR_FIELD
197INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE b = b;197INSERT INTO t1 (a) VALUES (1) ON DUPLICATE KEY UPDATE b = b;
198198
199SELECT * FROM t1;199SELECT * FROM t1;
@@ -292,7 +292,7 @@
292SELECT * FROM t1;292SELECT * FROM t1;
293CREATE TABLE t2 (id INT, c1 INT);293CREATE TABLE t2 (id INT, c1 INT);
294INSERT INTO t2 VALUES (1,NULL), (2,2);294INSERT INTO t2 VALUES (1,NULL), (2,2);
295--error 1048295--error ER_BAD_NULL_ERROR
296INSERT INTO t1 (id,c1) SELECT 1,NULL296INSERT INTO t1 (id,c1) SELECT 1,NULL
297 ON DUPLICATE KEY UPDATE c1=NULL;297 ON DUPLICATE KEY UPDATE c1=NULL;
298SELECT * FROM t1;298SELECT * FROM t1;
299299
=== modified file 'tests/t/join.test'
--- tests/t/join.test 2010-08-21 22:42:44 +0000
+++ tests/t/join.test 2010-08-27 21:22:40 +0000
@@ -113,11 +113,11 @@
113insert into t1 values(1),(2);113insert into t1 values(1),(2);
114select 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);114select 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);
115--replace_result "31 tables" "XX tables" "61 tables" "XX tables"115--replace_result "31 tables" "XX tables" "61 tables" "XX tables"
116--error 1116116--error ER_TOO_MANY_TABLES
117select 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);117select 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);
118select 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);118select 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);
119--replace_result "31 tables" "XX tables" "61 tables" "XX tables"119--replace_result "31 tables" "XX tables" "61 tables" "XX tables"
120--error 1116120--error ER_TOO_MANY_TABLES
121select 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);121select 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);
122drop table t1;122drop table t1;
123123
124124
=== modified file 'tests/t/join_outer.test'
--- tests/t/join_outer.test 2010-08-21 22:42:44 +0000
+++ tests/t/join_outer.test 2010-08-27 21:22:40 +0000
@@ -36,13 +36,13 @@
36select t1.*,t2.*,t3.a from t1 left join t2 on (t1.a=t2.a) left join t1 as t3 on (t2.a=t3.a);36select t1.*,t2.*,t3.a from t1 left join t2 on (t1.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
3737
38# The next query should rearange the left joins to get this to work38# The next query should rearange the left joins to get this to work
39--error 105439--error ER_BAD_FIELD_ERROR
40explain 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);40explain 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);
41--error 105441--error ER_BAD_FIELD_ERROR
42select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);42select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t1.a=t3.a);
4343
44# The next query should give an error in MySQL44# The next query should give an error in MySQL
45--error 105445--error ER_BAD_FIELD_ERROR
46select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t2.a=t3.a);46select t1.*,t2.*,t3.a from t1 left join t2 on (t3.a=t2.a) left join t1 as t3 on (t2.a=t3.a);
4747
48# Test of inner join48# Test of inner join
@@ -294,7 +294,7 @@
294insert into t4 values (1,1);294insert into t4 values (1,1);
295insert into t5 values (1,1);295insert into t5 values (1,1);
296296
297--error 1054297--error ER_BAD_FIELD_ERROR
298explain 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;298explain 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;
299299
300drop table t1,t2,t3,t4,t5;300drop table t1,t2,t3,t4,t5;
301301
=== modified file 'tests/t/key.test'
--- tests/t/key.test 2009-11-13 00:56:59 +0000
+++ tests/t/key.test 2010-08-27 21:22:40 +0000
@@ -183,7 +183,7 @@
183#183#
184184
185CREATE TABLE t1 (c VARCHAR(10) NOT NULL,i INT PRIMARY KEY NOT NULL AUTO_INCREMENT, UNIQUE (c,i));185CREATE TABLE t1 (c VARCHAR(10) NOT NULL,i INT PRIMARY KEY NOT NULL AUTO_INCREMENT, UNIQUE (c,i));
186--error 1048186--error ER_BAD_NULL_ERROR
187INSERT INTO t1 (c) VALUES (NULL),(NULL);187INSERT INTO t1 (c) VALUES (NULL),(NULL);
188SELECT * FROM t1;188SELECT * FROM t1;
189INSERT INTO t1 (c) VALUES ('a'),('a');189INSERT INTO t1 (c) VALUES ('a'),('a');
@@ -286,29 +286,29 @@
286# create dedicated error code for this and286# create dedicated error code for this and
287# and change my_printf_error() to my_error287# and change my_printf_error() to my_error
288288
289--error 1391289--error ER_KEY_PART_0
290create table t1 (c char(10), index (c(0)));290create table t1 (c char(10), index (c(0)));
291291
292#292#
293# Bug #6126: Duplicate columns in keys should fail293# Bug #6126: Duplicate columns in keys should fail
294# Bug #6252: (dup)294# Bug #6252: (dup)
295#295#
296--error 1060296--error ER_DUP_FIELDNAME
297create table t1 (c char(10), index (c,c));297create table t1 (c char(10), index (c,c));
298--error 1060298--error ER_DUP_FIELDNAME
299create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1));299create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1));
300--error 1060300--error ER_DUP_FIELDNAME
301create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2));301create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2));
302--error 1060302--error ER_DUP_FIELDNAME
303create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1));303create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1));
304create table t1 (c1 char(10), c2 char(10));304create table t1 (c1 char(10), c2 char(10));
305--error 1060305--error ER_DUP_FIELDNAME
306alter table t1 add key (c1,c1);306alter table t1 add key (c1,c1);
307--error 1060307--error ER_DUP_FIELDNAME
308alter table t1 add key (c2,c1,c1);308alter table t1 add key (c2,c1,c1);
309--error 1060309--error ER_DUP_FIELDNAME
310alter table t1 add key (c1,c2,c1);310alter table t1 add key (c1,c2,c1);
311--error 1060311--error ER_DUP_FIELDNAME
312alter table t1 add key (c1,c1,c2);312alter table t1 add key (c1,c1,c2);
313drop table t1;313drop table t1;
314314
@@ -416,7 +416,7 @@
416alter table t1 add primary key (c1, c2), drop primary key;416alter table t1 add primary key (c1, c2), drop primary key;
417alter table t1 drop primary key;417alter table t1 drop primary key;
418# Drop is checked first. Primary key must exist.418# Drop is checked first. Primary key must exist.
419--error 1091419--error ER_CANT_DROP_FIELD_OR_KEY
420alter table t1 add primary key (c1, c2), drop primary key;420alter table t1 add primary key (c1, c2), drop primary key;
421show create table t1;421show create table t1;
422# Insert non-unique values.422# Insert non-unique values.
423423
=== modified file 'tests/t/kill.test'
--- tests/t/kill.test 2009-03-27 20:35:31 +0000
+++ tests/t/kill.test 2010-08-27 21:22:40 +0000
@@ -106,7 +106,7 @@
106#kill query $ID;106#kill query $ID;
107#enable_query_log;107#enable_query_log;
108#connection con2;108#connection con2;
109#--error 1317109#--error ER_QUERY_INTERRUPTED
110#reap;110#reap;
111#select @a;111#select @a;
112#connection con1;112#connection con1;
@@ -122,7 +122,7 @@
122#eval kill query $ID;122#eval kill query $ID;
123#enable_query_log;123#enable_query_log;
124#connection con2;124#connection con2;
125#--error 1317125#--error ER_QUERY_INTERRUPTED
126#reap;126#reap;
127#select @a;127#select @a;
128#connection con1;128#connection con1;
@@ -137,7 +137,7 @@
137#eval kill query $ID;137#eval kill query $ID;
138#enable_query_log;138#enable_query_log;
139#connection con2;139#connection con2;
140#--error 1317140#--error ER_QUERY_INTERRUPTED
141#reap;141#reap;
142#select @a;142#select @a;
143#143#
144144
=== modified file 'tests/t/loaddata.test'
--- tests/t/loaddata.test 2009-02-12 18:16:06 +0000
+++ tests/t/loaddata.test 2010-08-27 21:22:40 +0000
@@ -106,7 +106,7 @@
106load 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));106load 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));
107select * from t1;107select * from t1;
108# and this should bark108# and this should bark
109--error 1409 109--error ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR
110load data infile '../std_data_ln/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, @b);110load data infile '../std_data_ln/loaddata5.dat' into table t1 fields terminated by '' enclosed by '' (a, @b);
111111
112# Now let us test LOAD DATA with subselect112# Now let us test LOAD DATA with subselect
@@ -125,13 +125,13 @@
125show variables like "secure_file_pri%";125show variables like "secure_file_pri%";
126--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR126--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
127select @@secure_file_priv;127select @@secure_file_priv;
128--error 1238128--error ER_INCORRECT_GLOBAL_LOCAL_VAR
129set @@secure_file_priv= 0;129set @@secure_file_priv= 0;
130130
131# Test "load data"131# Test "load data"
132truncate table t1;132truncate table t1;
133--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR133--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
134--error 1290134--error ER_OPTION_PREVENTS_STATEMENT
135eval load data infile '$DRIZZLE_TEST_DIR/t/loaddata.test' into table t1;135eval load data infile '$DRIZZLE_TEST_DIR/t/loaddata.test' into table t1;
136select * from t1;136select * from t1;
137137
@@ -151,7 +151,7 @@
151insert into t2 values(1),(2);151insert into t2 values(1),(2);
152disable_query_log;152disable_query_log;
153eval select * into outfile '$MYSQLTEST_VARDIR/tmp/t2' from t2;153eval select * into outfile '$MYSQLTEST_VARDIR/tmp/t2' from t2;
154--error 1261154--error ER_WARN_TOO_FEW_RECORDS
155eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1;155eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1;
156enable_query_log;156enable_query_log;
157select f1 from t1 where f2 IS NOT NULL order by f1;157select f1 from t1 where f2 IS NOT NULL order by f1;
@@ -161,7 +161,7 @@
161eval SELECT * INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/t2'161eval SELECT * INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/t2'
162FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\r\n'162FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\r\n'
163FROM t2;163FROM t2;
164--error 1261164--error ER_WARN_TOO_FEW_RECORDS
165eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1165eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1
166FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\r\n';166FIELDS TERMINATED BY '' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\r\n';
167enable_query_log;167enable_query_log;
168168
=== modified file 'tests/t/lowercase_fs_off.test'
--- tests/t/lowercase_fs_off.test 2008-12-16 17:34:59 +0000
+++ tests/t/lowercase_fs_off.test 2010-08-27 21:22:40 +0000
@@ -11,7 +11,7 @@
11connection sample;11connection sample;
12select database();12select database();
13create database d2;13create database d2;
14--error 100714--error ER_DB_CREATE_EXISTS
15create database D1;15create database D1;
16drop database d2;16drop database d2;
17disconnect sample;17disconnect sample;
1818
=== modified file 'tests/t/microsecond.test'
--- tests/t/microsecond.test 2009-01-30 04:01:12 +0000
+++ tests/t/microsecond.test 2010-08-27 21:22:40 +0000
@@ -16,11 +16,11 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1064 19--error ER_PARSE_ERROR
20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
21# the SQL parser, which considers MICROSECOND a keyword before being a function symbol21# the SQL parser, which considers MICROSECOND a keyword before being a function symbol
22SELECT MICROSECOND();22SELECT MICROSECOND();
23--error 106423--error ER_PARSE_ERROR
24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
25# the SQL parser, which considers MICROSECOND a keyword before being a function symbol25# the SQL parser, which considers MICROSECOND a keyword before being a function symbol
26SELECT MICROSECOND(1, 0);26SELECT MICROSECOND(1, 0);
@@ -30,7 +30,7 @@
30# produce an error, not a NULL or anything30# produce an error, not a NULL or anything
31# else...31# else...
32#32#
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT MICROSECOND("xxx");34SELECT MICROSECOND("xxx");
3535
36# 36#
@@ -39,27 +39,27 @@
39# The following are all bad dates, with no possibility of interpreting39# The following are all bad dates, with no possibility of interpreting
40# the values as TIME-only components.40# the values as TIME-only components.
41#41#
42--error 168642--error ER_INVALID_DATETIME_VALUE
43SELECT MICROSECOND("0000-00-00"); # No 0000-00-00 dates!...43SELECT MICROSECOND("0000-00-00"); # No 0000-00-00 dates!...
44--error 168644--error ER_INVALID_DATETIME_VALUE
45SELECT MICROSECOND("0000-01-01"); # No zero year parts45SELECT MICROSECOND("0000-01-01"); # No zero year parts
46--error 168646--error ER_INVALID_DATETIME_VALUE
47SELECT MICROSECOND("0001-00-01"); # No zero month parts47SELECT MICROSECOND("0001-00-01"); # No zero month parts
48--error 168648--error ER_INVALID_DATETIME_VALUE
49SELECT MICROSECOND("0001-01-00"); # No zero day parts49SELECT MICROSECOND("0001-01-00"); # No zero day parts
50--error 168650--error ER_INVALID_DATETIME_VALUE
51SELECT MICROSECOND("2000-02-30"); # No Feb 30th!51SELECT MICROSECOND("2000-02-30"); # No Feb 30th!
52--error 168652--error ER_INVALID_DATETIME_VALUE
53SELECT MICROSECOND("1900-02-29"); # Not a leap MICROSECOND since not divisible evenly by 400...53SELECT MICROSECOND("1900-02-29"); # Not a leap MICROSECOND since not divisible evenly by 400...
54--error 168654--error ER_INVALID_DATETIME_VALUE
55SELECT MICROSECOND('1976-15-15'); # No 15th month!55SELECT MICROSECOND('1976-15-15'); # No 15th month!
56--error 168656--error ER_INVALID_DATETIME_VALUE
57SELECT MICROSECOND('23:59:70'); # No 70th second!57SELECT MICROSECOND('23:59:70'); # No 70th second!
58--error 168658--error ER_INVALID_DATETIME_VALUE
59SELECT MICROSECOND('23:70:59'); # No 70th minute!59SELECT MICROSECOND('23:70:59'); # No 70th minute!
60--error 168660--error ER_INVALID_DATETIME_VALUE
61SELECT MICROSECOND('26:00:00'); # No 26th hour!61SELECT MICROSECOND('26:00:00'); # No 26th hour!
62--error 168662--error ER_INVALID_DATETIME_VALUE
63SELECT MICROSECOND('26:00:00.9999999'); # Microseconds are 6 places, not 763SELECT MICROSECOND('26:00:00.9999999'); # Microseconds are 6 places, not 7
6464
65# A good date, which cannot be interpreted as a TIME component. Should return 0.65# A good date, which cannot be interpreted as a TIME component. Should return 0.
6666
=== modified file 'tests/t/minute.test'
--- tests/t/minute.test 2009-01-30 04:01:12 +0000
+++ tests/t/minute.test 2010-08-27 21:22:40 +0000
@@ -16,11 +16,11 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1064 19--error ER_PARSE_ERROR
20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
21# the SQL parser, which considers MINUTE a keyword before being a function symbol21# the SQL parser, which considers MINUTE a keyword before being a function symbol
22SELECT MINUTE();22SELECT MINUTE();
23--error 106423--error ER_PARSE_ERROR
24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
25# the SQL parser, which considers MINUTE a keyword before being a function symbol25# the SQL parser, which considers MINUTE a keyword before being a function symbol
26SELECT MINUTE(1, 0);26SELECT MINUTE(1, 0);
@@ -30,7 +30,7 @@
30# produce an error, not a NULL or anything30# produce an error, not a NULL or anything
31# else...31# else...
32#32#
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT MINUTE("xxx");34SELECT MINUTE("xxx");
3535
36# 36#
@@ -39,25 +39,25 @@
39# The following are all bad dates, with no possibility of interpreting39# The following are all bad dates, with no possibility of interpreting
40# the values as TIME-only components.40# the values as TIME-only components.
41#41#
42--error 168642--error ER_INVALID_DATETIME_VALUE
43SELECT MINUTE("0000-00-00"); # No 0000-00-00 dates!...43SELECT MINUTE("0000-00-00"); # No 0000-00-00 dates!...
44--error 168644--error ER_INVALID_DATETIME_VALUE
45SELECT MINUTE("0000-01-01"); # No zero year parts45SELECT MINUTE("0000-01-01"); # No zero year parts
46--error 168646--error ER_INVALID_DATETIME_VALUE
47SELECT MINUTE("0001-00-01"); # No zero month parts47SELECT MINUTE("0001-00-01"); # No zero month parts
48--error 168648--error ER_INVALID_DATETIME_VALUE
49SELECT MINUTE("0001-01-00"); # No zero day parts49SELECT MINUTE("0001-01-00"); # No zero day parts
50--error 168650--error ER_INVALID_DATETIME_VALUE
51SELECT MINUTE("2000-02-30"); # No Feb 30th!51SELECT MINUTE("2000-02-30"); # No Feb 30th!
52--error 168652--error ER_INVALID_DATETIME_VALUE
53SELECT MINUTE("1900-02-29"); # Not a leap MINUTE since not divisible evenly by 400...53SELECT MINUTE("1900-02-29"); # Not a leap MINUTE since not divisible evenly by 400...
54--error 168654--error ER_INVALID_DATETIME_VALUE
55SELECT MINUTE('1976-15-15'); # No 15th month!55SELECT MINUTE('1976-15-15'); # No 15th month!
56--error 168656--error ER_INVALID_DATETIME_VALUE
57SELECT MINUTE('23:59:70'); # No 70th second!57SELECT MINUTE('23:59:70'); # No 70th second!
58--error 168658--error ER_INVALID_DATETIME_VALUE
59SELECT MINUTE('23:70:59'); # No 70th minute!59SELECT MINUTE('23:70:59'); # No 70th minute!
60--error 168660--error ER_INVALID_DATETIME_VALUE
61SELECT MINUTE('26:00:00'); # No 26th hour!61SELECT MINUTE('26:00:00'); # No 26th hour!
6262
63# A good date, which cannot be interpreted as a TIME component. Should return 0.63# A good date, which cannot be interpreted as a TIME component. Should return 0.
6464
=== modified file 'tests/t/month.test'
--- tests/t/month.test 2009-01-30 04:01:12 +0000
+++ tests/t/month.test 2010-08-27 21:22:40 +0000
@@ -16,11 +16,11 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1064 19--error ER_PARSE_ERROR
20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
21# the SQL parser, which considers MONTH a keyword before being a function symbol21# the SQL parser, which considers MONTH a keyword before being a function symbol
22SELECT MONTH();22SELECT MONTH();
23--error 106423--error ER_PARSE_ERROR
24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
25# the SQL parser, which considers MONTH a keyword before being a function symbol25# the SQL parser, which considers MONTH a keyword before being a function symbol
26SELECT MONTH(1, 0);26SELECT MONTH(1, 0);
@@ -30,23 +30,23 @@
30# produce an error, not a NULL or anything30# produce an error, not a NULL or anything
31# else...31# else...
32#32#
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT MONTH("xxx");34SELECT MONTH("xxx");
3535
36# Indy, bad dates!36# Indy, bad dates!
37--error 168637--error ER_INVALID_DATETIME_VALUE
38SELECT MONTH("0000-00-00"); # No 0000-00-00 dates!...38SELECT MONTH("0000-00-00"); # No 0000-00-00 dates!...
39--error 168639--error ER_INVALID_DATETIME_VALUE
40SELECT MONTH("0000-01-01"); # No zero year parts40SELECT MONTH("0000-01-01"); # No zero year parts
41--error 168641--error ER_INVALID_DATETIME_VALUE
42SELECT MONTH("0001-00-01"); # No zero month parts42SELECT MONTH("0001-00-01"); # No zero month parts
43--error 168643--error ER_INVALID_DATETIME_VALUE
44SELECT MONTH("0001-01-00"); # No zero day parts44SELECT MONTH("0001-01-00"); # No zero day parts
45--error 168645--error ER_INVALID_DATETIME_VALUE
46SELECT MONTH("2000-02-30"); # No Feb 30th!46SELECT MONTH("2000-02-30"); # No Feb 30th!
47--error 168647--error ER_INVALID_DATETIME_VALUE
48SELECT MONTH("1900-02-29"); # Not a leap MONTH since not divisible evenly by 400...48SELECT MONTH("1900-02-29"); # Not a leap MONTH since not divisible evenly by 400...
49--error 168649--error ER_INVALID_DATETIME_VALUE
50SELECT MONTH('1976-15-15'); # No 15th month!50SELECT MONTH('1976-15-15'); # No 15th month!
5151
52# A good date, which should output 152# A good date, which should output 1
5353
=== modified file 'tests/t/null.test'
--- tests/t/null.test 2009-03-25 09:18:25 +0000
+++ tests/t/null.test 2010-08-27 21:22:40 +0000
@@ -65,29 +65,29 @@
6565
66# Test INSERT with NULL66# Test INSERT with NULL
6767
68--error 104868--error ER_BAD_NULL_ERROR
69INSERT INTO t1 (a) values (null);69INSERT INTO t1 (a) values (null);
70--error 104870--error ER_BAD_NULL_ERROR
71INSERT INTO t1 (a) values (1/null);71INSERT INTO t1 (a) values (1/null);
72--error 104872--error ER_BAD_NULL_ERROR
73INSERT INTO t1 (a) values (null),(null);73INSERT INTO t1 (a) values (null),(null);
74--error 104874--error ER_BAD_NULL_ERROR
75INSERT INTO t1 (b) values (null);75INSERT INTO t1 (b) values (null);
76--error 104876--error ER_BAD_NULL_ERROR
77INSERT INTO t1 (b) values (1/null);77INSERT INTO t1 (b) values (1/null);
78--error 104878--error ER_BAD_NULL_ERROR
79INSERT INTO t1 (b) values (null),(null);79INSERT INTO t1 (b) values (null),(null);
80--error 104880--error ER_BAD_NULL_ERROR
81INSERT INTO t1 (c) values (null);81INSERT INTO t1 (c) values (null);
82--error 104882--error ER_BAD_NULL_ERROR
83INSERT INTO t1 (c) values (1/null);83INSERT INTO t1 (c) values (1/null);
84--error 104884--error ER_BAD_NULL_ERROR
85INSERT INTO t1 (c) values (null),(null);85INSERT INTO t1 (c) values (null),(null);
86--error 104886--error ER_BAD_NULL_ERROR
87INSERT INTO t1 (d) values (null);87INSERT INTO t1 (d) values (null);
88--error 104888--error ER_BAD_NULL_ERROR
89INSERT INTO t1 (d) values (1/null);89INSERT INTO t1 (d) values (1/null);
90--error 104890--error ER_BAD_NULL_ERROR
91INSERT INTO t1 (d) values (null),(null);91INSERT INTO t1 (d) values (null),(null);
9292
93# Test UPDATE with NULLs93# Test UPDATE with NULLs
@@ -99,15 +99,15 @@
99# Insert a default row in order to test UPDATE to NULL error99# Insert a default row in order to test UPDATE to NULL error
100INSERT INTO t1 VALUES ();100INSERT INTO t1 VALUES ();
101101
102--error 1048102--error ER_BAD_NULL_ERROR
103UPDATE t1 SET a=1/NULL;103UPDATE t1 SET a=1/NULL;
104--error 1048104--error ER_BAD_NULL_ERROR
105UPDATE t1 SET a=NULL;105UPDATE t1 SET a=NULL;
106--error 1048106--error ER_BAD_NULL_ERROR
107UPDATE t1 SET b=NULL;107UPDATE t1 SET b=NULL;
108--error 1048108--error ER_BAD_NULL_ERROR
109UPDATE t1 SET c=NULL;109UPDATE t1 SET c=NULL;
110--error 1048110--error ER_BAD_NULL_ERROR
111UPDATE t1 SET d=NULL;111UPDATE t1 SET d=NULL;
112112
113truncate table t1;113truncate table t1;
@@ -117,7 +117,7 @@
117# as 1048, only gives a "row" number.117# as 1048, only gives a "row" number.
118# @TODO Is there really a reason for a separate error 118# @TODO Is there really a reason for a separate error
119# just for LOAD DATA INFILE?119# just for LOAD DATA INFILE?
120--error 1263120--error ER_WARN_NULL_TO_NOTNULL
121LOAD DATA INFILE '../std_data_ln/null_test.txt' INTO TABLE t1 FIELDS ENCLOSED BY '"';121LOAD DATA INFILE '../std_data_ln/null_test.txt' INTO TABLE t1 FIELDS ENCLOSED BY '"';
122122
123drop table t1;123drop table t1;
@@ -233,11 +233,11 @@
233#create table bug19145c (e enum('a','b','c') not null default 'b' , s set('x', 'y', 'z') not null default 'y' ) engine=MyISAM;233#create table bug19145c (e enum('a','b','c') not null default 'b' , s set('x', 'y', 'z') not null default 'y' ) engine=MyISAM;
234234
235# Invalid default value for 's'235# Invalid default value for 's'
236#--error 1067236#--error ER_INVALID_DEFAULT
237#create table bug19145setnotnulldefaultnull (e enum('a','b','c') default null, s set('x', 'y', 'z') not null default null) engine=MyISAM;237#create table bug19145setnotnulldefaultnull (e enum('a','b','c') default null, s set('x', 'y', 'z') not null default null) engine=MyISAM;
238238
239# Invalid default value for 'e'239# Invalid default value for 'e'
240#--error 1067240#--error ER_INVALID_DEFAULT
241#create table bug19145enumnotnulldefaultnull (e enum('a','b','c') not null default null, s set('x', 'y', 'z') default null) engine=MyISAM;241#create table bug19145enumnotnulldefaultnull (e enum('a','b','c') not null default null, s set('x', 'y', 'z') default null) engine=MyISAM;
242242
243#alter table bug19145a alter column e set default null;243#alter table bug19145a alter column e set default null;
@@ -249,11 +249,11 @@
249#alter table bug19145b add column (i int);249#alter table bug19145b add column (i int);
250250
251# Invalid default value for 'e'251# Invalid default value for 'e'
252#--error 1067252#--error ER_INVALID_DEFAULT
253#alter table bug19145c alter column e set default null;253#alter table bug19145c alter column e set default null;
254254
255# Invalid default value for 's'255# Invalid default value for 's'
256#--error 1067256#--error ER_INVALID_DEFAULT
257#alter table bug19145c alter column s set default null;257#alter table bug19145c alter column s set default null;
258#alter table bug19145c add column (i int);258#alter table bug19145c add column (i int);
259259
260260
=== modified file 'tests/t/null_key.test'
--- tests/t/null_key.test 2009-11-18 22:58:22 +0000
+++ tests/t/null_key.test 2010-08-27 21:22:40 +0000
@@ -28,7 +28,7 @@
28select * from t1 where a is null and b=9 or a is null and b=7 limit 3;28select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
29select * from t1 where a > 1 and a < 3 limit 1;29select * from t1 where a > 1 and a < 3 limit 1;
30select * from t1 where a > 8 and a < 9;30select * from t1 where a > 8 and a < 9;
31--error 100531--error ER_CANT_CREATE_TABLE
32create table t2 like t1;32create table t2 like t1;
33create temporary table t2 like t1;33create temporary table t2 like t1;
34show create table t2;34show create table t2;
@@ -230,7 +230,7 @@
230 index (id),230 index (id),
231 index (id2)231 index (id2)
232);232);
233--error 1048233--error ER_BAD_NULL_ERROR
234insert into t1 values(null,null),(1,1);234insert into t1 values(null,null),(1,1);
235select * from t1;235select * from t1;
236select * from t1 where id <=> null;236select * from t1 where id <=> null;
237237
=== modified file 'tests/t/olap.test'
--- tests/t/olap.test 2008-12-19 21:34:33 +0000
+++ tests/t/olap.test 2010-08-27 21:22:40 +0000
@@ -72,11 +72,11 @@
72# Error handling72# Error handling
7373
74# Cube is not yet implemented74# Cube is not yet implemented
75--error 106475--error ER_PARSE_ERROR
76select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;76select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
77--error 106477--error ER_PARSE_ERROR
78explain select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;78explain select product, country_id , year, sum(profit) from t1 group by product, country_id, year with cube;
79--error 106479--error ER_PARSE_ERROR
80select 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;80select 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;
8181
82drop table t1,t2;82drop table t1,t2;
8383
=== modified file 'tests/t/optimizer.test'
--- tests/t/optimizer.test 2010-08-21 04:05:07 +0000
+++ tests/t/optimizer.test 2010-08-27 21:22:40 +0000
@@ -421,7 +421,7 @@
421421
422INSERT INTO `dd` VALUES (1777795072,NULL,'g',0,'was',-1866203136,'',1,'g');422INSERT INTO `dd` VALUES (1777795072,NULL,'g',0,'was',-1866203136,'',1,'g');
423423
424--error 1054424--error ER_BAD_FIELD_ERROR
425EXPLAIN EXTENDED SELECT425EXPLAIN EXTENDED SELECT
426table2 . `col_enum_not_null_key` AS field1 ,426table2 . `col_enum_not_null_key` AS field1 ,
427 table1 . `col_char_1024_key` AS field2427 table1 . `col_char_1024_key` AS field2
428428
=== modified file 'tests/t/order_by.test'
--- tests/t/order_by.test 2010-05-12 22:54:08 +0000
+++ tests/t/order_by.test 2010-08-27 21:22:40 +0000
@@ -474,17 +474,17 @@
474# Let us also test various ambiguos and potentially ambiguos cases 474# Let us also test various ambiguos and potentially ambiguos cases
475# related to aliases475# related to aliases
476#476#
477--error 1052477--error ER_NON_UNIQ_ERROR
478select col1 as col, col from t1 order by col;478select col1 as col, col from t1 order by col;
479--error 1052479--error ER_NON_UNIQ_ERROR
480select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2480select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
481 order by col;481 order by col;
482--error 1052482--error ER_NON_UNIQ_ERROR
483select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2483select t1.col as c1, t2.col as c2 from t1, t2 where t1.col1=t2.col2
484 order by col;484 order by col;
485--error 1052485--error ER_NON_UNIQ_ERROR
486select col1 from t1, t2 where t1.col1=t2.col2 order by col;486select col1 from t1, t2 where t1.col1=t2.col2 order by col;
487--error 1052487--error ER_NON_UNIQ_ERROR
488select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2488select t1.col as t1_col, t2.col2 from t1, t2 where t1.col1=t2.col2
489 order by col;489 order by col;
490490
@@ -580,10 +580,10 @@
580SELECT CONCAT('test', a) AS str FROM t1 ORDER BY UPPER(str);580SELECT CONCAT('test', a) AS str FROM t1 ORDER BY UPPER(str);
581SELECT a + 1 AS num FROM t1 GROUP BY 30 - num;581SELECT a + 1 AS num FROM t1 GROUP BY 30 - num;
582SELECT a + 1 AS num FROM t1 HAVING 30 - num;582SELECT a + 1 AS num FROM t1 HAVING 30 - num;
583--error 1054583--error ER_BAD_FIELD_ERROR
584SELECT a + 1 AS num, num + 1 FROM t1;584SELECT a + 1 AS num, num + 1 FROM t1;
585SELECT a + 1 AS num, (select num + 2 FROM t1 LIMIT 1) FROM t1;585SELECT a + 1 AS num, (select num + 2 FROM t1 LIMIT 1) FROM t1;
586--error 1054586--error ER_BAD_FIELD_ERROR
587SELECT a.a + 1 AS num FROM t1 a JOIN t1 b ON num = b.a;587SELECT a.a + 1 AS num FROM t1 a JOIN t1 b ON num = b.a;
588DROP TABLE t1;588DROP TABLE t1;
589589
@@ -594,25 +594,25 @@
594CREATE TABLE bug25126 (594CREATE TABLE bug25126 (
595 val int NOT NULL AUTO_INCREMENT PRIMARY KEY595 val int NOT NULL AUTO_INCREMENT PRIMARY KEY
596);596);
597--error 1054597--error ER_BAD_FIELD_ERROR
598UPDATE bug25126 SET MissingCol = MissingCol;598UPDATE bug25126 SET MissingCol = MissingCol;
599--error 1054599--error ER_BAD_FIELD_ERROR
600UPDATE bug25126 SET val = val ORDER BY MissingCol;600UPDATE bug25126 SET val = val ORDER BY MissingCol;
601UPDATE bug25126 SET val = val ORDER BY val;601UPDATE bug25126 SET val = val ORDER BY val;
602UPDATE bug25126 SET val = 1 ORDER BY val;602UPDATE bug25126 SET val = 1 ORDER BY val;
603--error 1054603--error ER_BAD_FIELD_ERROR
604UPDATE bug25126 SET val = 1 ORDER BY MissingCol;604UPDATE bug25126 SET val = 1 ORDER BY MissingCol;
605--error 1054605--error ER_BAD_FIELD_ERROR
606UPDATE bug25126 SET val = 1 ORDER BY val, MissingCol;606UPDATE bug25126 SET val = 1 ORDER BY val, MissingCol;
607--error 1054607--error ER_BAD_FIELD_ERROR
608UPDATE bug25126 SET val = MissingCol ORDER BY MissingCol;608UPDATE bug25126 SET val = MissingCol ORDER BY MissingCol;
609--error 1054609--error ER_BAD_FIELD_ERROR
610UPDATE bug25126 SET MissingCol = 1 ORDER BY val, MissingCol;610UPDATE bug25126 SET MissingCol = 1 ORDER BY val, MissingCol;
611--error 1054611--error ER_BAD_FIELD_ERROR
612UPDATE bug25126 SET MissingCol = 1 ORDER BY MissingCol;612UPDATE bug25126 SET MissingCol = 1 ORDER BY MissingCol;
613--error 1054613--error ER_BAD_FIELD_ERROR
614UPDATE bug25126 SET MissingCol = val ORDER BY MissingCol;614UPDATE bug25126 SET MissingCol = val ORDER BY MissingCol;
615--error 1054615--error ER_BAD_FIELD_ERROR
616UPDATE bug25126 SET MissingCol = MissingCol ORDER BY MissingCol;616UPDATE bug25126 SET MissingCol = MissingCol ORDER BY MissingCol;
617DROP TABLE bug25126;617DROP TABLE bug25126;
618618
@@ -624,9 +624,9 @@
624CREATE TABLE t1 (a int);624CREATE TABLE t1 (a int);
625625
626SELECT p.a AS val, q.a AS val1 FROM t1 p, t1 q ORDER BY val > 1;626SELECT p.a AS val, q.a AS val1 FROM t1 p, t1 q ORDER BY val > 1;
627--error 1052627--error ER_NON_UNIQ_ERROR
628SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val;628SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val;
629--error 1052629--error ER_NON_UNIQ_ERROR
630SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val > 1;630SELECT p.a AS val, q.a AS val FROM t1 p, t1 q ORDER BY val > 1;
631631
632DROP TABLE t1;632DROP TABLE t1;
@@ -742,14 +742,14 @@
742INSERT INTO t1 SELECT a +32, b +32 FROM t1;742INSERT INTO t1 SELECT a +32, b +32 FROM t1;
743INSERT INTO t1 SELECT a +64, b +64 FROM t1;743INSERT INTO t1 SELECT a +64, b +64 FROM t1;
744744
745--error 1176745--error ER_KEY_DOES_NOT_EXITS
746SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (a, ab) GROUP BY a;746SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (a, ab) GROUP BY a;
747747
748SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (primary, ab) GROUP BY a;748SELECT a FROM t1 IGNORE INDEX FOR GROUP BY (primary, ab) GROUP BY a;
749749
750SELECT @tmp_tables_after = @tmp_tables_before ;750SELECT @tmp_tables_after = @tmp_tables_before ;
751751
752--error 1176752--error ER_KEY_DOES_NOT_EXITS
753SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (a, ab) ORDER BY a;753SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (a, ab) ORDER BY a;
754SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (primary, ab) ORDER BY a;754SELECT a FROM t1 IGNORE INDEX FOR ORDER BY (primary, ab) ORDER BY a;
755755
756756
=== modified file 'tests/t/outfile.test'
--- tests/t/outfile.test 2010-02-24 23:10:30 +0000
+++ tests/t/outfile.test 2010-08-27 21:22:40 +0000
@@ -31,13 +31,13 @@
31# the following should give errors31# the following should give errors
3232
33disable_query_log;33disable_query_log;
34--error 108634--error ER_FILE_EXISTS_ERROR
35eval select * into outfile "../tmp/outfile-test.1" from t1;35eval select * into outfile "../tmp/outfile-test.1" from t1;
3636
37--error 108637--error ER_FILE_EXISTS_ERROR
38eval select * into dumpfile "../tmp/outfile-test.2" from t1;38eval select * into dumpfile "../tmp/outfile-test.2" from t1;
3939
40--error 108640--error ER_FILE_EXISTS_ERROR
41eval select * into dumpfile "../tmp/outfile-test.3" from t1;41eval select * into dumpfile "../tmp/outfile-test.3" from t1;
42enable_query_log;42enable_query_log;
43select load_file(concat(@tmpdir,"/outfile-test.not-exist"));43select load_file(concat(@tmpdir,"/outfile-test.not-exist"));
@@ -92,6 +92,6 @@
92# It should not be possible to write to a file outside of vardir92# It should not be possible to write to a file outside of vardir
93create table t1(a int);93create table t1(a int);
94--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR94--replace_result $DRIZZLE_TEST_DIR DRIZZLE_TEST_DIR
95--error 129095--error ER_OPTION_PREVENTS_STATEMENT
96eval select * into outfile "$DRIZZLE_TEST_DIR/outfile-test1" from t1;96eval select * into outfile "$DRIZZLE_TEST_DIR/outfile-test1" from t1;
97drop table t1;97drop table t1;
9898
=== modified file 'tests/t/parser.test'
--- tests/t/parser.test 2010-06-24 05:34:43 +0000
+++ tests/t/parser.test 2010-08-27 21:22:40 +0000
@@ -589,7 +589,7 @@
589# MySQL didn't follow the SQL standard on CROSS. INNER requires ON, but589# MySQL didn't follow the SQL standard on CROSS. INNER requires ON, but
590# CROSS does not make use of ON.590# CROSS does not make use of ON.
591#591#
592--error 1064 592--error ER_PARSE_ERROR
593SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) CROSS JOIN t3 ON (t3.a2=t2.a3)};593SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) CROSS JOIN t3 ON (t3.a2=t2.a3)};
594SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) INNER JOIN t3 ON (t3.a2=t2.a3)};594SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) INNER JOIN t3 ON (t3.a2=t2.a3)};
595SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;595SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;
596596
=== modified file 'tests/t/plugin-remove.test'
--- tests/t/plugin-remove.test 2010-02-05 20:19:10 +0000
+++ tests/t/plugin-remove.test 2010-08-27 21:22:40 +0000
@@ -1,3 +1,3 @@
1--error 13051--error ER_SP_DOES_NOT_EXIST
2select length("test string");2select length("test string");
33
44
=== modified file 'tests/t/quarter.test'
--- tests/t/quarter.test 2009-01-30 04:38:21 +0000
+++ tests/t/quarter.test 2010-08-27 21:22:40 +0000
@@ -16,11 +16,11 @@
16# Test improper argument list 16# Test improper argument list
17#17#
18# 1 arg is required.18# 1 arg is required.
19--error 1064 19--error ER_PARSE_ERROR
20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 20# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
21# the SQL parser, which considers QUARTER a keyword before being a function symbol21# the SQL parser, which considers QUARTER a keyword before being a function symbol
22SELECT QUARTER();22SELECT QUARTER();
23--error 106423--error ER_PARSE_ERROR
24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of 24# Wrong parameter count...but unfortunately produces 1064 Syntax Error due to limitations of
25# the SQL parser, which considers QUARTER a keyword before being a function symbol25# the SQL parser, which considers QUARTER a keyword before being a function symbol
26SELECT QUARTER(1, 0);26SELECT QUARTER(1, 0);
@@ -30,23 +30,23 @@
30# produce an error, not a NULL or anything30# produce an error, not a NULL or anything
31# else...31# else...
32#32#
33--error 168633--error ER_INVALID_DATETIME_VALUE
34SELECT QUARTER("xxx");34SELECT QUARTER("xxx");
3535
36# Indy, bad dates!36# Indy, bad dates!
37--error 168637--error ER_INVALID_DATETIME_VALUE
38SELECT QUARTER("0000-00-00"); # No 0000-00-00 dates!...38SELECT QUARTER("0000-00-00"); # No 0000-00-00 dates!...
39--error 168639--error ER_INVALID_DATETIME_VALUE
40SELECT QUARTER("0000-01-01"); # No zero year parts40SELECT QUARTER("0000-01-01"); # No zero year parts
41--error 168641--error ER_INVALID_DATETIME_VALUE
42SELECT QUARTER("0001-00-01"); # No zero month parts42SELECT QUARTER("0001-00-01"); # No zero month parts
43--error 168643--error ER_INVALID_DATETIME_VALUE
44SELECT QUARTER("0001-01-00"); # No zero day parts44SELECT QUARTER("0001-01-00"); # No zero day parts
45--error 168645--error ER_INVALID_DATETIME_VALUE
46SELECT QUARTER("2000-02-30"); # No Feb 30th!46SELECT QUARTER("2000-02-30"); # No Feb 30th!
47--error 168647--error ER_INVALID_DATETIME_VALUE
48SELECT QUARTER("1900-02-29"); # Not a leap QUARTER since not divisible evenly by 400...48SELECT QUARTER("1900-02-29"); # Not a leap QUARTER since not divisible evenly by 400...
49--error 168649--error ER_INVALID_DATETIME_VALUE
50SELECT QUARTER('1976-15-15'); # No 15th month!50SELECT QUARTER('1976-15-15'); # No 15th month!
5151
52# A good date, which should output 152# A good date, which should output 1
5353
=== modified file 'tests/t/regression_385808.test'
--- tests/t/regression_385808.test 2010-05-21 18:39:01 +0000
+++ tests/t/regression_385808.test 2010-08-27 21:22:40 +0000
@@ -32,10 +32,10 @@
3232
33CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)33CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
34 SELECT a FROM t1;34 SELECT a FROM t1;
35--error 106235--error ER_DUP_ENTRY
36CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)36CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
37 SELECT a FROM t1;37 SELECT a FROM t1;
38--error 106238--error ER_DUP_ENTRY
39CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)39CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
40 SELECT a FROM t1;40 SELECT a FROM t1;
4141
4242
=== modified file 'tests/t/rename.test'
--- tests/t/rename.test 2008-12-18 23:54:47 +0000
+++ tests/t/rename.test 2010-08-27 21:22:40 +0000
@@ -19,14 +19,14 @@
19select * from t1;19select * from t1;
2020
21# The following should give errors21# The following should give errors
22--error 1050,105022--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
23rename table t1 to t2;23rename table t1 to t2;
24--error 1050,105024--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
25rename table t1 to t1;25rename table t1 to t1;
26--error 1050,105026--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
27rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;27rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
28show tables like "t_";28show tables like "t_";
29--error 1050,105029--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
30rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;30rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
31--error ER_NO_SUCH_TABLE31--error ER_NO_SUCH_TABLE
32rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;32rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
@@ -36,4 +36,4 @@
36select * from t3;36select * from t3;
3737
38# This should give a warning for t438# This should give a warning for t4
39drop table if exists t1,t2,t3,t4;
40\ No newline at end of file39\ No newline at end of file
40drop table if exists t1,t2,t3,t4;
The diff has been truncated for viewing.