version 2 check
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 Sep 2013 08:13:45 +0000 (10:13 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 Sep 2013 08:13:45 +0000 (10:13 +0200)
src/srw.c

index f7fb927..e628d2d 100644 (file)
--- 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);