On 12/21/21 12:04, Jiří Činčura wrote:
Hi *,
I'm trying to read the response for op_batch_exec (op_batch_cs), the
p_batch_cs. But what I'm getting over the wire (using fbclient library) is this
`67 00 00 00 02 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01`
and I'm confused. Here's what I'm decoding manually:
67 00 00 00 => op_batch_cs
02 00 00 00 => p_batch_statement
01 00 00 00 => p_batch_reccount
01 00 00 00 => p_batch_updates
But what's the remaining part:
00 00 00 00 00 00 00 00 01
It should be p_batch_vectors and p_batch_errors, both defined as ULONG. But
it's not 2x 4 bytes. There's this extra 01. I'm clearly missing something.
First 8 clear:
00 00 00 00 : p_batch_vectors // number of failed messages(records) with
status-vectors
00 00 00 00 : p_batch_errors // number of failed messages(records) without
status-vectors
i.e. you have no errors
later something strange happens
should be p_batch_updates SLONGS (i.e. 4 bytes) but we see only one single
byte: 01
this I can't explain right now, looks like 3 last 00 got lost somehow
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel