Loading mysql-test/r/limit.result +3 −0 Original line number Diff line number Diff line Loading @@ -111,3 +111,6 @@ set @a=-14632475938453979136; execute s using @a, @a; ERROR HY000: Incorrect arguments to EXECUTE End of 5.0 tests select 1 as a limit 4294967296,10; a End of 5.1 tests mysql-test/r/lock_multi.result +34 −0 Original line number Diff line number Diff line Loading @@ -99,3 +99,37 @@ kill query ERROR 70100: Query execution was interrupted unlock tables; drop table t1; CREATE TABLE t1 ( a int(11) unsigned default NULL, b varchar(255) default NULL, UNIQUE KEY a (a), KEY b (b) ); INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3); CREATE TABLE t2 SELECT * FROM t1; CREATE TABLE t3 SELECT * FROM t1; # test altering of columns that multiupdate doesn't use # normal mode # PS mode # test altering of columns that multiupdate uses # normal mode # PS mode DROP TABLE t1, t2, t3; CREATE TABLE t1( a INT, b INT ); INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4); # 1. test regular tables # 1.1. test altering of columns that multiupdate doesn't use # 1.1.1. normal mode # 1.1.2. PS mode # 1.2. test altering of columns that multiupdate uses # 1.2.1. normal mode # 1.2.2. PS mode ALTER TABLE t1 ADD COLUMN a INT; # 2. test UNIONs # 2.1. test altering of columns that multiupdate doesn't use # 2.1.1. normal mode # 2.1.2. PS mode # 2.2. test altering of columns that multiupdate uses # 2.2.1. normal mode # 2.2.2. PS mode DROP TABLE t1; mysql-test/r/metadata.result +17 −0 Original line number Diff line number Diff line Loading @@ -181,4 +181,21 @@ c1 c2 3 3 DROP VIEW v1,v2; DROP TABLE t1,t2; CREATE TABLE t1 (i INT, d DATE); INSERT INTO t1 VALUES (1, '2008-01-01'), (2, '2008-01-02'), (3, '2008-01-03'); SELECT COALESCE(d, d), IFNULL(d, d), IF(i, d, d), CASE i WHEN i THEN d ELSE d END, GREATEST(d, d), LEAST(d, d) FROM t1 ORDER BY RAND(); Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-03 2008-01-03 2008-01-03 2008-01-03 2008-01-03 2008-01-03 COALESCE(d, d) IFNULL(d, d) IF(i, d, d) CASE i WHEN i THEN d ELSE d END GREATEST(d, d) LEAST(d, d) def CASE i WHEN i THEN d ELSE d END CASE i WHEN i THEN d ELSE d END 10 10 10 Y 128 0 63 def COALESCE(d, d) COALESCE(d, d) 10 10 10 Y 128 0 63 def GREATEST(d, d) GREATEST(d, d) 10 10 10 Y 128 0 63 def IF(i, d, d) IF(i, d, d) 10 10 10 Y 128 0 63 def IFNULL(d, d) IFNULL(d, d) 10 10 10 Y 128 0 63 def LEAST(d, d) LEAST(d, d) 10 10 10 Y 128 0 63 DROP TABLE t1; End of 5.0 tests mysql-test/r/order_by.result +16 −0 Original line number Diff line number Diff line Loading @@ -1076,3 +1076,19 @@ set session max_sort_length= 2180; select * from t1 order by b; ERROR HY001: Out of sort memory; increase server sort buffer size drop table t1; # # Bug #39844: Query Crash Mysql Server 5.0.67 # CREATE TABLE t1 (a INT PRIMARY KEY); CREATE TABLE t2 (a INT PRIMARY KEY, b INT); CREATE TABLE t3 (c INT); INSERT INTO t1 (a) VALUES (1), (2); INSERT INTO t2 (a,b) VALUES (1,2), (2,3); INSERT INTO t3 (c) VALUES (1), (2); SELECT (SELECT t1.a FROM t1, t2 WHERE t1.a = t2.b AND t2.a = t3.c ORDER BY t1.a) FROM t3; (SELECT t1.a FROM t1, t2 WHERE t1.a = t2.b AND t2.a = t3.c ORDER BY t1.a) 2 NULL DROP TABLE t1, t2, t3; mysql-test/r/sp.result +13 −0 Original line number Diff line number Diff line Loading @@ -6672,6 +6672,19 @@ select substr(`str`, `pos`+ 1 ) into `str`; end $ call `p2`('s s s s s s'); drop procedure `p2`; drop table if exists t1; drop procedure if exists p1; create procedure p1() begin select * from t1; end$ call p1$ ERROR 42S02: Table 'test.t1' doesn't exist create table t1 (a integer)$ call p1$ a alter table t1 add b integer; call p1$ a drop table t1; drop procedure p1; # ------------------------------------------------------------------ # -- End of 5.0 tests # ------------------------------------------------------------------ Loading
mysql-test/r/limit.result +3 −0 Original line number Diff line number Diff line Loading @@ -111,3 +111,6 @@ set @a=-14632475938453979136; execute s using @a, @a; ERROR HY000: Incorrect arguments to EXECUTE End of 5.0 tests select 1 as a limit 4294967296,10; a End of 5.1 tests
mysql-test/r/lock_multi.result +34 −0 Original line number Diff line number Diff line Loading @@ -99,3 +99,37 @@ kill query ERROR 70100: Query execution was interrupted unlock tables; drop table t1; CREATE TABLE t1 ( a int(11) unsigned default NULL, b varchar(255) default NULL, UNIQUE KEY a (a), KEY b (b) ); INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3); CREATE TABLE t2 SELECT * FROM t1; CREATE TABLE t3 SELECT * FROM t1; # test altering of columns that multiupdate doesn't use # normal mode # PS mode # test altering of columns that multiupdate uses # normal mode # PS mode DROP TABLE t1, t2, t3; CREATE TABLE t1( a INT, b INT ); INSERT INTO t1 VALUES (1, 1), (2, 2), (3, 3), (4, 4); # 1. test regular tables # 1.1. test altering of columns that multiupdate doesn't use # 1.1.1. normal mode # 1.1.2. PS mode # 1.2. test altering of columns that multiupdate uses # 1.2.1. normal mode # 1.2.2. PS mode ALTER TABLE t1 ADD COLUMN a INT; # 2. test UNIONs # 2.1. test altering of columns that multiupdate doesn't use # 2.1.1. normal mode # 2.1.2. PS mode # 2.2. test altering of columns that multiupdate uses # 2.2.1. normal mode # 2.2.2. PS mode DROP TABLE t1;
mysql-test/r/metadata.result +17 −0 Original line number Diff line number Diff line Loading @@ -181,4 +181,21 @@ c1 c2 3 3 DROP VIEW v1,v2; DROP TABLE t1,t2; CREATE TABLE t1 (i INT, d DATE); INSERT INTO t1 VALUES (1, '2008-01-01'), (2, '2008-01-02'), (3, '2008-01-03'); SELECT COALESCE(d, d), IFNULL(d, d), IF(i, d, d), CASE i WHEN i THEN d ELSE d END, GREATEST(d, d), LEAST(d, d) FROM t1 ORDER BY RAND(); Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-01 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-02 2008-01-03 2008-01-03 2008-01-03 2008-01-03 2008-01-03 2008-01-03 COALESCE(d, d) IFNULL(d, d) IF(i, d, d) CASE i WHEN i THEN d ELSE d END GREATEST(d, d) LEAST(d, d) def CASE i WHEN i THEN d ELSE d END CASE i WHEN i THEN d ELSE d END 10 10 10 Y 128 0 63 def COALESCE(d, d) COALESCE(d, d) 10 10 10 Y 128 0 63 def GREATEST(d, d) GREATEST(d, d) 10 10 10 Y 128 0 63 def IF(i, d, d) IF(i, d, d) 10 10 10 Y 128 0 63 def IFNULL(d, d) IFNULL(d, d) 10 10 10 Y 128 0 63 def LEAST(d, d) LEAST(d, d) 10 10 10 Y 128 0 63 DROP TABLE t1; End of 5.0 tests
mysql-test/r/order_by.result +16 −0 Original line number Diff line number Diff line Loading @@ -1076,3 +1076,19 @@ set session max_sort_length= 2180; select * from t1 order by b; ERROR HY001: Out of sort memory; increase server sort buffer size drop table t1; # # Bug #39844: Query Crash Mysql Server 5.0.67 # CREATE TABLE t1 (a INT PRIMARY KEY); CREATE TABLE t2 (a INT PRIMARY KEY, b INT); CREATE TABLE t3 (c INT); INSERT INTO t1 (a) VALUES (1), (2); INSERT INTO t2 (a,b) VALUES (1,2), (2,3); INSERT INTO t3 (c) VALUES (1), (2); SELECT (SELECT t1.a FROM t1, t2 WHERE t1.a = t2.b AND t2.a = t3.c ORDER BY t1.a) FROM t3; (SELECT t1.a FROM t1, t2 WHERE t1.a = t2.b AND t2.a = t3.c ORDER BY t1.a) 2 NULL DROP TABLE t1, t2, t3;
mysql-test/r/sp.result +13 −0 Original line number Diff line number Diff line Loading @@ -6672,6 +6672,19 @@ select substr(`str`, `pos`+ 1 ) into `str`; end $ call `p2`('s s s s s s'); drop procedure `p2`; drop table if exists t1; drop procedure if exists p1; create procedure p1() begin select * from t1; end$ call p1$ ERROR 42S02: Table 'test.t1' doesn't exist create table t1 (a integer)$ call p1$ a alter table t1 add b integer; call p1$ a drop table t1; drop procedure p1; # ------------------------------------------------------------------ # -- End of 5.0 tests # ------------------------------------------------------------------