projects/aports·blob master · refs

31 lines · 875 B

1diff --git a/src/ls_odbc.c b/src/ls_odbc.c
2index 5d44105..57b39d7 100644
3--- a/src/ls_odbc.c
4+++ b/src/ls_odbc.c
5@@ -36,7 +36,7 @@
6 typedef struct {
7 SQLPOINTER buf;
8 SQLINTEGER len;
9- SQLINTEGER type;
10+ SQLLEN type;
11 } param_data;
12
13 /* general form of the driver objects */
14@@ -685,7 +685,7 @@ static int raw_execute(lua_State *L, int istmt)
15 return create_cursor(L, -1, stmt, numcols);
16 } else {
17 /* if action has no results (e.g., UPDATE) */
18- SQLINTEGER numrows;
19+ SQLLEN numrows;
20 if(error(SQLRowCount(stmt->hstmt, &numrows))) {
21 return fail(L, hSTMT, stmt->hstmt);
22 }
23@@ -697,7 +697,7 @@ static int raw_execute(lua_State *L, int istmt)
24
25 static int set_param(lua_State *L, stmt_data *stmt, int i, param_data *data)
26 {
27- static SQLINTEGER cbNull = SQL_NULL_DATA;
28+ static SQLLEN cbNull = SQL_NULL_DATA;
29
30 switch(lua_type(L, -1)) {
31 case LUA_TNIL: {