Execute batch
Client
Int32—p_operation-
Operation code (
op_batch_exec—101) Int32—p_batch_statement-
Statement handle
Int32—p_batch_transaction-
Transaction handle
Server
Success response:
Int32—p_operation-
Operation code
If operation equals op_batch_cs — 103`:
Batch completion state
Int32—p_batch_statement-
Statement handle
UInt32—p_batch_reccount-
Total records count
UInt32—p_batch_updates-
Number of update counters (records updated per each message)
UInt32—p_batch_vectors-
Number of per-message error blocks (message number in batch and status vector of an error processing it)
UInt32—p_batch_errors-
Number of simplified per-message error blocks (message number in batch without status vector)
Byte[]-
Update counters (records updated per each message), array of
Int32, length is equal top_batch_updatesLength is
p_batch_updates * 4bytes long. Byte[]-
Detailed info about errors in batch (for each error server sends number of message (
Int32) and status vector in standard way (exactly like in op_response).Number of such pairs is equal top_batch_vectors.Length can only be determined by correctly parsing the
<Int32><statusvector>pairs. Byte[]-
Simplified error blocks (for each error server sends number of message (
Int32) w/o status vector).Used when too many errors took place.Number of elements is equal top_batch_errors.Length is
p_batch_errors * 4bytes.
Failure response: [wireprotocol-responses-generic]