8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Fixed #7262: Repeated op_batch_create leaks the batch

This commit is contained in:
AlexPeshkoff 2022-09-30 20:00:33 +03:00
parent 9c703c0e5e
commit 217ca7582a

View File

@ -3489,6 +3489,10 @@ void rem_port::batch_create(P_BATCH_CREATE* batch, PACKET* sendL)
getHandle(statement, batch->p_batch_statement);
statement->checkIface();
// Check for previously opened batch for the statement
if (statement->rsr_batch)
Arg::Gds(isc_batch_open).raise();
const ULONG blr_length = batch->p_batch_blr.cstr_length;
const UCHAR* blr = batch->p_batch_blr.cstr_address;
if (!blr)