SQL exception preparing query with ORMLite

后端 未结 4 420
一向
一向 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:38

    I'm kind of guessing but it looks like there's a problem with the value in the title field, maybe an unescaped quote mark?

    I'm not familiar with ORMLite but title = 'Deepcut case leads 'not followed'' doesn't look right. Should probably be "Deepcut case leads 'not followed'" or 'Deepcut case leads \'not followed\'' or some such.

提交回复
热议问题