From: mike Date: Tue, 3 Jul 2007 16:40:11 +0000 (+0000) Subject: PrefixNode propagates sort keys. X-Git-Tag: v1.5~49 X-Git-Url: http://jira.indexdata.com/?a=commitdiff_plain;h=c3c6ca07defcc1f713c1f2af3d7a3f733f40573f;p=cql-java-moved-to-github.git PrefixNode propagates sort keys. --- 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() {