X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcqltransform.c;h=9b2e18d0f460e278e3e0a292997e63f0ec56cf03;hb=1bc220ecf4e742f3ef70335a4217d9e72cca564f;hp=14964664c7246df1f94bc18c268d23efe343d18a;hpb=c584380ce880fe0e0ba036f476f8a037763eac21;p=yaz-moved-to-github.git diff --git a/src/cqltransform.c b/src/cqltransform.c index 1496466..9b2e18d 100644 --- a/src/cqltransform.c +++ b/src/cqltransform.c @@ -1,4 +1,4 @@ -/* $Id: cqltransform.c,v 1.18 2005-12-21 15:09:50 mike Exp $ +/* $Id: cqltransform.c,v 1.20 2006-03-10 17:18:09 mike Exp $ Copyright (C) 1995-2005, Index Data ApS Index Data Aps @@ -390,9 +390,6 @@ void cql_transform_r(cql_transform_t ct, (*pr)("\" ", client_data); return ; } - cql_pr_attr_uri(ct, "index", ns, - cn->u.st.index, "serverChoice", - pr, client_data, 16); } else { @@ -402,6 +399,7 @@ void cql_transform_r(cql_transform_t ct, ct->addinfo = 0; } } + cql_pr_attr(ct, "always", 0, 0, pr, client_data, 0); if (cn->u.st.relation && !cql_strcmp(cn->u.st.relation, "=")) cql_pr_attr(ct, "relation", "eq", "scr", pr, client_data, 19); @@ -425,6 +423,11 @@ void cql_transform_r(cql_transform_t ct, } cql_pr_attr(ct, "structure", cn->u.st.relation, 0, pr, client_data, 24); + if (ns) { + cql_pr_attr_uri(ct, "index", ns, + cn->u.st.index, "serverChoice", + pr, client_data, 16); + } if (cn->u.st.relation && !cql_strcmp(cn->u.st.relation, "all")) { emit_wordlist(ct, cn, pr, client_data, "and");