lua-users home
lua-l archive

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


I guess the best is to replace the assert(0) with something that prints the code, and then look it up in sqltypes.h, sqlext.h or sqlext.h

There is also SQL_GUID, and lots of interval types. hard to say which one is causing the problem.

On 3/8/2012 6:19 AM, Ignacio Burgueño wrote:

On Thu, Mar 8, 2012 at 9:06 AM, Patrick Rapin <toupie300@gmail.com
<mailto:toupie300@gmail.com>> wrote:

    The problem is not in Lua itself, so it is improbable that Lua 5.2
    will fix the problem !


Indeed.

    The file ls_odbc.c is part of luasql package.
    Looking at the source on GitHub [1], line 163 effectively contains an
    assert statement.
    It is the "default" case of the following switch:


What type is column SOCDOS ? I presume that the column type returned by
the 64 bit version of the odbc driver is different in this case. Maybe
SQL_WCHAR or something like that.