session_shared: relay preferredRecordSyntax for search
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 15 Aug 2011 13:49:22 +0000 (15:49 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 15 Aug 2011 13:49:22 +0000 (15:49 +0200)
src/filter_session_shared.cpp

index c243dea..98d4497 100644 (file)
@@ -528,6 +528,10 @@ bool yf::SessionShared::BackendSet::search(
     for (; it != m_databases.end(); it++)
         req->databaseNames[i++] = odr_strdup(odr, it->c_str());
 
+    if (frontend_apdu->which == Z_APDU_searchRequest)
+        req->preferredRecordSyntax =
+            frontend_apdu->u.searchRequest->preferredRecordSyntax;
+
     search_package.request() = apdu_req;
 
     search_package.move();