diff options
author | Igor Babaev <igor@askmonty.org> | 2011-02-08 19:17:12 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-02-08 19:17:12 -0800 |
commit | 777b6b8ccb63440c39dcf44ecffdfdeaf5b51813 (patch) | |
tree | 650e1ef247bb146f0f75660031f1256f33ec8863 /mysql-test/r/myisam_icp.result | |
parent | 6c7360b540315a85ed6011dd4b31471c345e886a (diff) | |
download | mariadb-git-777b6b8ccb63440c39dcf44ecffdfdeaf5b51813.tar.gz |
Backported test case for bug #36981.
Diffstat (limited to 'mysql-test/r/myisam_icp.result')
-rw-r--r-- | mysql-test/r/myisam_icp.result | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/mysql-test/r/myisam_icp.result b/mysql-test/r/myisam_icp.result index 1c966dc26aa..d72ae90d230 100644 --- a/mysql-test/r/myisam_icp.result +++ b/mysql-test/r/myisam_icp.result @@ -1,4 +1,54 @@ # +# Bug#36981 - "innodb crash when selecting for update" +# +CREATE TABLE t1 ( +c1 CHAR(1), +c2 CHAR(10), +KEY (c1) +); +INSERT INTO t1 VALUES ('3', null); +SELECT * FROM t1 WHERE c1='3' FOR UPDATE; +c1 c2 +3 NULL +DROP TABLE t1; +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); +CREATE TABLE t2 (a INT); +INSERT INTO t2 SELECT A.a + 10*(B.a + 10*C.a) FROM t1 A, t1 B, t1 C; +CREATE TABLE t3 ( +c1 CHAR(10) NOT NULL, +c2 CHAR(10) NOT NULL, +c3 CHAR(200) NOT NULL, +KEY (c1) +); +INSERT INTO t3 +SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',1000+ t2.a,'=w'), 'filler' + FROM t2; +INSERT INTO t3 +SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',2000+t2.a,'=w'), 'filler-1' + FROM t2; +INSERT INTO t3 +SELECT CONCAT('c-',1000+t2.a,'=w'), CONCAT('c-',3000+t2.a,'=w'), 'filler-2' + FROM t2; +SELECT c1,c3 FROM t3 WHERE c1 >= 'c-1994=w' and c1 != 'c-1996=w' FOR UPDATE; +c1 c3 +c-1994=w filler +c-1994=w filler-1 +c-1994=w filler-2 +c-1995=w filler +c-1995=w filler-1 +c-1995=w filler-2 +c-1997=w filler +c-1997=w filler-1 +c-1997=w filler-2 +c-1998=w filler +c-1998=w filler-1 +c-1998=w filler-2 +c-1999=w filler +c-1999=w filler-1 +c-1999=w filler-2 +DROP TABLE t1,t2,t3; +# # Bug#42580 - Innodb's ORDER BY ..LIMIT returns no rows for # null-safe operator <=> NULL # |