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

FBSQLException contains least specific errorcode [JDBC221] #270

Closed
firebird-automations opened this issue Jan 2, 2012 · 6 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: @mrotteveel

When attempting to drop a table which does not exist the error code returned by FBSQLException.getErrorCode() is isc_dsql_error = 335544569. The most specific error code however is isc_dsql_table_not_found = 336397206 which is found deep in a chain of GDSException.next.

I would think that returning the most specific error would be more helpful.

Commits: 56d54e9 909611c FirebirdSQL/fbt-repository@86db8b5

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

It looks like this has changed in Firebird 3.0 (or at least I saw that a DROP table (if the table does not exist) which in FB 2.5 throws a isc_dsql_error first, now returns the more specific isc_no_meta_update)

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

assignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

Fix Version: Jaybird 3.0 [ 10440 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

Added heuristics when creating exceptions to select a more specific error code and sql state.

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

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

2 participants