X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcqltransform.c;h=8253e5022ac8a4e86a9537ade71d1542f7b3e991;hp=efb15e80a8767f3e10e437bfe35dbebd9d26fece;hb=9ddbdf848f115043940d3e2edc72d434ebd53a0d;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/cqltransform.c b/src/cqltransform.c index efb15e8..8253e50 100644 --- a/src/cqltransform.c +++ b/src/cqltransform.c @@ -586,7 +586,6 @@ static int has_modifier(struct cql_node *cn, const char *name) { return 0; } - static void emit_term(cql_transform_t ct, struct cql_node *cn, const char *term, int length, @@ -600,6 +599,8 @@ static void emit_term(cql_transform_t ct, if (has_modifier(cn, "regexp")) process_term = 0; + else if (has_modifier(cn, "unmasked")) + process_term = 0; else if (cql_lookup_property(ct, "truncation", 0, "cql")) { process_term = 0; @@ -609,7 +610,7 @@ static void emit_term(cql_transform_t ct, assert(cn->which == CQL_NODE_ST); if (process_term) - { + { /* convert term via truncation.things */ unsigned anchor = 0; unsigned trunc = 0; for (i = 0; i < length; i++)