[Libreoffice-commits] core.git: connectivity/source
Julien Nabet
serval2412 at yahoo.fr
Sun Jan 7 07:11:00 UTC 2018
connectivity/source/drivers/odbc/OResultSet.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 964cc98794941dbf7dccce526c4fa88c16b3a26c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Jan 6 21:20:02 2018 +0100
tdf#114495 ODBC: clear row status buffer *before* we throw away the statement
Change-Id: I898e9d0e3e2cf1ed41489231d1cd761171bfcea4
Reviewed-on: https://gerrit.libreoffice.org/47514
Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
Tested-by: Lionel Elie Mamane <lionel at mamane.lu>
diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx
index 8c8ccc7e28fb..40ca6d72c237 100644
--- a/connectivity/source/drivers/odbc/OResultSet.cxx
+++ b/connectivity/source/drivers/odbc/OResultSet.cxx
@@ -164,7 +164,6 @@ OResultSet::OResultSet(SQLHANDLE _pStatementHandle ,OStatement_Base* pStmt) :
OResultSet::~OResultSet()
{
- setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, nullptr);
}
void OResultSet::construct()
@@ -182,6 +181,7 @@ void OResultSet::disposing()
::osl::MutexGuard aGuard(m_aMutex);
releaseBuffer();
+ setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR, nullptr);
m_xStatement.clear();
m_xMetaData.clear();
}
More information about the Libreoffice-commits
mailing list