From cd65f098382c14439f6502bbe72e1d78d23a92c5 Mon Sep 17 00:00:00 2001 From: Tamas Bunth Date: Sat, 28 Apr 2018 11:49:05 +0200 Subject: tdf#117300 dbahsql: Add REAL type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5a63633f8efa2307c75e8018a8fae13f154254ce Reviewed-on: https://gerrit.libreoffice.org/53585 Tested-by: Jenkins Reviewed-by: Tamás Bunth --- dbaccess/source/filter/hsqldb/createparser.cxx | 2 ++ dbaccess/source/filter/hsqldb/fbcreateparser.cxx | 1 + 2 files changed, 3 insertions(+) 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); -- cgit