Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/query/xpath/QueryFormat.java =================================================================== --- jackrabbit/src/main/java/org/apache/jackrabbit/core/query/xpath/QueryFormat.java (revision 426378) +++ jackrabbit/src/main/java/org/apache/jackrabbit/core/query/xpath/QueryFormat.java (working copy) @@ -308,12 +308,21 @@ } else if (node.getOperation() == OPERATION_EQ_GENERAL) { sb.append(propName).append(" = "); appendValue(node, sb); + } else if (node.getOperation() == OPERATION_GE_GENERAL) { + sb.append(propName).append(" >= "); + appendValue(node, sb); } else if (node.getOperation() == OPERATION_GE_VALUE) { sb.append(propName).append(" ge "); appendValue(node, sb); + } else if (node.getOperation() == OPERATION_GT_GENERAL) { + sb.append(propName).append(" > "); + appendValue(node, sb); } else if (node.getOperation() == OPERATION_GT_VALUE) { sb.append(propName).append(" gt "); appendValue(node, sb); + } else if (node.getOperation() == OPERATION_LE_GENERAL) { + sb.append(propName).append(" <= "); + appendValue(node, sb); } else if (node.getOperation() == OPERATION_LE_VALUE) { sb.append(propName).append(" le "); appendValue(node, sb); @@ -322,15 +331,18 @@ sb.append("(").append(propName).append(", "); appendValue(node, sb); sb.append(")"); + } else if (node.getOperation() == OPERATION_LT_GENERAL) { + sb.append(propName).append(" < "); + appendValue(node, sb); } else if (node.getOperation() == OPERATION_LT_VALUE) { sb.append(propName).append(" lt "); appendValue(node, sb); + } else if (node.getOperation() == OPERATION_NE_GENERAL) { + sb.append(propName).append(" != "); + appendValue(node, sb); } else if (node.getOperation() == OPERATION_NE_VALUE) { sb.append(propName).append(" ne "); appendValue(node, sb); - } else if (node.getOperation() == OPERATION_NE_GENERAL) { - sb.append(propName).append(" != "); - appendValue(node, sb); } else if (node.getOperation() == OPERATION_NULL) { sb.append(NameFormat.format(XPathQueryBuilder.FN_NOT, resolver)); sb.append("(").append(propName).append(")"); Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/query/QueryTreeDump.java =================================================================== --- jackrabbit/src/main/java/org/apache/jackrabbit/core/query/QueryTreeDump.java (revision 426378) +++ jackrabbit/src/main/java/org/apache/jackrabbit/core/query/QueryTreeDump.java (working copy) @@ -189,16 +189,24 @@ buffer.append("= "); } else if (node.getOperation() == QueryConstants.OPERATION_EQ_VALUE) { buffer.append("eq"); + } else if (node.getOperation() == QueryConstants.OPERATION_GE_GENERAL) { + buffer.append(">="); } else if (node.getOperation() == QueryConstants.OPERATION_GE_VALUE) { buffer.append("ge"); + } else if (node.getOperation() == QueryConstants.OPERATION_GT_GENERAL) { + buffer.append("> "); } else if (node.getOperation() == QueryConstants.OPERATION_GT_VALUE) { buffer.append("gt"); } else if (node.getOperation() == QueryConstants.OPERATION_IN) { buffer.append("IN"); + } else if (node.getOperation() == QueryConstants.OPERATION_LE_GENERAL) { + buffer.append("<="); } else if (node.getOperation() == QueryConstants.OPERATION_LE_VALUE) { buffer.append("le"); } else if (node.getOperation() == QueryConstants.OPERATION_LIKE) { buffer.append("LIKE"); + } else if (node.getOperation() == QueryConstants.OPERATION_LT_GENERAL) { + buffer.append("< "); } else if (node.getOperation() == QueryConstants.OPERATION_LT_VALUE) { buffer.append("lt"); } else if (node.getOperation() == QueryConstants.OPERATION_NE_GENERAL) { @@ -209,6 +217,8 @@ buffer.append("NOT NULL"); } else if (node.getOperation() == QueryConstants.OPERATION_NULL) { buffer.append("IS NULL"); + } else { + buffer.append("!!UNKNOWN OPERATION!!"); } buffer.append(" Prop=" + node.getProperty()); if (node.getValueType() == QueryConstants.TYPE_DATE) {