diff options
author | cmiller@zippy.cornsilk.net <> | 2006-08-02 13:06:59 -0400 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2006-08-02 13:06:59 -0400 |
commit | c9f64f71c80765b28d4196b43a7da13a0a053306 (patch) | |
tree | f1078fdaf773c7b1ea8bf167ef14595a887b78b9 /mysql-test/t/heap_btree.test | |
parent | 757493d4ec09734e89bd5418f26f3af26dfbc6b3 (diff) | |
download | mariadb-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/t/heap_btree.test')
-rw-r--r-- | mysql-test/t/heap_btree.test | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/mysql-test/t/heap_btree.test b/mysql-test/t/heap_btree.test index aea9e9486e5..f510f97fe9b 100644 --- a/mysql-test/t/heap_btree.test +++ b/mysql-test/t/heap_btree.test @@ -164,4 +164,22 @@ DELETE from t1 where a < 100; SELECT * from t1; DROP TABLE t1; -# End of 4.1 tests +# +# Bug #9719: problem with delete +# + +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; +delete from t1 where a < 4; +select a from t1; +insert into t1 values (2), (2), (2), (1), (1), (3), (3), (3), (3); +select a from t1 where a > 4; +delete from t1 where a > 4; +select a from t1; +select a from t1 where a > 3; +delete from t1 where a >= 2; +select a from t1; +drop table t1; + +--echo End of 4.1 tests |