summaryrefslogtreecommitdiff
path: root/mysql-test/t/bdb.test
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-09-02 21:09:28 +0500
committerunknown <ram@mysql.r18.ru>2003-09-02 21:09:28 +0500
commite1af4a65dcfd53db807bf08fb4f06a465073cb57 (patch)
tree64dd3eb7aacee6048ce2101a1dcda308b5ed9dfd /mysql-test/t/bdb.test
parentd63ce665c7dc2e0308950267eee7059c7f1b3ce5 (diff)
downloadmariadb-git-e1af4a65dcfd53db807bf08fb4f06a465073cb57.tar.gz
Fix for the bug #971: ORDER BY DESC doesn't return correct num of rows with BDB and an indexed column.
Diffstat (limited to 'mysql-test/t/bdb.test')
-rw-r--r--mysql-test/t/bdb.test13
1 files changed, 13 insertions, 0 deletions
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;