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 {