Has anyone gotten an Android app working with luasqlite3 calls that use stmt = db:prepare(), stmt:bind…(), stmt:step(), stmt:finalize()?
My iOS app works fine with luasqlite3, but when I run on Kindle Fire, reads (with db:nrows()) and writes with db:exec() work fine, but using prepared UPDATE statements causes “cannot open file” (sqlite3 error code 14, CANTOPEN).
I don’t want to write an entire parameter-binding kludge to handle this, so I’m hoping someone can tell me what the problem is.
Things are definitely different on Android. One problem I already got past is that you can’t do a “break” in a db:nrows() loop – that leaves the Android db connection in a bad state.
So I’m hoping someone has a similar magic answer for bound prepared statements . . .
[import]uid: 25887 topic_id: 26429 reply_id: 326429[/import]
[import]uid: 25057 topic_id: 26429 reply_id: 108453[/import]