CQL: accept relations "within", "encloses"
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Mar 2013 09:12:40 +0000 (10:12 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Mar 2013 09:12:40 +0000 (10:12 +0100)
src/cql.y

index d1d5d1b..ea828dc 100644 (file)
--- a/src/cql.y
+++ b/src/cql.y
@@ -390,6 +390,10 @@ int yylex(YYSTYPE *lval, void *vp)
            relation_like = 1;
        if (!cql_strcmp(lval->buf, "adj"))
            relation_like = 1;
+       if (!cql_strcmp(lval->buf, "within"))
+           relation_like = 1;
+       if (!cql_strcmp(lval->buf, "encloses"))
+           relation_like = 1;
        if (relation_like)
            return PREFIX_NAME;
     }