1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixing a warning:

- cast to pointer from integer of different size 

modified:
  storage/connect/odbconn.cpp
This commit is contained in:
Alexander Barkov
2013-07-08 11:43:45 +04:00
parent 309f59a5c8
commit a8fb8e141e

View File

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