diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-12-29 15:19:57 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-01-06 09:00:46 +0100 |
commit | 2b21e754cc41bb4aaf9a0c01638e06825eff780e (patch) | |
tree | dcfaf6ecf4c6215a89426df98d10eb0bc0e38d17 /connectivity | |
parent | Re-introduce the functionality to look for multiple iOS SDK versions (diff) | |
download | core-2b21e754cc41bb4aaf9a0c01638e06825eff780e.tar.gz core-2b21e754cc41bb4aaf9a0c01638e06825eff780e.zip |
mysqlc: ensure fetched result while invoking last
Change-Id: Ia1872973eefff1d8d677aa443b0c03d3ea569d60
Reviewed-on: https://gerrit.libreoffice.org/65854
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx index 2c680d7e1328..12c0f5375ca4 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx @@ -614,6 +614,7 @@ sal_Bool SAL_CALL OResultSet::last() { MutexGuard aGuard(m_aMutex); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); + ensureResultFetched(); m_nRowPosition = m_nRowCount - 1; return true; |