diff --git a/src/ls_odbc.c b/src/ls_odbc.c index 3983039..494dedb 100644 --- a/src/ls_odbc.c +++ b/src/ls_odbc.c @@ -490,7 +490,7 @@ static int conn_execute (lua_State *L) { return create_cursor (L, 1, conn, hstmt, numcols); else { /* if action has no results (e.g., UPDATE) */ - SQLINTEGER numrows; + SQLLEN numrows; ret = SQLRowCount(hstmt, &numrows); if (error(ret)) { ret = fail(L, hSTMT, hstmt);