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

Regression: null error message when calling non-existing generator [JDBC85] #124

Closed
firebird-automations opened this issue Aug 18, 2006 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Ludovic Orban (lorban)

Assigned to: Roman Rokytskyy (rrokytskyy)

When executing this statement: INSERT INTO users(id) VALUES (GEN_ID(user_id_seq, 1))
and the user_id_seq generator is not present, Jaybird throws an exception.

Now compare these two stack traces:

with JayBird-2.0.1 JDK_1.4:

org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544343. invalid request BLR at offset 34
generator USER_ID_SEQ is not defined
at org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:118)
at org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:40)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:850)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:813)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:806)
at org.firebirdsql.pool.PingablePooledConnection.prepareStatement(PingablePooledConnection.java:399)
at org.firebirdsql.pool.XPreparedStatementCache.take(XPreparedStatementCache.java:117)
at org.firebirdsql.pool.PingablePooledConnection.getPreparedStatement(PingablePooledConnection.java:376)
at org.firebirdsql.pool.PooledConnectionHandler.handlePrepareStatement(PooledConnectionHandler.java:295)
at org.firebirdsql.pool.PooledConnectionHandler.invoke(PooledConnectionHandler.java:223)
at $Proxy0.prepareStatement(Unknown Source)
...

and with Jaybird-2.1.0 JDK_1.4:

org.firebirdsql.jdbc.FBSQLException: Exception. null
at org.firebirdsql.jdbc.FBStatementFactory.createPreparedStatement(FBStatementFactory.java:85)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:869)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:824)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:817)
at org.firebirdsql.pool.PingablePooledConnection.prepareStatement(PingablePooledConnection.java:431)
at org.firebirdsql.pool.XPreparedStatementCache.take(XPreparedStatementCache.java:117)
at org.firebirdsql.pool.PingablePooledConnection.getPreparedStatement(PingablePooledConnection.java:408)
at org.firebirdsql.pool.PooledConnectionHandler.handlePrepareStatement(PooledConnectionHandler.java:295)
at org.firebirdsql.pool.PooledConnectionHandler.invoke(PooledConnectionHandler.java:223)
at $Proxy0.prepareStatement(Unknown Source)
...

The error message got dropped in version 2.1.0.

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

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

resolution: Fixed [ 1 ]

Fix Version: Jaybird 2.2 [ 10053 ]

Fix Version: Jaybird 2.1 [ 10050 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

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