Using correct type for SQLRowCount call
This commit is contained in:
parent
87f2017eba
commit
56bfe3ae61
@ -490,7 +490,7 @@ static int conn_execute (lua_State *L) {
|
|||||||
return create_cursor (L, 1, conn, hstmt, numcols);
|
return create_cursor (L, 1, conn, hstmt, numcols);
|
||||||
else {
|
else {
|
||||||
/* if action has no results (e.g., UPDATE) */
|
/* if action has no results (e.g., UPDATE) */
|
||||||
SQLINTEGER numrows;
|
SQLLEN numrows;
|
||||||
ret = SQLRowCount(hstmt, &numrows);
|
ret = SQLRowCount(hstmt, &numrows);
|
||||||
if (error(ret)) {
|
if (error(ret)) {
|
||||||
ret = fail(L, hSTMT, hstmt);
|
ret = fail(L, hSTMT, hstmt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user