diff options
author | Alexander Barkov <bar@mariadb.org> | 2013-07-08 11:43:45 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2013-07-08 11:43:45 +0400 |
commit | a8fb8e141e2ff69d6fe74a5b89c99e4dfef4bc41 (patch) | |
tree | 798c59172b98703ef000878645243b99c4fa067a /storage/connect/odbconn.cpp | |
parent | 309f59a5c8098d19a378f08e414b9dc94fc55085 (diff) | |
download | mariadb-git-a8fb8e141e2ff69d6fe74a5b89c99e4dfef4bc41.tar.gz |
Fixing a warning:
- cast to pointer from integer of different size
modified:
storage/connect/odbconn.cpp
Diffstat (limited to 'storage/connect/odbconn.cpp')
-rw-r--r-- | storage/connect/odbconn.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/connect/odbconn.cpp b/storage/connect/odbconn.cpp index 967d68a360c..59dd337ef5c 100644 --- a/storage/connect/odbconn.cpp +++ b/storage/connect/odbconn.cpp @@ -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); |