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:
@@ -1673,8 +1673,10 @@ int ODBConn::GetCatInfo(CATPARM *cap)
|
|||||||
// Attempt to set rowset size.
|
// Attempt to set rowset size.
|
||||||
// In case of failure reset it to 0 to use Fetch.
|
// In case of failure reset it to 0 to use Fetch.
|
||||||
if (m_Catver == 3) // ODBC Ver 3
|
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
|
else
|
||||||
rc = SQLSetStmtOption(hstmt, SQL_ROWSET_SIZE, m_RowsetSize);
|
rc = SQLSetStmtOption(hstmt, SQL_ROWSET_SIZE, m_RowsetSize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user