Skip to content

Commit

Permalink
Use NestableTransactionExecutor::execute()
Browse files Browse the repository at this point in the history
Prepare then execute strategy borrowed incorrectly from amphp/mysql.
  • Loading branch information
trowski committed Dec 12, 2023
1 parent 283e52e commit ad61674
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ConnectionTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ public function execute(string $sql, array $params = []): Result

++$this->refCount;
try {
$statement = $this->executor->prepare($sql);
$result = $statement->execute($params);
$result = $this->executor->execute($sql, $params);
} catch (\Throwable $exception) {
EventLoop::queue($this->release);
throw $exception;
Expand Down

0 comments on commit ad61674

Please sign in to comment.