X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frpn2cql.c;h=81ca55038e05686af5d4dfc264dffd569651bdc9;hp=b8debeae5d90ecda91c0b368831e73078e4fff31;hb=35a1937624d302f2a53618958036a41a88b70388;hpb=173f78f50536784bdc6a59d4586ba409b2b69182 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; }