summaryrefslogtreecommitdiff
path: root/mysql-test/r/heap_btree.result
diff options
context:
space:
mode:
authorcmiller@zippy.cornsilk.net <>2006-08-02 13:06:59 -0400
committercmiller@zippy.cornsilk.net <>2006-08-02 13:06:59 -0400
commitc9f64f71c80765b28d4196b43a7da13a0a053306 (patch)
treef1078fdaf773c7b1ea8bf167ef14595a887b78b9 /mysql-test/r/heap_btree.result
parent757493d4ec09734e89bd5418f26f3af26dfbc6b3 (diff)
downloadmariadb-git-c9f64f71c80765b28d4196b43a7da13a0a053306.tar.gz
Bug#9719: DELETE with WHERE on HEAP table just deletes first row of matched
set. (Ramil's patch, recreated.)
Diffstat (limited to 'mysql-test/r/heap_btree.result')
-rw-r--r--mysql-test/r/heap_btree.result35
1 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/r/heap_btree.result b/mysql-test/r/heap_btree.result
index 5c60c97d674..91c3ec65a13 100644
--- a/mysql-test/r/heap_btree.result
+++ b/mysql-test/r/heap_btree.result
@@ -246,3 +246,38 @@ DELETE from t1 where a < 100;
SELECT * from t1;
a
DROP TABLE t1;
+create table t1(a int not null, key using btree(a)) engine=heap;
+insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3);
+select a from t1 where a > 2;
+a
+3
+3
+3
+3
+delete from t1 where a < 4;
+select a from t1;
+a
+insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3);
+select a from t1 where a > 4;
+a
+delete from t1 where a > 4;
+select a from t1;
+a
+3
+3
+1
+3
+3
+1
+2
+2
+2
+select a from t1 where a > 3;
+a
+delete from t1 where a >= 2;
+select a from t1;
+a
+1
+1
+drop table t1;
+End of 4.1 tests