From 747dc17df7c3fd609f3046ae4aeea4c72d54d02a Mon Sep 17 00:00:00 2001 From: Charles Sprayberry Date: Sat, 25 Mar 2023 21:07:44 -0400 Subject: [PATCH] Use connection->execute directly for amphp/postgres (#14) --- src/AmpPostgresConnectionAdapter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AmpPostgresConnectionAdapter.php b/src/AmpPostgresConnectionAdapter.php index 3f45fe2..4f0bb6c 100644 --- a/src/AmpPostgresConnectionAdapter.php +++ b/src/AmpPostgresConnectionAdapter.php @@ -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 {