[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - connectivity/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 17 14:29:47 UTC 2020


 connectivity/source/drivers/firebird/DatabaseMetaData.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit b0cdef796b235fdb7ed6414dba7499691ebd0b2c
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Feb 16 13:36:45 2020 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Feb 17 15:29:11 2020 +0100

    tdf#130708: Firebird: fix wrong precision and scale for DECIMAL and NUMERIC
    
    See https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-datatypes.html
    
    Change-Id: I2377679bb925425ceb0bf80c5309005421fe2c2b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88778
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit 4605dfa29649864638187940de4d1064ff056ac8)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88786
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
    (cherry picked from commit 08eede3a026e8d788a5f877c5fd646e685fd0d5e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88789

diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index 655e5c67151b..fd70736c448a 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -934,16 +934,16 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
         // Numeric
         aRow[1] = new ORowSetValueDecorator(OUString("NUMERIC"));
         aRow[2] = new ORowSetValueDecorator(DataType::NUMERIC);
-        aRow[3] = new ORowSetValueDecorator(sal_Int16(15)); // Precision
-        aRow[14] = new ORowSetValueDecorator(sal_Int16(1)); // Minimum scale
-        aRow[15] = new ORowSetValueDecorator(sal_Int16(15)); // Max scale
+        aRow[3] = new ORowSetValueDecorator(sal_Int16(18)); // Precision
+        aRow[14] = new ORowSetValueDecorator(sal_Int16(0)); // Minimum scale
+        aRow[15] = new ORowSetValueDecorator(sal_Int16(18)); // Max scale
         tmp.push_back(aRow);
         // Decimal
         aRow[1] = new ORowSetValueDecorator(OUString("DECIMAL"));
         aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
-        aRow[3] = new ORowSetValueDecorator(sal_Int16(15)); // Precision
-        aRow[14] = new ORowSetValueDecorator(sal_Int16(1)); // Minimum scale
-        aRow[15] = new ORowSetValueDecorator(sal_Int16(15)); // Max scale
+        aRow[3] = new ORowSetValueDecorator(sal_Int16(18)); // Precision
+        aRow[14] = new ORowSetValueDecorator(sal_Int16(0)); // Minimum scale
+        aRow[15] = new ORowSetValueDecorator(sal_Int16(18)); // Max scale
         tmp.push_back(aRow);
 
         aRow[6] = new ORowSetValueDecorator(); // Create Params


More information about the Libreoffice-commits mailing list