|
|||||||||||
|
bk commit into 6.0 tree (hakank:1.2623)
From: Hakan Kuecuekyilmaz <hakan(at)mysql.com>
Date: Fri Oct 05 2007 - 08:21:38 EDT
ChangeSet@1.2623, 2007-10-05 14:21:31+02:00, hakank@lu0011.(none) +16 -0 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22143.test@1.3, 2007-10-05 14:21:26+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22151.test@1.3, 2007-10-05 14:21:26+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22161.test@1.3, 2007-10-05 14:21:26+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22178.test@1.4, 2007-10-05 14:21:26+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22183.test@1.3, 2007-10-05 14:21:26+02:00, hakank@lu0011.(none) +2 -2 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22842.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_22845.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_23816.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_27997.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +2 -2 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_28026.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_29332.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +2 -2 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bug_30210.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bugs.test@1.2, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_bugs2.test@1.2, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_select.test@1.2, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +18 -18 Use error constants instead of error numbers. mysql-test/suite/falcon/t/falcon_select_for_update.test@1.3, 2007-10-05 14:21:27+02:00, hakank@lu0011.(none) +1 -1 Use error constants instead of error numbers. diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22143.test b/mysql-test/suite/falcon/t/falcon_bug_22143.testSELECT count(*) FROM t1; # Run this with --tmpdir=/tmp to crash Falcon change set 1.2282, 2006-09-05 -#--error 1005 +#--error ER_CANT_CREATE_TABLE #CREATE TEMPORARY TABLE t1 (a int, b int); # End run this diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22151.test b/mysql-test/suite/falcon/t/falcon_bug_22151.test@@ -45,7 +45,7 @@ ROLLBACK; connection conn1; reap; INSERT INTO t1 VALUES (0,6); ---error 1062 +--error ER_DUP_ENTRY INSERT INTO t1 VALUES (0,6); COMMIT; diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22161.test b/mysql-test/suite/falcon/t/falcon_bug_22161.testINSERT INTO t1 VALUES (repeat('a',16384)); ALTER TABLE t1 MODIFY COLUMN a varchar(30000); ALTER TABLE t1 MODIFY COLUMN a text; --- error 1073 +--error ER_BLOB_USED_AS_KEY CREATE INDEX i1 ON t1 (a); ALTER TABLE t1 MODIFY COLUMN a varchar(30000); CREATE INDEX i1 ON t1 (a); diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22178.test b/mysql-test/suite/falcon/t/falcon_bug_22178.testDROP TABLE IF EXISTS t18; --enable_warnings ---error 1563 diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22183.test b/mysql-test/suite/falcon/t/falcon_bug_22183.test# does not work with Falcon. However, the error message # is misleading. ---error 1015 +--error ER_CANT_LOCK ALTER TABLE t DROP PRIMARY KEY; SET @@autocommit = 0; START TRANSACTION; @@ -31,7 +31,7 @@ START TRANSACTION; connection default; # We get a "multiple primary key defined", as the previous # DROP PRIMARY KEY did not worked. ---error 1068 +--error ER_MULTIPLE_PRI_KEY ALTER TABLE t ADD PRIMARY KEY (s1); COMMIT; diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22842.test b/mysql-test/suite/falcon/t/falcon_bug_22842.test
--echo # Switch to connection default
diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22845.test b/mysql-test/suite/falcon/t/falcon_bug_22845.test
--echo # Switch to connection default
--echo # Switch to connection conn1 diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_23816.test b/mysql-test/suite/falcon/t/falcon_bug_23816.test
--echo # Switch to connection conn1
diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_27997.test b/mysql-test/suite/falcon/t/falcon_bug_27997.testINSERT INTO t1 VALUES (5, NULL), (5, NULL); COMMIT; SELECT * FROM t1 FOR UPDATE; ---error 1582 +--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT UPDATE t1 SET b = 2; COMMIT; ---error 1582 +--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT UPDATE t1 SET b = 2; COMMIT; UPDATE t1 SET a = 3, b = 2 WHERE a = 5 LIMIT 1; diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_28026.test b/mysql-test/suite/falcon/t/falcon_bug_28026.test --echo # Switch to connection conn1 connection conn1; --real_sleep 1 ---error 1213 +--error ER_LOCK_DEADLOCK SELECT * FROM t1 WHERE a = 8 FOR UPDATE; ROLLBACK; diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_29332.test b/mysql-test/suite/falcon/t/falcon_bug_29332.test # This select should fail immediately with a deadlock since the other # transaction is already wating on this. --real_sleep 1 ---error 1213 +--error ER_LOCK_DEADLOCK SELECT * FROM t1 WHERE a = 9 FOR UPDATE; # Innodb automatically does a rollback. Falcon does not. SELECT * FROM t1 ORDER BY a; @@ -96,7 +96,7 @@ connection default; # This select should fail immediately with a deadlock since the other # transaction is already wating on this. --real_sleep 1 ---error 1213 +--error ER_LOCK_DEADLOCK SELECT * FROM t2 WHERE a = 9 FOR UPDATE; # Innodb automatically does a rollback. Falcon does not. SELECT * FROM t2 ORDER BY a; diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_30210.test b/mysql-test/suite/falcon/t/falcon_bug_30210.test ---error 1050, 1005 +--error ER_TABLE_EXISTS_ERROR, ER_CANT_CREATE_TABLE CREATE TABLE t (a int); INSERT INTO T VALUES (1); diff -Nrup a/mysql-test/suite/falcon/t/falcon_bugs.test b/mysql-test/suite/falcon/t/falcon_bugs.test--echo # This UPDATE gets a crash update t1 set parent_id=parent_id+100;
# Is the server alive ? diff -Nrup a/mysql-test/suite/falcon/t/falcon_bugs2.test b/mysql-test/suite/falcon/t/falcon_bugs2.testCOMMIT; INSERT INTO t1 VALUES (2, 'oma'); COMMIT; ---error ER_DUP_ENTRY,1022 +--error ER_DUP_ENTRY, ER_DUP_KEY INSERT INTO t1 VALUES (2, 'opa'); COMMIT; SELECT * FROM t1; diff -Nrup a/mysql-test/suite/falcon/t/falcon_select.test b/mysql-test/suite/falcon/t/falcon_select.test# The next should give an error #
#
@@ -2309,9 +2309,9 @@ drop table t1;
@@ -2393,9 +2393,9 @@ drop table t1;
@@ -2523,7 +2523,7 @@ CREATE TABLE BUG_12595(a varchar(100));
INSERT INTO BUG_12595 VALUES ('hakan%'), ('hakank'), ("ha%an");
SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%';
SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
--- error 1210 +--error ER_WRONG_ARGUMENTS SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**'; # this should work when sql_mode is not NO_BACKSLASH_ESCAPES SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE ''; @@ -2537,16 +2537,16 @@ SET @@SQL_MODE='NO_BACKSLASH_ESCAPES'; SHOW LOCAL VARIABLES LIKE 'SQL_MODE'; SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%'; SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*'; --- error 1210 +--error ER_WRONG_ARGUMENTS SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**'; --- error 1210 +--error ER_WRONG_ARGUMENTS SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\%' ESCAPE '\\'; #this gives an error when NO_BACKSLASH_ESCAPES is set --- error 1210 +--error ER_WRONG_ARGUMENTS SELECT * FROM BUG_12595 WHERE a LIKE 'hakan%' ESCAPE ''; SELECT * FROM BUG_12595 WHERE a LIKE 'ha\%an' ESCAPE 0x5c; SELECT * FROM BUG_12595 WHERE a LIKE 'ha|%an' ESCAPE '|'; --- error 1210 +--error ER_WRONG_ARGUMENTS SELECT * FROM BUG_12595 WHERE a LIKE 'hakan\n%' ESCAPE '\n'; SET @@SQL_MODE=@OLD_SQL_MODE12595;
INSERT INTO t1 VALUES (1),(2),(3); INSERT INTO t2 VALUES (2); INSERT INTO t3 VALUES (3); --- error 1052 +--error ER_NON_UNIQ_ERROR SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id); --- error 1052 +--error ER_NON_UNIQ_ERROR SELECT t1.id,t3.id FROM t1 JOIN t2 ON (t2.notacolumn=t1.id) LEFT JOIN t3 USING (id); --- error 1052 +--error ER_NON_UNIQ_ERROR SELECT id,t3.id FROM t1 JOIN t2 ON (t2.id=t1.id) LEFT JOIN t3 USING (id); --- error 1052 +--error ER_NON_UNIQ_ERROR SELECT id,t3.id FROM (t1 JOIN t2 ON (t2.id=t1.id)) LEFT JOIN t3 USING (id);
drop table t1, t2, t3;
select * from t1, t2 join t3 on (t2.b = t3.b and t1.a = t3.a); select * from t1 join t2 join t3 join t4 on (t1.a = t4.c and t2.b = t4.c); select * from t1 join t2 join t4 using (c); diff -Nrup a/mysql-test/suite/falcon/t/falcon_select_for_update.test b/mysql-test/suite/falcon/t/falcon_select_for_update.test@@ -45,7 +45,7 @@ connection default; connection conn1; # This statement should fail with a deadlock. --real_sleep 1 ---error 1213 +--error ER_LOCK_DEADLOCK SELECT a FROM t1 WHERE a = 1 FOR UPDATE; ROLLBACK; -- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Fri Oct 5 08:21:50 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 09:58:08 EDT |
||||||||||
|
|||||||||||