[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - connectivity/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jan 6 08:01:10 UTC 2019


 connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2b21e754cc41bb4aaf9a0c01638e06825eff780e
Author:     Tamas Bunth <tamas.bunth at collabora.co.uk>
AuthorDate: Sat Dec 29 15:19:57 2018 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Jan 6 09:00:46 2019 +0100

    mysqlc: ensure fetched result while invoking last
    
    Change-Id: Ia1872973eefff1d8d677aa443b0c03d3ea569d60
    Reviewed-on: https://gerrit.libreoffice.org/65854
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

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;


More information about the Libreoffice-commits mailing list