Skip to content

Commit 6e46764

Browse files
authored
Fix getting affected rows from $statement not $pdo (#5166)
1 parent bf81afe commit 6e46764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PostgreSqlSwooleExtConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function affectingStatement(string $query, array $bindings = []): int
8383
$result = $statement->execute($this->prepareBindings($bindings));
8484

8585
$this->recordsHaveBeenModified(
86-
($count = $this->pdo->affectedRows($result)) > 0
86+
($count = $statement->affectedRows($result)) > 0
8787
);
8888

8989
return $count;

0 commit comments

Comments
 (0)