On Feb 12, 2013, at 8:00 AM, Vadim Peretokin <vperetokin@gmail.com> wrote: > Has anyone had luck with PRAGMAs using a recent sqlite and LuaSQL version? Yes. In ls_sqlite3.c -> conn_execute() -> line 350, change sqlite3_prepare to sqlite3_prepare_v2.