From b44d16a11b3f7ab297743bfff3d14a167a647503 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 9 Feb 2012 16:42:58 +0100 Subject: [PATCH] Relation 'exact' is illegal in CQL 1.2 --- src/main/java/org/z3950/zing/cql/CQLParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4