HSQLDB cryptic exception message: “feature not supported”

前端 未结 3 1092
执笔经年
执笔经年 2021-01-17 18:56

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

3条回答
  •  清歌不尽
    2021-01-17 19:37

    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.
    

提交回复
热议问题