diff options
author | kaa@polly.(none) <> | 2007-11-26 20:02:04 +0300 |
---|---|---|
committer | kaa@polly.(none) <> | 2007-11-26 20:02:04 +0300 |
commit | bc10c6db95ead366db728168ce2db062889e0cb9 (patch) | |
tree | 5eed6ef46d3faf99f685e03028e6e0512b474523 /mysql-test/t/myisam.test | |
parent | d9e48751d16756a4b1969a267d6b4ec613fb3f88 (diff) | |
parent | 8fdd9087f8d1c96fde8ae022b48f329e272b2ca7 (diff) | |
download | mariadb-git-bc10c6db95ead366db728168ce2db062889e0cb9.tar.gz |
Merge polly.(none):/home/kaa/src/opt/bug28837/my50-bug29131
into polly.(none):/home/kaa/src/opt/bug28837/my51-bug29131
Diffstat (limited to 'mysql-test/t/myisam.test')
-rw-r--r-- | mysql-test/t/myisam.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test index b06fd536f45..856d7d2f0b8 100644 --- a/mysql-test/t/myisam.test +++ b/mysql-test/t/myisam.test @@ -1146,6 +1146,23 @@ ALTER TABLE t1 ENABLE KEYS; SELECT a FROM t1 FORCE INDEX (inx) WHERE a=1; DROP TABLE t1; +# +# Bug#28837: MyISAM storage engine error (134) doing delete with self-join +# + +CREATE TABLE t1 (id int NOT NULL, ref int NOT NULL, INDEX (id)) ENGINE=MyISAM; +CREATE TABLE t2 LIKE t1; + +INSERT INTO t2 (id, ref) VALUES (1,3), (2,1), (3,2), (4,5), (4,4); +INSERT INTO t1 SELECT * FROM t2; + +SELECT * FROM t1 AS a INNER JOIN t1 AS b USING (id) WHERE a.ref < b.ref; +SELECT * FROM t1; +DELETE FROM a USING t1 AS a INNER JOIN t1 AS b USING (id) WHERE a.ref < b.ref; +SELECT * FROM t1; + +DROP TABLE t1, t2; + --echo End of 5.0 tests |