SQL exception preparing query with ORMLite

后端 未结 4 421
一向
一向 2021-01-15 05:58

I am using an ORM (ORMlite) and all my calls are going well until I get the following error.

Exception in thread \"main\" org.h2.jdbc.JdbcSQLExceptio

4条回答
  •  一向
    一向 (楼主)
    2021-01-15 06:57

    The exception says that there is some syntactical problem with your generated SELECT statement. Can you print out the generated query? Doing that might help you pin down the exact issue here.

    EDIT: Looking closely at your trace shows that string escaping is not handled properly here. Is this your own QueryBuilder? Also, as per this link, are you using SelectArg or directly setting the title?

提交回复
热议问题