Fix: PostgreSQL's GetAffectedRows() function always returned 0.

Fixes #5628