Ian Pilcher wrote:
> Based on my reading of the PostgreSQL docs, getErrorCode should be
> returning 23503. Any idea what's going on?
Try SQLException.getSQLState() instead. The backend returns (somewhat
standardized) alphanumeric SQL states with errors and the driver exposes
these as via getSQLState(). getErrorCode() is numeric, vendor-specific,
and unused by the current driver.
You may also need to upgrade your JDBC driver; I don't know how recent
the driver in the RPMs you are using is.
-O