summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2007-08-19 23:54:06 +0000
committerBrian S. O'Neill <bronee@gmail.com>2007-08-19 23:54:06 +0000
commit3f6beac3a91be0b04386b03370705787ac13c998 (patch)
tree12be5e987ec2153b96c3233bf5e134a880a3a0fc
parentb956b6fde3a1a3e485956f1075412fa8a52e8fe9 (diff)
Fixed query descending sort order bug which produced ascending results.
-rw-r--r--RELEASE-NOTES.txt1
-rw-r--r--src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index fc21234..e8b8e8c 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -36,6 +36,7 @@ Carbonado change history
- Fixed query engine rule which sometimes favored index with incorrect ordering.
- Fixed replication repair bug which threw an IllegalStateException for insert
repair if only alternate keys were specified.
+- Fixed query descending sort order bug which produced ascending results.
1.1 to 1.1.1
-------------------------------
diff --git a/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java b/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
index 25423ee..0599b00 100644
--- a/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
+++ b/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
@@ -367,6 +367,9 @@ public class IndexedQueryExecutor<S extends Storable> extends AbstractQueryExecu
String[] orderProperties = new String[mIdentityCount + 1];
for (i=0; i<orderProperties.length; i++) {
Direction dir = mIndex.getPropertyDirection(i);
+ if (dir == Direction.UNSPECIFIED) {
+ dir = Direction.ASCENDING;
+ }
if (mReverseOrder) {
dir = dir.reverse();
}