jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1417514 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/PropertyStateValue.java
Date Wed, 05 Dec 2012 16:32:07 GMT
Author: thomasm
Date: Wed Dec  5 16:32:07 2012
New Revision: 1417514

URL: http://svn.apache.org/viewvc?rev=1417514&view=rev
Log:
OAK-484 QueryResultTest failing

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/PropertyStateValue.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/PropertyStateValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/PropertyStateValue.java?rev=1417514&r1=1417513&r2=1417514&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/PropertyStateValue.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/PropertyStateValue.java
Wed Dec  5 16:32:07 2012
@@ -91,10 +91,16 @@ public class PropertyStateValue implemen
             return Integer.signum(p2.getType().tag() - getType().tag());
         }
         switch (getType().tag()) {
-        case PropertyType.BINARY:
-            return compare(getValue(Type.BINARIES), p2.getValue(Type.BINARIES));
+        case PropertyType.BOOLEAN:
+            return compare(getValue(Type.BOOLEANS), p2.getValue(Type.BOOLEANS));
+        case PropertyType.DECIMAL:
+            return compare(getValue(Type.DECIMALS), p2.getValue(Type.DECIMALS));
         case PropertyType.DOUBLE:
             return compare(getValue(Type.DOUBLES), p2.getValue(Type.DOUBLES));
+        case PropertyType.LONG:
+            return compare(getValue(Type.LONGS), p2.getValue(Type.LONGS));
+        case PropertyType.BINARY:
+            return compare(getValue(Type.BINARIES), p2.getValue(Type.BINARIES));
         case PropertyType.DATE:
             return compareAsDate(getValue(Type.STRINGS),
                     p2.getValue(Type.STRINGS));



Mime
View raw message