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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Sep 3 08:43:27 UTC 2018


 connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9581f62f33d6f912b38e3eb3b0513fcc7bc8bac0
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Mon Sep 3 10:42:31 2018 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Mon Sep 3 10:42:57 2018 +0200

    fix for 'mysqlc: Use unique_ptr on C style arrays'
    
    Change-Id: I9460c6f8e52890ebb37ae59264ba9035b063f560

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx
index dee5d091a353..cc8d3bbdfad5 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx
@@ -649,7 +649,7 @@ sal_Bool SAL_CALL OPreparedResultSet::next()
         mysqlc_sdbc_driver::allocateSqlVar(&m_aData[i].buffer, m_aData[i].buffer_type,
                                            m_aFields[i].length);
     }
-    mysql_stmt_bind_result(m_pStmt, m_aData);
+    mysql_stmt_bind_result(m_pStmt, m_aData.get());
     if (bFirstRun)
         mysql_stmt_store_result(m_pStmt);
     int failure = mysql_stmt_fetch(m_pStmt);


More information about the Libreoffice-commits mailing list