From 866f5ec55f88a0404e8575680f8c4b491d510597 Mon Sep 17 00:00:00 2001 From: Rafael mreis Date: Tue, 10 Nov 2026 22:50:15 -0300 Subject: [PATCH] fix(remote): preserve explicit BLOB kind on zero-ID IBatch continuation (#9251) --- src/remote/protocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remote/protocol.cpp b/src/remote/protocol.cpp index 85f17225ba9..f5bb6756ba2 100644 --- a/src/remote/protocol.cpp +++ b/src/remote/protocol.cpp @@ -2502,7 +2502,8 @@ static bool_t xdr_blob_stream(RemoteXdr* xdrs, SSHORT statement_id, CSTRING* str flow.newBlob(*blobSize, *bpbSize); localStrm.curBpb.clear(); - if (!flow.bpbSize) + // A zero BLOB ID continues the preceding BLOB; keep its decoded kind. + if (!flow.bpbSize && (batchBlobId->gds_quad_high || batchBlobId->gds_quad_low)) localStrm.segmented = statement->rsr_batch_flags & (1 << Jrd::DsqlBatch::FLAG_DEFAULT_SEGMENTED); continue;