Fetch
Client
Int32—p_operation-
Operation code (
op_fetch—65) Int32—p_sqldata_statement-
Statement handle
Buffer—p_sqldata_blr-
Output parameters in BLR format
Only needs to be sent on first fetch;subsequent fetches can send a zero-length buffer.
Int32—p_sqldata_message_number-
Message number (always
0) Int32—p_sqldata_messages-
Message count/fetch size (e.g.
200)The server may decide to return fewer rows than requested, even if the end-of-cursor wasn’t reached yet.
Server
Success response: one or more [wireprotocol-responses-fetch]
Failure response: [wireprotocol-responses-generic] — with an error in p_resp_status_vector
It is possible to receive [wireprotocol-responses-generic] with an error in the status vector after one or more fetch responses.