Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 2, 2024
1 parent be670af commit 50e7c94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Database/Drivers/PDO/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public function query(string $sql, array $params = []): Result
public function execute(string $sql): int
{
try {
return $this->pdo->exec($sql);
$this->pdo->prepare($sql)->execute();
return 1;
} catch (PDOException $e) {
throw new ($this->convertException($e, $args, null, new SqlLiteral($sql)))(...$args);
}
Expand Down

0 comments on commit 50e7c94

Please sign in to comment.