projects
/
cql-java-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c3c6ca0
)
Fail a sortspec of zero keys.
author
mike
<mike>
Tue, 3 Jul 2007 16:40:41 +0000
(16:40 +0000)
committer
mike
<mike>
Tue, 3 Jul 2007 16:40:41 +0000
(16:40 +0000)
src/org/z3950/zing/cql/CQLParser.java
patch
|
blob
|
history
diff --git
a/src/org/z3950/zing/cql/CQLParser.java
b/src/org/z3950/zing/cql/CQLParser.java
index
f622bbb
..
9ccb139
100644
(file)
--- a/
src/org/z3950/zing/cql/CQLParser.java
+++ b/
src/org/z3950/zing/cql/CQLParser.java
@@
-1,4
+1,4
@@
-// $Id: CQLParser.java,v 1.37 2007-07-03 13:34:30 mike Exp $
+// $Id: CQLParser.java,v 1.38 2007-07-03 16:40:41 mike Exp $
package org.z3950.zing.cql;
import java.io.IOException;
package org.z3950.zing.cql;
import java.io.IOException;
@@
-12,7
+12,7
@@
import java.io.FileNotFoundException;
/**
* Compiles CQL strings into parse trees of CQLNode subtypes.
*
/**
* Compiles CQL strings into parse trees of CQLNode subtypes.
*
- * @version $Id: CQLParser.java,v 1.37 2007-07-03 13:34:30 mike Exp $
+ * @version $Id: CQLParser.java,v 1.38 2007-07-03 16:40:41 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
@@
-105,6
+105,11
@@
public class CQLParser {
ModifierSet ms = gatherModifiers(sortindex);
sortnode.addSortIndex(ms);
}
ModifierSet ms = gatherModifiers(sortindex);
sortnode.addSortIndex(ms);
}
+
+ if (sortnode.keys.size() == 0) {
+ throw new CQLParseException("no sort keys");
+ }
+
node = sortnode;
}
node = sortnode;
}