Skip to content

Commit 747dc17

Browse files
authored
Use connection->execute directly for amphp/postgres (#14)
1 parent 322e210 commit 747dc17

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/AmpPostgresConnectionAdapter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public function getUnderlyingConnection() : PostgresLink {
5050
}
5151

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

5756
protected function executeSelectAllSql(string $table) : array {

0 commit comments

Comments
 (0)