Get fetch count

The Client-Library command ct_cursor can request cursor row information. When the cursor command is TDS-CURSOR-INFO with the option CUR-SETROW (ct_cursor (CS-CURSOR-ROW)), the client is setting the row fetch count. In response, the Gateway-Library transaction calls the following functions:

Function

Action

TDCURPRO

Determine:

  • The type of cursor command, and

  • The number of rows to be returned with each fetch command.

[application logic]

[Adjust the cursor]

TDCURPRO

Send the cursor status to the client.

TDGETREQ

Retrieve the next part of the cursor request.