X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frpn2cql.c;h=cac867d79dc70587cf05628be00b302cb895f117;hp=c59ca90579de82e362b1c7a72b099f890cfb1cda;hb=6d59a642cb7cd71df249fc4ecf5928ea79c7038c;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/src/rpn2cql.c b/src/rpn2cql.c index c59ca90..cac867d 100644 --- a/src/rpn2cql.c +++ b/src/rpn2cql.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -173,7 +173,7 @@ static Odr_int lookup_truncation(Z_AttributeList *attributes) } /* No truncation specified */ return 0; -}; +} static int rpn2cql_simple(cql_transform_t ct, void (*pr)(const char *buf, void *client_data), @@ -218,10 +218,17 @@ static int rpn2cql_simple(cql_transform_t ct, if (trunc <= 3 || trunc == 100 || trunc == 102 || trunc == 104) { + int quote_it = 0; for (i = 0 ; i < lterm; i++) if (strchr(" ()=>