Skip to content

Commit

Permalink
Use connection->execute directly for amphp/postgres (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspray authored Mar 26, 2023
1 parent 322e210 commit 747dc17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AmpPostgresConnectionAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public function getUnderlyingConnection() : PostgresLink {
}

protected function executeInsertSql(string $sql, array $parameters) : void {
$statement = $this->connection->prepare($sql);
$statement->execute($parameters);
$this->connection->execute($sql, $parameters);
}

protected function executeSelectAllSql(string $table) : array {
Expand Down

0 comments on commit 747dc17

Please sign in to comment.