[Libreoffice-commits] core.git: dbaccess/source
Tamas Bunth
tamas.bunth at collabora.co.uk
Sun Apr 29 16:20:03 UTC 2018
dbaccess/source/filter/hsqldb/createparser.cxx | 2 ++
dbaccess/source/filter/hsqldb/fbcreateparser.cxx | 1 +
2 files changed, 3 insertions(+)
New commits:
commit cd65f098382c14439f6502bbe72e1d78d23a92c5
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date: Sat Apr 28 11:49:05 2018 +0200
tdf#117300 dbahsql: Add REAL type
Change-Id: I5a63633f8efa2307c75e8018a8fae13f154254ce
Reviewed-on: https://gerrit.libreoffice.org/53585
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96 at gmail.com>
diff --git a/dbaccess/source/filter/hsqldb/createparser.cxx b/dbaccess/source/filter/hsqldb/createparser.cxx
index 8392964463d0..6d5ffef37740 100644
--- a/dbaccess/source/filter/hsqldb/createparser.cxx
+++ b/dbaccess/source/filter/hsqldb/createparser.cxx
@@ -132,6 +132,8 @@ sal_Int32 lcl_getDataTypeFromHsql(const OUString& sTypeName)
return DataType::TIMESTAMP;
else if (sTypeName == "DOUBLE")
return DataType::DOUBLE;
+ else if (sTypeName == "REAL")
+ return DataType::REAL;
assert(false);
return -1;
diff --git a/dbaccess/source/filter/hsqldb/fbcreateparser.cxx b/dbaccess/source/filter/hsqldb/fbcreateparser.cxx
index fe23eec6635b..3a16aab196a3 100644
--- a/dbaccess/source/filter/hsqldb/fbcreateparser.cxx
+++ b/dbaccess/source/filter/hsqldb/fbcreateparser.cxx
@@ -69,6 +69,7 @@ OUString lcl_DataTypetoFbTypeName(sal_Int32 eType)
case DataType::TIMESTAMP:
return OUString("TIMESTAMP");
case DataType::DOUBLE:
+ case DataType::REAL:
return OUString("DOUBLE PRECISION");
default:
assert(false);
More information about the Libreoffice-commits
mailing list