From 5e6d8dd7fe5fd68a6e322fa4d83fe0d2ca39c6aa Mon Sep 17 00:00:00 2001 From: "ram@mysql.r18.ru" <> Date: Tue, 2 Sep 2003 21:09:28 +0500 Subject: Fix for the bug #971: ORDER BY DESC doesn't return correct num of rows with BDB and an indexed column. --- mysql-test/t/bdb.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mysql-test/t/bdb.test') diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test index 608d4bf5042..d0cc63a9389 100644 --- a/mysql-test/t/bdb.test +++ b/mysql-test/t/bdb.test @@ -783,3 +783,16 @@ select * from t1; select * from t2; select * from t2; drop table t1,t2; + +# +# The bug #971 +# + +create table t1 (x int not null, index(x)) type=bdb; +insert into t1 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); +select * from t1 where x <= 10 and x >= 7; +select * from t1 where x <= 10 and x >= 7 order by x; +select * from t1 where x <= 10 and x >= 7 order by x desc; +select * from t1 where x <= 8 and x >= 5 order by x desc; +select * from t1 where x < 8 and x > 5 order by x desc; +drop table t1; -- cgit v1.2.1