Closed GoogleCodeExporter closed 9 years ago
Hi John, thanks!
Indeed, this seems to be a bug. In SQLiteStatement.reset(boolean), the return
value from sqlite3_reset is treated as an error code and causes an exception to
be thrown and the rest of the state not cleared; while in fact sqlite3_reset
returns the last error from sqlite3_step, according to
http://www.sqlite.org/c3ref/reset.html
We'll fix it in the next version, which is planned for delivery soon. Meanwhile
I'm afraid the only workaround is to dispose and create the SQLiteStatement
object anew. Or, if you feel like hacking, calling reset(), catching the error,
and then using reflection to clear SQLiteStatement's internal state manually
like it's done in reset() method.
Sorry about this.
Kind regards,
Igor
Original comment by ser...@almworks.com
on 29 Aug 2014 at 4:53
This issue was closed by revision r333.
Original comment by evj...@almworks.com
on 20 Sep 2014 at 12:50
Original issue reported on code.google.com by
John.PV....@gmail.com
on 28 Aug 2014 at 8:10