From 0e6a432e1be3ac44fba55abd19a62fc294b2fcf7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 4 Sep 2013 10:13:45 +0200 Subject: [PATCH] version 2 check --- src/srw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/srw.c b/src/srw.c index f7fb927..e628d2d 100644 --- a/src/srw.c +++ b/src/srw.c @@ -1192,7 +1192,7 @@ int yaz_srw_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, if (!version2) add_xsd_string(ptr, "version", (*p)->srw_version); - if (strcmp((*p)->srw_version, "2.") > 0) + if (version2) { if (queryType && strcmp(queryType, "cql")) add_xsd_string(ptr, "queryType", queryType); -- 1.7.10.4