From c3c6ca07defcc1f713c1f2af3d7a3f733f40573f Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 3 Jul 2007 16:40:11 +0000 Subject: [PATCH] PrefixNode propagates sort keys. --- src/org/z3950/zing/cql/CQLPrefixNode.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/org/z3950/zing/cql/CQLPrefixNode.java b/src/org/z3950/zing/cql/CQLPrefixNode.java index aae6038..dd01d85 100644 --- a/src/org/z3950/zing/cql/CQLPrefixNode.java +++ b/src/org/z3950/zing/cql/CQLPrefixNode.java @@ -1,4 +1,4 @@ -// $Id: CQLPrefixNode.java,v 1.9 2007-07-03 13:40:41 mike Exp $ +// $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $ package org.z3950.zing.cql; import java.lang.String; @@ -9,7 +9,7 @@ import java.util.Vector; /** * Represents a prefix node in a CQL parse-tree. * - * @version $Id: CQLPrefixNode.java,v 1.9 2007-07-03 13:40:41 mike Exp $ + * @version $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $ */ public class CQLPrefixNode extends CQLNode { /** @@ -35,14 +35,11 @@ public class CQLPrefixNode extends CQLNode { public String toXCQL(int level, Vector prefixes, Vector sortkeys) { - if (sortkeys != null) - throw new Error("CQLPrefixNode.toXCQL() called with sortkeys"); - Vector tmp = (prefixes == null ? new Vector() : new Vector(prefixes)); tmp.add(prefix); - return subtree.toXCQL(level, tmp); + return subtree.toXCQL(level, tmp, sortkeys); } public String toCQL() { -- 1.7.10.4