lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 23 Feb, 2014, at 22:19 , Milind Gupta <> wrote:

> Hi,
>            I tried using luasql for sqlite3 in Luaforwindows and in LuaDist. Somehow the version in LuaDist causes lua to crash when the following is executed in the script:
> curr = conn:execute("SELECT last_insert_rowid();")
>     if not curr then
>         error("Cannot get the last written record's row ID")
>     end
>     local row = curr:fetch({},"a")    --- This causes lua to crash
> The same works fine in Luaforwindows. Lua for windows just has 1 sqlite3 dll while in luadist it seems to be divided into sqlite3.dll and libsqlite3.dll.
> Probably something needs to be fixed in the Luadist version.
> Regards,
> Milind
Thanks for reporting it.
I assume your sqlite3.dll is located in lib/lua/sqlite. If so this makes it the binding library which should depend on the bin/libsqlite3.dll library which is the actual sqlite library.

Looking into the error now.


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail