I have JDBC code which inserts into a database table by executing a PreparedStatement. When I run the code on an in-memory HSQLDB database (as part of a JUnit test) I get a
Some further info I found in http://hsqldb.org/doc/changelog_1_7_2.txt:
The execute(String sql), executeUpdate(String sql) and executeQuery(String sql)
commands are no-longer supported for PreparedStatements according to JDBC specs.
Use an ordinary Statement for calling these methods.