error codes
error codes
От:
Felipe Schnack <felipes@ritterdosreis.br>
Дата:
this driver is setting the error code when a SQLException is thrown? I got an duplicate primary key error, but getErrorCode() result is zero. Detect which error occurred using getMessage() isn't a really good way... :-) -- Felipe Schnack Analista de Sistemas felipes@ritterdosreis.br Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br felipes@ritterdosreis.br Fone/Fax.: (51)32303328
Re: error codes
От:
Barry Lind <barry@xythos.com>
Дата:
Felipe, The problem is that the postgres database doesn't support error codes, so jdbc doesn't have anything to report back. This is on the todo list for the server and when the server starts returning error codes jdbc will pass them on to the caller. thanks, --Barry Felipe Schnack wrote: > this driver is setting the error code when a SQLException is thrown? I > got an duplicate primary key error, but getErrorCode() result is zero. > Detect which error occurred using getMessage() isn't a really good > way... :-)