Nested cursor-close commands

An application can close a cursor before fetching all its rows by sending a cursor-close command and handling the results. See “Step 5: Close the cursor” for more details.

Closing a cursor is preferred over calling ct_cancel to discard unwanted cursor rows for the following reasons: