On Feb 12, 2013, at 8:29 PM, Petite Abeille <petite.abeille@gmail.com> wrote: > > 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. For the record… courtesy of Ignacio Burgueño, back in Oct 2010: http://lists.luaforge.net/pipermail/kepler-project/2010-October/004377.html