Syntax error in SQL statement "SELECT * FROM" "STORIES" "WHERE" "TITLE" "...
@bemace is true that the header seems to have quotation marks that wrap the escaping of the lines generated by the request.
In ORMLite, should you use the SelectArg function, which will generate a query with SQL? arguments, and then pass the string directly to the prepared statement.
For documentation on SelectArg see
http://ormlite.com/docs/select-arg
With SelectArg you will do something like:
QueryBuilder<Story, Integer> queryBuilder = StoryDao.queryBuilder(); SelectArg titleArg = new SelectArg(); queryBuilder.where().eq(Story.TITLE_FIELD_NAME, titleArg); PreparedQuery<Story> preparedQuery = queryBuilder.prepare(); titleArg.setValue(title); List<Story> accountList = StoryDao.query(preparedQuery);
Gray
source share