summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-01-30 20:54:52 +0000
committerrandomdan <randomdan@localhost>2011-01-30 20:54:52 +0000
commitb971d51b84bb567fc986b761c19654e55e708ad2 (patch)
treed673ba44da4aa7b99e1f641c9f7f9e779c7d21d1
parentAddress type inconsistency issue with size functions (diff)
downloadlibdbpp-odbc-b971d51b84bb567fc986b761c19654e55e708ad2.tar.bz2
libdbpp-odbc-b971d51b84bb567fc986b761c19654e55e708ad2.tar.xz
libdbpp-odbc-b971d51b84bb567fc986b761c19654e55e708ad2.zip
Fix type of bindsize
-rw-r--r--libodbcpp/selectcommand.cpp2
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))) {