80 static int statement_columns(lua_State *L) { |
80 static int statement_columns(lua_State *L) { |
81 statement_t *statement = (statement_t *)luaL_checkudata(L, 1, DBD_DB2_STATEMENT); |
81 statement_t *statement = (statement_t *)luaL_checkudata(L, 1, DBD_DB2_STATEMENT); |
82 |
82 |
83 int i; |
83 int i; |
84 int d; |
84 int d; |
85 |
|
86 SQLCHAR message[SQL_MAX_MESSAGE_LENGTH + 1]; |
|
87 SQLCHAR sqlstate[SQL_SQLSTATE_SIZE + 1]; |
|
88 SQLINTEGER sqlcode; |
|
89 SQLSMALLINT length; |
|
90 |
85 |
91 SQLRETURN rc = SQL_SUCCESS; |
86 SQLRETURN rc = SQL_SUCCESS; |
92 |
87 |
93 if (!statement->resultset || !statement->bind) { |
88 if (!statement->resultset || !statement->bind) { |
94 lua_pushnil(L); |
89 lua_pushnil(L); |