From: | Dave Cramer <Dave(at)micro-automation(dot)net> |
---|---|
To: | Felipe Schnack <felipes(at)ritterdosreis(dot)br> |
Cc: | pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: REPOST: error codes |
Date: | 2002-09-26 15:01:04 |
Message-ID: | 1033052465.1964.68.camel@inspiron.cramers |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Felipe,
Unfortunately the server doesn't have error codes as such. The best way
to deal with this at the moment is to look at your logs.
Dave
On Thu, 2002-09-26 at 10:35, Felipe Schnack wrote:
> pgsql's jdbc 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(at)ritterdosreis(dot)br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> felipes(at)ritterdosreis(dot)br
> Fone/Fax.: (51)32303328
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2002-09-26 15:21:46 | Re: administering pgsql |
Previous Message | Felipe Schnack | 2002-09-26 14:35:18 | REPOST: error codes |