Skip to content

Commit

Permalink
connection
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlast committed Nov 5, 2023
1 parent a570846 commit 29a7517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Db/APIs/PostgreSQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ public function affected_rows($connection = null)
return 0;
}

return pg_affected_rows($connection === null ? $this->last_result : $result);
return pg_affected_rows($connection === null ? $this->last_result : $connection);
}

/**
Expand Down

0 comments on commit 29a7517

Please sign in to comment.