From 467ed471b499b9d2ade62bfdb68030bf0bae2753 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 5 Aug 2015 13:06:32 +0200 Subject: [PATCH] Fix incorrect diagnostic for reverse cql2pqf MP-619 The cql_transform_rpn2cql_stream_r returns Bib-1 diagnostics; not SRU diagnostics. --- src/filter_cql_rpn.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 1.7.10.4