diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-01-06 21:20:02 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2018-01-07 08:10:32 +0100 |
commit | 964cc98794941dbf7dccce526c4fa88c16b3a26c (patch) | |
tree | 10f802575d874d2d244eeb19b0ff8fade0e6e8e9 /connectivity | |
parent | 40c0e38a444d8a36ac4b2ff9adb01b55f57bb7c3 (diff) |
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@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OResultSet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |