Product Documentation

FairCom DB V12 Release Notes

Previous Topic

Next Topic

c-treeDB - ctdbNextBatch() no longer returns last record twice when filters are in place

In some cases ctdbNextBatch() returned the last record twice when filters were in place. The logic has been modified to correct this:

  1. ctdbNextBatch() has been modified to handle the case of no error and 0 records returned because no records match the filter criteria. In this situation it returns BTMT_ERR so the application gets the error indicating that there are no more records to retrieve.
  2. Logic has been added on the server to detect that no records are returned because they were filtered out by record filter criteria. Instead of returning no error, it now returns BTMT_ERR as if it were called with no more records to retrieve.

Compatibility Note: Notice that a call to ctdbNextBatch() will return BTMT_ERR in the cases indicated above. All combinations of client and server with and without the fix should behave properly.

TOCIndex