dbTalk Databases Forums  

[BUGS] BUG #2593: Improper implimentation of SQLException

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2593: Improper implimentation of SQLException in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Igor Urisman
 
Posts: n/a

Default [BUGS] BUG #2593: Improper implimentation of SQLException - 08-29-2006 , 05:49 AM







The following bug has been logged online:

Bug reference: 2593
Logged by: Igor Urisman
Email address: igor.urisman (AT) gmail (DOT) com
PostgreSQL version: 8.1.3
Operating system: Windows
Description: Improper implimentation of SQLException
Details:

The vendor error code is returned in getSQLState(), instead of getError().
At least this is the case for 23505 (ERROR: duplicate key violates unique
constraint ...)
Cheers.
Igor Urisman,
Berkeley, Ca, U.S.A.
P.S. Enjoying Postgres immensly. Thanks for the great job.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote
  #2  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #2593: Improper implimentation of SQLException - 08-30-2006 , 12:50 AM








On Sun, 27 Aug 2006, Igor Urisman wrote:

Quote:
The following bug has been logged online:

Bug reference: 2593
PostgreSQL version: 8.1.3
Description: Improper implimentation of SQLException
Details:

The vendor error code is returned in getSQLState(), instead of getError().
At least this is the case for 23505 (ERROR: duplicate key violates unique
constraint ...)
Postgresql does not have specific vendor error codes and always returns 0
for SQLException.getErrorCode(). Postgresql uses standard SQL State
values only. These often have characters in them so they cannot also be
returned as the vendor error code.

Perhaps the problem is that this page is referring to error codes when a
more careful reading shows that it is really talking about sql state
values?

http://www.postgresql.org/docs/curre...-appendix.html

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.