Fixes #2019 function affected_rows in db_pgsql.php calls pg_affected_rows with the wrong parameter