Skip to content

Commit

Permalink
Fixed bug that non-existing method exec called by `SwoolePostgresql…
Browse files Browse the repository at this point in the history
…Client`. (#5386)
  • Loading branch information
onix-systems-php authored Feb 11, 2023
1 parent 4dd3068 commit 8d5feb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/PostgreSqlSwooleExtManagesTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected function createTransaction()
*/
protected function createSavepoint()
{
$this->getPdo()->exec(
$this->getPdo()->query(
$this->queryGrammar->compileSavepoint('trans' . ($this->transactions + 1))
);
}
Expand Down Expand Up @@ -212,7 +212,7 @@ protected function performRollBack($toLevel)
if ($toLevel == 0) {
$this->getPdo()->query('ROLLBACK');
} elseif ($this->queryGrammar->supportsSavepoints()) {
$this->getPdo()->exec(
$this->getPdo()->query(
$this->queryGrammar->compileSavepointRollBack('trans' . ($toLevel + 1))
);
}
Expand Down

0 comments on commit 8d5feb1

Please sign in to comment.