From: Adam Dickmeiss Date: Wed, 19 Aug 2009 18:56:58 +0000 (+0200) Subject: RPN to CQL: no use attr is treated as serverChoice X-Git-Tag: v3.0.48~6 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=35a1937624d302f2a53618958036a41a88b70388;p=yaz-moved-to-github.git RPN to CQL: no use attr is treated as serverChoice --- diff --git a/src/rpn2cql.c b/src/rpn2cql.c index b8debea..81ca550 100644 --- a/src/rpn2cql.c +++ b/src/rpn2cql.c @@ -21,6 +21,7 @@ static const char *lookup_index_from_string_attr(Z_AttributeList *attributes) { int j; + int server_choice = 1; for (j = 0; j < attributes->num_attributes; j++) { Z_AttributeElement *ae = attributes->attributes[j]; @@ -37,8 +38,11 @@ static const char *lookup_index_from_string_attr(Z_AttributeList *attributes) return son->u.string; } } + server_choice = 0; /* not serverChoice because we have use attr */ } } + if (server_choice) + return "cql.serverChoice"; return 0; }