Fixed: activity broken by r2066 with postgresql (#2266).
Authored by: jplang 2008-12-02
Parent: [r2082]
Child: [r2084]