From: Adam Dickmeiss Date: Wed, 5 Aug 2015 11:06:32 +0000 (+0200) Subject: Fix incorrect diagnostic for reverse cql2pqf MP-619 X-Git-Tag: v1.9.0~1 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=467ed471b499b9d2ade62bfdb68030bf0bae2753;p=metaproxy-moved-to-github.git Fix incorrect diagnostic for reverse cql2pqf MP-619 The cql_transform_rpn2cql_stream_r returns Bib-1 diagnostics; not SRU diagnostics. --- diff --git a/src/filter_cql_rpn.cpp b/src/filter_cql_rpn.cpp index 273d209..dbe84e3 100644 --- a/src/filter_cql_rpn.cpp +++ b/src/filter_cql_rpn.cpp @@ -162,10 +162,8 @@ void yf::CQLtoRPN::Impl::process(mp::Package &package) odr, &addinfo); if (r) { - int error_code = yaz_diag_srw_to_bib1(r); - Z_APDU *f_apdu = - odr.create_searchResponse(apdu_req, error_code, addinfo); + odr.create_searchResponse(apdu_req, r, addinfo); package.response() = f_apdu; return; }