Using batch execution with Statement.RETURN_GENERATED_KEYS (or one of the other generated keys options) in Jaybird 2.2 results in:
Exception in thread "main" java.sql.BatchUpdateException
at org.firebirdsql.jdbc.AbstractPreparedStatement.executeBatch(AbstractPreparedStatement.java:941)
at nl.lawinegevaar.fb.TestIdentityTable.main(TestIdentityTable.java:32)
We should throw an explicit exception that batch execution with generated keys is not supported (maybe already in addBatch()?)
Calls to addBatch() and executeBatch() on a FBPreparedStatement instance now throw a FBDriverNotCapableException when the statements was prepared with one of the generated keys options.
Submitted by: @mrotteveel
Is related to JDBC452
Using batch execution with Statement.RETURN_GENERATED_KEYS (or one of the other generated keys options) in Jaybird 2.2 results in:
Exception in thread "main" java.sql.BatchUpdateException
at org.firebirdsql.jdbc.AbstractPreparedStatement.executeBatch(AbstractPreparedStatement.java:941)
at nl.lawinegevaar.fb.TestIdentityTable.main(TestIdentityTable.java:32)
We should throw an explicit exception that batch execution with generated keys is not supported (maybe already in addBatch()?)
Commits: 6b9c43c bdc6c4c
The text was updated successfully, but these errors were encountered: