diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-09 13:31:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-09 13:35:48 +0100 |
commit | e49e41f7601122dcaf7e31f4fa1cb4074c3dd35a (patch) | |
tree | aedfc37c44af6867ebb785f246adcca1fc02a3f6 | |
parent | a9201a4dfe54d920ff6272aae949eefb7888dc20 (diff) |
check return of Execute row and propogate error code
Change-Id: I75b2c454122aa2d75d66dc46865135e01277bbcb
-rw-r--r-- | connectivity/source/drivers/file/FResultSet.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index 589ecd3bd279..ee9837313ba5 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -999,7 +999,9 @@ bool OResultSet::Move(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOff if (m_nRowPos < (sal_Int32)m_pFileSet->get().size()) { // Fetch via Index - ExecuteRow(IResultSetHelper::BOOKMARK,(m_pFileSet->get())[m_nRowPos],false,bRetrieveData); + bool bOK = ExecuteRow(IResultSetHelper::BOOKMARK,(m_pFileSet->get())[m_nRowPos],false,bRetrieveData); + if (!bOK) + goto Error; // now set the bookmark for outside *(*m_aRow->get().begin()) = sal_Int32(m_nRowPos + 1); |