From 43dc6cc6daf84b2d8689b3e1ab85a1684a6ea913 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Wed, 7 Jun 2006 18:25:15 +0000 Subject: [PATCH] Exposing SRW_SORTKEYS parameter to handler --- SimpleServer.xs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SimpleServer.xs b/SimpleServer.xs index aab88a9..012a301 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.47 2006-06-05 18:01:25 quinn Exp $ + * $Id: SimpleServer.xs,v 1.48 2006-06-07 18:25:15 quinn Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -698,6 +698,8 @@ int bend_search(void *handle, bend_search_rr *rr) #endif href = newHV(); hv_store(href, "SETNAME", 7, newSVpv(rr->setname, 0), 0); + if (rr->srw_sortKeys && *rr->srw_sortKeys) + hv_store(href, "SRW_SORTKEYS", 12, newSVpv(rr->srw_sortKeys, 0), 0); hv_store(href, "REPL_SET", 8, newSViv(rr->replace_set), 0); hv_store(href, "ERR_CODE", 8, newSViv(0), 0); hv_store(href, "ERR_STR", 7, newSVpv("", 0), 0); -- 1.7.10.4