diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-09-11 12:55:20 +0200 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2019-09-17 13:24:34 +0200 |
commit | 47a62ede2403772b8743bfcfa0b6dd4be17fec9c (patch) | |
tree | ad1bc2d3bb9e7a3ba4718aac7da2d7db36d4d716 /connectivity/source | |
parent | 1e202ec8aa177d427c5173c5290e09aec1e5c720 (diff) |
tdf#126852 Bind TEXT mysql type to Clob
Change-Id: I5a71666f1fafa9507032deffafebf885813a0369
Reviewed-on: https://gerrit.libreoffice.org/78815
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_general.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx index 75b97b4028de..4c7c8465c798 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx @@ -202,8 +202,10 @@ sal_Int32 mysqlStrToOOOType(const OUString& sType) return css::sdbc::DataType::BLOB; if (sType.equalsIgnoreAsciiCase("varbinary")) return css::sdbc::DataType::VARBINARY; - if (sType.equalsIgnoreAsciiCase("text") || sType.equalsIgnoreAsciiCase("char")) + if (sType.equalsIgnoreAsciiCase("char")) return css::sdbc::DataType::CHAR; + if (sType.equalsIgnoreAsciiCase("text")) + return css::sdbc::DataType::CLOB; if (sType.equalsIgnoreAsciiCase("binary")) return css::sdbc::DataType::BINARY; if (sType.equalsIgnoreAsciiCase("time")) |