diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-04-28 11:49:05 +0200 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2018-04-29 18:19:42 +0200 |
commit | cd65f098382c14439f6502bbe72e1d78d23a92c5 (patch) | |
tree | f6d6e2eeef540d575f97f6b2bd82dfe09b062148 | |
parent | 605f6d485f15948da5c0443fea18c296da270e18 (diff) |
tdf#117300 dbahsql: Add REAL type
Change-Id: I5a63633f8efa2307c75e8018a8fae13f154254ce
Reviewed-on: https://gerrit.libreoffice.org/53585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
-rw-r--r-- | dbaccess/source/filter/hsqldb/createparser.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/filter/hsqldb/fbcreateparser.cxx | 1 |
2 files changed, 3 insertions, 0 deletions
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); |