From: Adam Dickmeiss Date: Thu, 28 Aug 2003 18:46:54 +0000 (+0000) Subject: Fix for no preferredSyntax Set X-Git-Tag: YAZPP.0.6~5 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5053dee0c4d74ee87d8068fc1230eb721262e786;p=yazpp-moved-to-github.git Fix for no preferredSyntax Set --- diff --git a/src/yaz-z-cache.cpp b/src/yaz-z-cache.cpp index a79f6c1..8571410 100644 --- a/src/yaz-z-cache.cpp +++ b/src/yaz-z-cache.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-cache.cpp,v 1.3 2003-07-25 19:28:07 adam Exp $ + * $Id: yaz-z-cache.cpp,v 1.4 2003-08-28 18:46:54 adam Exp $ */ #include @@ -143,6 +143,8 @@ int Yaz_RecordCache::match (Yaz_RecordCache_Entry *entry, if (!match) return 0; + if (!syntax) + return 0; // See if offset, OID match.. if (entry->m_offset == offset && entry->m_record->which == Z_NamePlusRecord_databaseRecord &&