Bug 409661 - DatabaseException.getDatabaseErrorCode() returns incorrect code on Postgres 9.2
Summary: DatabaseException.getDatabaseErrorCode() returns incorrect code on Postgres 9.2
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard: postgresql
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-01 14:28 EDT by Jad Naous CLA
Modified: 2022-06-09 10:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jad Naous CLA 2013-06-01 14:28:22 EDT
With Postgres, the database error code is actually stored in PSQLException.getSQLState(). The value being returned now is 0 instead of the actual error code.
Comment 1 Tom Ware CLA 2013-07-08 09:46:24 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:20:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink