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

Tamas Bunth (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 1 12:36:04 UTC 2019


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

New commits:
commit 6cd885243952bec4b71aa95d77820b08d70a94dc
Author:     Tamas Bunth <tamas.bunth at collabora.co.uk>
AuthorDate: Sat Dec 29 15:19:57 2018 +0100
Commit:     Tamás Bunth <btomi96 at gmail.com>
CommitDate: Thu Aug 1 14:35:30 2019 +0200

    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>
    Reviewed-on: https://gerrit.libreoffice.org/76725
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

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;


More information about the Libreoffice-commits mailing list