Postgres error codes are strings, not integers

See http://www.postgresql.org/docs/8.2/static/errcodes-appendix.html