diff options
author | randomdan <randomdan@localhost> | 2011-01-30 20:54:52 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-01-30 20:54:52 +0000 |
commit | b971d51b84bb567fc986b761c19654e55e708ad2 (patch) | |
tree | d673ba44da4aa7b99e1f641c9f7f9e779c7d21d1 | |
parent | Address type inconsistency issue with size functions (diff) | |
download | libdbpp-odbc-b971d51b84bb567fc986b761c19654e55e708ad2.tar.bz2 libdbpp-odbc-b971d51b84bb567fc986b761c19654e55e708ad2.tar.xz libdbpp-odbc-b971d51b84bb567fc986b761c19654e55e708ad2.zip |
Fix type of bindsize
-rw-r--r-- | libodbcpp/selectcommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/selectcommand.cpp b/libodbcpp/selectcommand.cpp index 099fe9c..a297f75 100644 --- a/libodbcpp/selectcommand.cpp +++ b/libodbcpp/selectcommand.cpp @@ -80,7 +80,7 @@ ODBC::SelectCommand::execute() for (int col = 0; col < colCount; col++) { SQLCHAR _colName[300]; SQLSMALLINT nameLen, dp, nullable, bindType; - SQLUINTEGER bindSize; + SQLULEN bindSize; int sqlcol = col + 1; if (!SQL_SUCCEEDED(rc = SQLDescribeCol(hStmt, sqlcol, _colName, sizeof(_colName), &nameLen, &bindType, &bindSize, &dp, &nullable))) { |