summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2018-12-29 15:19:57 +0100
committerAndras Timar <andras.timar@collabora.com>2019-01-06 09:00:46 +0100
commit2b21e754cc41bb4aaf9a0c01638e06825eff780e (patch)
treedcfaf6ecf4c6215a89426df98d10eb0bc0e38d17 /connectivity
parentRe-introduce the functionality to look for multiple iOS SDK versions (diff)
downloadcore-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.cxx1
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;