summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2018-05-05 22:26:12 +0200
committerTamás Bunth <btomi96@gmail.com>2018-05-12 10:28:50 +0200
commit1932f4b04a299fc4f478a629f0f97efea8a10c62 (patch)
tree71da58c549cf2ab72e0e0ac0de7ebbe3e01b10f9
parent74b0602a82a8599fab52d6f58d18d0f39946280d (diff)
tdf#117301 dbahsql: add FLOAT type
Change-Id: I2a7227c40d8df6347c014cf720369384b92e3970 Reviewed-on: https://gerrit.libreoffice.org/53898 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
-rw-r--r--dbaccess/source/filter/hsqldb/createparser.cxx2
-rw-r--r--dbaccess/source/filter/hsqldb/fbcreateparser.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/dbaccess/source/filter/hsqldb/createparser.cxx b/dbaccess/source/filter/hsqldb/createparser.cxx
index 645c33557689..66993ace227b 100644
--- a/dbaccess/source/filter/hsqldb/createparser.cxx
+++ b/dbaccess/source/filter/hsqldb/createparser.cxx
@@ -134,6 +134,8 @@ sal_Int32 lcl_getDataTypeFromHsql(const OUString& sTypeName)
return DataType::DOUBLE;
else if (sTypeName == "REAL")
return DataType::REAL;
+ else if (sTypeName == "FLOAT")
+ return DataType::FLOAT;
assert(false);
return -1;
diff --git a/dbaccess/source/filter/hsqldb/fbcreateparser.cxx b/dbaccess/source/filter/hsqldb/fbcreateparser.cxx
index 89ffe5e69833..8c36573ef9f8 100644
--- a/dbaccess/source/filter/hsqldb/fbcreateparser.cxx
+++ b/dbaccess/source/filter/hsqldb/fbcreateparser.cxx
@@ -71,6 +71,8 @@ OUString lcl_DataTypetoFbTypeName(sal_Int32 eType)
case DataType::DOUBLE:
case DataType::REAL:
return OUString("DOUBLE PRECISION");
+ case DataType::FLOAT:
+ return OUString("FLOAT");
default:
assert(false);
return OUString();