fix credit limit query for older DBD::Pg, RT#27267