From: | Barry Lind <barry(at)xythos(dot)com> |
---|---|
To: | Wieger Uffink <wieger(at)usmedia(dot)nl> |
Cc: | PostgreSQL-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Error Codes, JDBC, SQLExceptions |
Date: | 2001-08-24 17:30:27 |
Message-ID: | 3B868F33.8020908@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-novice |
Wieger,
The server does not have a concept of error codes currently (it is on
the TODO list). Therefore the JDBC driver has no error code to report
since it doesn't get one from the backend. When the server supports
error codes the JDBC driver will as well.
thanks,
--Barry
Wieger Uffink wrote:
> Hi,
>
> Im accessesing a postgreSQL db through JDBC, and I would like take make
> use of the method, getErrorCode in the SQLException class as in
> java.sql.
>
> So far I have been able to retreive exception messages but not the error
> codes in case of an SQL exception.
>
> I would like to know if postgreSQL propegates any errorcodes at all,
> since I found some post earlier on this list saying it was not
> implemented, but that post didnt refer to any specific version. If it is
> could someone also point out to me where these codes are defined?
>
> I could ofcourse base my excepion handling on the messages but I'd
> rather use codes.
>
> thanks in advance,
> Wieger
>
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-08-24 18:07:48 | Re: embedded SQL cursos declare fails |
Previous Message | Wieger Uffink | 2001-08-24 16:18:28 | Re: Error Codes, JDBC, SQLExceptions |
From | Date | Subject | |
---|---|---|---|
Next Message | Leandro Fanzone | 2001-08-24 20:12:19 | gcc 3.0.1 |
Previous Message | Wieger Uffink | 2001-08-24 16:18:28 | Re: Error Codes, JDBC, SQLExceptions |