mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +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);
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user