android.database.sqlite.SQLiteCompiledSql.native_compile(....)
I was under the assumption that the QueryBuilder would escape all input.
Any idea how I can escape the input the make it accept all parameters?
Kind regards,
Martijn Brinkers
PS. I use ORMLite on Android
> I have some troubles building a query for which the parameters contain
> single quotes ('). It seems that where parameters are not escaped. The
> single quotes interfere with the query which result in a SQLException:
This was covered recently on the dev list:
http://groups.google.com/group/ormlite-dev/browse_thread/thread/71d07202404f97e7
The answer was that the right thing to do if you strings have quotes in them is to use the SelectArg mechanism:
http://ormlite.com/docs/select-arg
This sets the arguments on the SQL statement instead of compiling them in.
gray