Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLState is not using standard error codes [JDBC158] #201

Closed
firebird-automations opened this issue Jul 5, 2010 · 4 comments
Closed

SQLState is not using standard error codes [JDBC158] #201

firebird-automations opened this issue Jul 5, 2010 · 4 comments

Comments

@firebird-automations
Copy link

Submitted by: Wallace Wadge (wwadge)

Assigned to: Roman Rokytskyy (rrokytskyy)

Hi,

I'm the author of the Java connection pool BoneCP (http://jolbox.com).

According to this link:
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/core/r0sttmsg.htm

connection exceptions should trigger an SQLState code that starts with 08. For example MySQL returns broken connections as 08S01.

However one of my users reported:

15:05:08.985 [http-8080-1] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 335544726, SQLState: HY000
15:05:08.985 [http-8080-1] ERROR org.hibernate.util.JDBCExceptionReporter - GDS Exception. 335544726. Error reading data from the connection. Reason: Error reading data from the connection.

in response to a broken connection which eventually made the pool not recognise the error condition.

@firebird-automations
Copy link
Author

Commented by: Roman Rokytskyy (rrokytskyy)

We used SQLcodes from Firebird, seems that previous mapping was incomplete (HY000 is returned when no specific code is there). I have updated the mapping from FB 2.5 and now the GDScode 335544726 gets the 08006 SQLcode (so checking for the 08xxx) should work with your pool.

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

timeestimate: 0 [ 0 ]

timeoriginalestimate: 0 [ 0 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant