Commit a8fb8e14 authored by Alexander Barkov's avatar Alexander Barkov

Fixing a warning:

- cast to pointer from integer of different size 

modified:
  storage/connect/odbconn.cpp
parent 309f59a5
......@@ -1673,8 +1673,10 @@ int ODBConn::GetCatInfo(CATPARM *cap)
// Attempt to set rowset size.
// In case of failure reset it to 0 to use Fetch.
if (m_Catver == 3) // ODBC Ver 3
rc = SQLSetStmtAttr(hstmt, SQL_ATTR_ROW_ARRAY_SIZE,
(SQLPOINTER)m_RowsetSize, 0);
{
SQLULEN tmp= m_RowsetSize;
rc = SQLSetStmtAttr(hstmt, SQL_ATTR_ROW_ARRAY_SIZE, &tmp, 0);
}
else
rc = SQLSetStmtOption(hstmt, SQL_ROWSET_SIZE, m_RowsetSize);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment