[Libreoffice-commits] core.git: dbaccess/source

Tamas Bunth tamas.bunth at collabora.co.uk
Sat Mar 10 19:01:49 UTC 2018


 dbaccess/source/filter/hsqldb/hsqlimport.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 5983cb047ae85d64040b3a99a5bb39a235f4f148
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date:   Thu Mar 8 22:43:27 2018 +0100

    dbahsql: add boolean
    
    Change-Id: I1c18d40f6375d034e8de3c1bad6323b7cda052e6
    Reviewed-on: https://gerrit.libreoffice.org/50975
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

diff --git a/dbaccess/source/filter/hsqldb/hsqlimport.cxx b/dbaccess/source/filter/hsqldb/hsqlimport.cxx
index 03d25f79ed03..12d2ede81870 100644
--- a/dbaccess/source/filter/hsqldb/hsqlimport.cxx
+++ b/dbaccess/source/filter/hsqldb/hsqlimport.cxx
@@ -155,8 +155,12 @@ void lcl_setParams(const RowVector& row, Reference<XParameters>& xParam,
                 // TODO
                 break;
             case DataType::BOOLEAN:
-                // TODO
-                break;
+            {
+                bool bVal = false;
+                if (row.at(i) >>= bVal)
+                    xParam->setBoolean(i + 1, bVal);
+            }
+            break;
             case DataType::OTHER:
                 // TODO
                 break;


More information about the Libreoffice-commits mailing list