Skip to content

Commit a0bef06

Browse files
committed
Bug fixes #2
* Written more test cases (e.g. concurrent transactions)
1 parent ed30298 commit a0bef06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Driver/MakisePostgres/PooledMakisePostgresDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ protected function statement(
533533
}
534534

535535
if (($conn = $this->getTransactionConn()) !== null && isset($statement)) {
536+
// statements cannot be deallocated inside broken transaction block
537+
// so statements de-allocation should be delayed until transaction rollback
536538
$conn->addStatementToDeallocate($statement);
537539
}
538540

0 commit comments

Comments
 (0)