diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-12-29 15:19:57 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2018-12-31 16:07:12 +0100 |
commit | c3eeb89154c17c24e235c253dd03975ed3a7d90a (patch) | |
tree | 2b72953191cf6caa9c9f2505bdef726d83ad81ab /connectivity | |
parent | 0e9d621c471bdf486fb535b068fe841b56e2e8c6 (diff) |
mysqlc: ensure fetched result while invoking last
Change-Id: Ia1872973eefff1d8d677aa443b0c03d3ea569d60
Reviewed-on: https://gerrit.libreoffice.org/65716
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.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 d6c2a9b724b4..be02c7c73ee3 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx @@ -612,6 +612,7 @@ sal_Bool SAL_CALL OResultSet::last() { MutexGuard aGuard(m_aMutex); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); + ensureResultFetched(); m_nRowPosition = m_nRowCount - 1; return true; |