BUG: SQL fix for PgSQL
BUG: SQL fix for PgSQL

cpatrick/CDash,cpatrick/CDash,jcfr/CDash,cpatrick/CDash,cpatrick/CDash,cpatrick/CDash,jcfr/CDash,jcfr/CDash,jcfr/CDash,jcfr/CDash,jcfr/CDash,cpatrick/CDash