From: Adam Dickmeiss Date: Tue, 20 Sep 2011 09:13:52 +0000 (+0200) Subject: CQL/CCL to RPN. Checks for leading @ X-Git-Tag: v4.2.16~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=fcfd9a074ff29ffdd52e5eb0ee348fb74f0a0d17;p=yaz-moved-to-github.git CQL/CCL to RPN. Checks for leading @ Special case, since @ precedes PQF operators. --- diff --git a/src/querytowrbuf.c b/src/querytowrbuf.c index 8ca78a2..109fec6 100644 --- a/src/querytowrbuf.c +++ b/src/querytowrbuf.c @@ -24,6 +24,8 @@ void yaz_encode_pqf_term(WRBUF b, const char *term, int len) break; if (len > 0 && i == len) { + if (term[0] == '@') + wrbuf_putc(b, '\\'); for (i = 0; i