From: Adam Dickmeiss Date: Wed, 1 May 2002 10:22:52 +0000 (+0000) Subject: Never treat @op as operator in quotes X-Git-Tag: YAZ.1.8.7.CCL~15 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=ed00497d5186ebac1435b0f5e1ef2fe732cfa05c Never treat @op as operator in quotes --- diff --git a/zutil/pquery.c b/zutil/pquery.c index 55c2c67..46b221a 100644 --- a/zutil/pquery.c +++ b/zutil/pquery.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data. * See the file LICENSE for details. * - * $Id: pquery.c,v 1.13 2002-03-24 16:19:23 adam Exp $ + * $Id: pquery.c,v 1.14 2002-05-01 10:22:52 adam Exp $ */ #include @@ -89,7 +89,8 @@ static int query_token (struct lex_info *li) } if (**qptr) ++(*qptr); - if (li->lex_len >= 1 && li->lex_buf[0] == li->escape_char) + if (sep_char == ' ' && + li->lex_len >= 1 && li->lex_buf[0] == li->escape_char) { if (compare_term (li, "and", 1)) return 'a';