Using correct type for SQLRowCount call

This commit is contained in:
Scott Morgan 2014-08-06 18:25:02 +01:00
parent 87f2017eba
commit 56bfe3ae61

View File

@ -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);