summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2019-09-11 12:55:20 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2019-09-18 12:33:17 +0200
commit882cfc31f88cf62b46c29b737c24afd11b6d560c (patch)
treea618937ebeede377af7fcaa0b01718b2137bfde5 /connectivity
parenttdf#126833 fix table auto format undo/redo (diff)
downloadcore-882cfc31f88cf62b46c29b737c24afd11b6d560c.tar.gz
core-882cfc31f88cf62b46c29b737c24afd11b6d560c.zip
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> (cherry picked from commit 47a62ede2403772b8743bfcfa0b6dd4be17fec9c) Reviewed-on: https://gerrit.libreoffice.org/79083 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_general.cxx4
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"))