* Europagate, 1995
*
* $Log: zaccess.c,v $
- * Revision 1.8 1995/02/17 14:48:41 quinn
+ * Revision 1.9 1995/02/17 15:17:51 quinn
+ * Bug fix
+ *
+ * Revision 1.8 1995/02/17 14:48:41 quinn
* 'nother bug in present
*
* Revision 1.7 1995/02/17 14:42:21 quinn
}
do
{
- gw_log(ZASS_DEBUG, ZASS_TYPE, "Fetching %d records from # %d", num,
+ gw_log(ZASS_DEBUG, ZASS_TYPE, "Fetching %d records from # %d", num - r.num,
start);
- pdu = PresentRequest_CreateInitAllASCII(0, resname, start, num, "F",
+ pdu = PresentRequest_CreateInitAllASCII(0, resname, start, num - r.num, "F",
USMARC_OID);
if (!pdu)
{
}
r.nextpos = PresentResponse_GetNextResultSetPosition(pdu);
start = r.nextpos;
- num -= r.num;
+ r.num;
switch(PresentResponse_GetRecordType(pdu))
{
case RESPONSERECORDS_TAG:
}
PresentResponse_Destroy(pdu);
}
- while (num);
+ while (num - r.num);
*rec = 0;
return &r;