Author: damjan
Date: Fri Nov 17 03:04:09 2017
New Revision: 1815544
URL: http://svn.apache.org/viewvc?rev=1815544&view=rev
Log:
64-bit ODBC's SQLGetStmtAttr() returns 64 bit values in *ValuePtr
(https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-64-bit-information).
Patch by: me
Modified:
openoffice/trunk/main/connectivity/source/drivers/odbcbase/OStatement.cxx
Modified:
openoffice/trunk/main/connectivity/source/drivers/odbcbase/OStatement.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/connectivity/source/drivers/odbcbase/OStatement.cxx?rev=1815544&r1=1815543&r2=1815544&view=diff
==============================================================================
--- openoffice/trunk/main/connectivity/source/drivers/odbcbase/OStatement.cxx
(original)
+++ openoffice/trunk/main/connectivity/source/drivers/odbcbase/OStatement.cxx
Fri Nov 17 03:04:09 2017
@@ -445,7 +445,7 @@ Reference< XResultSet > OStatement_Base:
sal_Int32 OStatement_Base::getStmtOption (short fOption) const
{
- sal_Int32 result = 0;
+ SQLLEN result = 0;
OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
N3SQLGetStmtAttr(m_aStatementHandle,
fOption,&result,SQL_IS_INTEGER,NULL);
return result;