The following rules apply to connection and command structures:
Within a connection, the results of a command must be completely processed before another command can be sent.
The exception to this rule is a ct_cursor (CS_CURSOR_OPEN) command, which generates a cursor result set. After ct_results returns CS_CURSOR_RESULT to indicate that cursor results are available:
The command structure that sent the cursor open command can be used to send a cursor update or cursor delete command related to the newly opened cursor.
Any other command structure within the connection can be used to send a command not related to the newly opened cursor.
A separate command structure must be used for each Client-Library cursor. A Client-Library cursor is one that is declared through ct_cursor. See Chapter 7, “Using Client-Library Cursors.”