projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XML reader for data1 (EXPAT)
[yaz-moved-to-github.git]
/
zutil
/
pquery.c
diff --git
a/zutil/pquery.c
b/zutil/pquery.c
index
55c2c67
..
d17147e
100644
(file)
--- a/
zutil/pquery.c
+++ b/
zutil/pquery.c
@@
-2,12
+2,13
@@
* Copyright (c) 1995-2002, Index Data.
* See the file LICENSE for details.
*
* 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.15 2002-05-07 11:01:14 adam Exp $
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <ctype.h>
#include <yaz/proto.h>
#include <yaz/oid.h>
#include <yaz/proto.h>
#include <yaz/oid.h>
@@
-89,7
+90,8
@@
static int query_token (struct lex_info *li)
}
if (**qptr)
++(*qptr);
}
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';
{
if (compare_term (li, "and", 1))
return 'a';