You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the ODBC driver is outdated. I checked with both unixodbc and libiodbc2-dev Ubuntu packages and they provide different sql.h files, any of these are compatible with LuaSQL ODBC driver...
In our case we're using RHEL7, which presumably has fairly old odbc drivers, so I wouldn't be surprised. That said, if the proposed patch makes lua-odbc work with old and new versions of odbc libraries, isn't that a good thing to merge?
Luarocks install luasql-odbc error compile.
gcc -O2 -fPIC -I/usr/include/lua5.2 -c src/luasql.c -o src/luasql.o -I/usr/include
gcc -O2 -fPIC -I/usr/include/lua5.2 -c src/ls_odbc.c -o src/ls_odbc.o -I/usr/include
src/ls_odbc.c:39:2: error: unknown type name ‘SQLHENV’
SQLHENV henv; /* environment handle /
^~~~~~~
src/ls_odbc.c:47:2: error: unknown type name ‘SQLHDBC’
SQLHDBC hdbc; / database connection handle /
^~~~~~~
src/ls_odbc.c:56:2: error: unknown type name ‘SQLHSTMT’
SQLHSTMT hstmt; / statement handle */
^~~~~~~~
src/ls_odbc.c:117:38: error: unknown type name ‘SQLSMALLINT’
static int fail(lua_State *L, const SQLSMALLINT type, const SQLHANDLE handle) {
^~~~~~~~~~~
src/ls_odbc.c:117:62: error: unknown type name ‘SQLHANDLE’
static int fail(lua_State *L, const SQLSMALLINT type, const SQLHANDLE handle) {
^~~~~~~~~
src/ls_odbc.c: In function ‘fail’:
The text was updated successfully, but these errors were encountered: