Fixes "less than", "greater than" filters on custom fields with postgres (#6180).
Authored by: jplang 2011-07-09
Parent: [r6215]
Child: [r6217]