From: Jakub Skoczen Date: Thu, 9 Feb 2012 15:42:58 +0000 (+0100) Subject: Relation 'exact' is illegal in CQL 1.2 X-Git-Tag: v1.9~4 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b44d16a11b3f7ab297743bfff3d14a167a647503;p=cql-java-moved-to-github.git Relation 'exact' is illegal in CQL 1.2 --- diff --git a/src/main/java/org/z3950/zing/cql/CQLParser.java b/src/main/java/org/z3950/zing/cql/CQLParser.java index 9970aa7..795b2f1 100644 --- a/src/main/java/org/z3950/zing/cql/CQLParser.java +++ b/src/main/java/org/z3950/zing/cql/CQLParser.java @@ -268,7 +268,7 @@ public class CQLParser { lexer.sval.equals("all") || lexer.sval.equals("within") || lexer.sval.equals("encloses") || - lexer.sval.equals("exact") || + (lexer.sval.equals("exact") && compat != V1POINT2) || (lexer.sval.equals("scr") && compat != V1POINT2) || (lexer.sval.equals("adj") && compat == V1POINT2))) return true;