mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:40:38 +01:00
Fixed #7262: Repeated op_batch_create leaks the batch
This commit is contained in:
parent
9c703c0e5e
commit
217ca7582a
@ -3489,6 +3489,10 @@ void rem_port::batch_create(P_BATCH_CREATE* batch, PACKET* sendL)
|
|||||||
getHandle(statement, batch->p_batch_statement);
|
getHandle(statement, batch->p_batch_statement);
|
||||||
statement->checkIface();
|
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 ULONG blr_length = batch->p_batch_blr.cstr_length;
|
||||||
const UCHAR* blr = batch->p_batch_blr.cstr_address;
|
const UCHAR* blr = batch->p_batch_blr.cstr_address;
|
||||||
if (!blr)
|
if (!blr)
|
||||||
|
Loading…
Reference in New Issue
Block a user