X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=a87ee4a9dad6d53c049193c2ee656b278ad1fb7f;hb=3b728a4683973b29bdb8eef0347cc79b01ff3e93;hp=10a7ef76e42abbe902179a80a79d15ef6e4526a2;hpb=85a2a0b28cb516d28ac70b7824f2b7d4b07e56ae;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 10a7ef7..a87ee4a 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zebraapi.c,v $ - * Revision 1.2 1998-05-20 10:12:19 adam + * Revision 1.3 1998-05-27 16:57:44 adam + * Zebra returns surrogate diagnostic for single records when + * appropriate. + * + * Revision 1.2 1998/05/20 10:12:19 adam * Implemented automatic EXPLAIN database maintenance. * Modified Zebra to work with ASN.1 compiled version of YAZ. * @@ -190,6 +194,7 @@ void zebra_records_retrieve (ZebraHandle zh, ODR stream, ZebraPosSet poset; int i, *pos_array; + zh->errCode = 0; pos_array = xmalloc (sizeof(*pos_array)); for (i = 0; ierrCode = + recs[i].errCode = zebra_record_fetch (zh, poset[i].sysno, poset[i].score, stream, input_format, comp, &recs[i].format, &recs[i].buf, &recs[i].len, &recs[i].base); + recs[i].errString = NULL; } } zebraPosSetDestroy (zh, poset, num_recs); @@ -233,6 +239,7 @@ void zebra_scan (ZebraHandle zh, ODR stream, Z_AttributesPlusTerm *zapt, int *position, int *num_entries, ZebraScanEntry **entries, int *is_partial) { + zh->errCode = 0; zebra_register_lock (zh); rpn_scan (zh, stream, zapt, attributeset, num_bases, basenames, position,