[Libreoffice-commits] core.git: dbaccess/source
Tamas Bunth
tamas.bunth at collabora.co.uk
Sat May 12 08:29:11 UTC 2018
dbaccess/source/filter/hsqldb/createparser.cxx | 2 ++
dbaccess/source/filter/hsqldb/fbcreateparser.cxx | 2 ++
2 files changed, 4 insertions(+)
New commits:
commit 1932f4b04a299fc4f478a629f0f97efea8a10c62
Author: Tamas Bunth <tamas.bunth at collabora.co.uk>
Date: Sat May 5 22:26:12 2018 +0200
tdf#117301 dbahsql: add FLOAT type
Change-Id: I2a7227c40d8df6347c014cf720369384b92e3970
Reviewed-on: https://gerrit.libreoffice.org/53898
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 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();
More information about the Libreoffice-commits
mailing list