dynamobi/dynamobi — Issue #539: [FRG-333] JDBC driver should give a proper unsupported exception on PreparedStatement.clearBatch
Author: dynamobi-build
Created: 2011-12-30 03:34:12+00:00
State: open
Labels: FRG, JDBC Engine Driver

[reporter="jvs", created="Mon, 18 Aug 2008 20:56:35 -0500 (GMT-05:00)"]
Currently, an incorrect error message from PreparedStatement.clearBatch is hiding the UnsupportedOperationException which would normally come from Statement.addBatch.

java.sql.SQLException: Statement already prepared

at net.sf.farrago.jdbc.engine.FarragoJdbcEnginePreparedStatement.clearBatch(FarragoJdbcEnginePreparedStatement.java:393)

at de.simplicit.vjdbc.command.PreparedStatementExecuteBatchCommand.execute(PreparedStatementExecuteBatchCommand.java:38)

at de.simplicit.vjdbc.server.command.ConnectionEntry.executeCommand(ConnectionEntry.java:161)

at de.simplicit.vjdbc.server.command.CommandProcessor.process(CommandProcessor.java:158)

at de.simplicit.vjdbc.server.rmi.CommandSinkRmiImpl.process(CommandSinkRmiImpl.java:37)