diff --git a/src/history_odbc.cxx b/src/history_odbc.cxx index 5f00016..392062f 100644 --- a/src/history_odbc.cxx +++ b/src/history_odbc.cxx @@ -584,7 +584,7 @@ int SqlODBC::Exec(const char* sql) int SqlODBC::GetNumRows() { - SQLINTEGER nrows = 0; + SQLLEN nrows = 0; /* How many rows are there */ int status = SQLRowCount(fStmt, &nrows); if (!SQL_SUCCEEDED(status)) { @@ -634,7 +634,7 @@ int SqlODBC::Done() const char* SqlODBC::GetColumn(int icol) { static char buf[1024]; - SQLINTEGER indicator; + SQLLEN indicator; int status = SQLGetData(fStmt, icol, SQL_C_CHAR, buf, sizeof(buf), &indicator); if (!SQL_SUCCEEDED(status)) {