diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2007-08-19 23:54:06 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2007-08-19 23:54:06 +0000 |
commit | 3f6beac3a91be0b04386b03370705787ac13c998 (patch) | |
tree | 12be5e987ec2153b96c3233bf5e134a880a3a0fc /src/main/java/com | |
parent | b956b6fde3a1a3e485956f1075412fa8a52e8fe9 (diff) |
Fixed query descending sort order bug which produced ascending results.
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java | 3 |
1 files changed, 3 insertions, 0 deletions
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();
}
|