diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2017-12-18 14:47:40 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2017-12-28 10:40:34 +0100 |
commit | e7a80ddb91c44711296aa996bf00242edbfba32d (patch) | |
tree | 503f72703f51a9103edb1eeb2489a017dd97e598 /connectivity/source/drivers/firebird/Util.cxx | |
parent | bf662904c4b60e93c6b86e06288d41996eed12a2 (diff) |
tdf#104734 Firebird: Add VARBINARY type to driver
Change-Id: I9a1b3aa9bde855577078fe0db2e31a9c160031d7
Reviewed-on: https://gerrit.libreoffice.org/47092
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'connectivity/source/drivers/firebird/Util.cxx')
-rw-r--r-- | connectivity/source/drivers/firebird/Util.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/Util.cxx b/connectivity/source/drivers/firebird/Util.cxx index 20587e5172ba..e91e0da0bdf9 100644 --- a/connectivity/source/drivers/firebird/Util.cxx +++ b/connectivity/source/drivers/firebird/Util.cxx @@ -100,8 +100,11 @@ sal_Int32 lcl_getCharColumnType( short aType, const OUString& sCharset ) return DataType::BINARY; else return DataType::CHAR; - case SQL_VARYING: // TODO VARBINARY - return DataType::VARCHAR; + case SQL_VARYING: + if( sCharset == "OCTETS") + return DataType::VARBINARY; + else + return DataType::VARCHAR; default: assert(false); return 0; |