The error is in com.j256.ormlite.android.AndroidCompiledStatement method getCursor().
An example error report:
Problems executing Android query: SELECT * FROM categories WHERE node_id = ? LIMIT 1 LIMIT 1
The error occurs when setMaxRows() has set the max field to non-null. A subsequent getCursor() call appends a LIMIT statement regardless of whether one is already appended to the original statement passed in the constructor.
One simple fix would be to ignore the max field when a limit is already appended to the statement.
The error is in com.j256.ormlite.android.AndroidCompiledStatement method getCursor(). An example error report:
The error occurs when setMaxRows() has set the
max
field to non-null. A subsequent getCursor() call appends a LIMIT statement regardless of whether one is already appended to the original statement passed in the constructor.One simple fix would be to ignore the
max
field when a limit is already appended to the statement.