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>
This commit is contained in:
Tamas Bunth 2019-09-11 12:55:20 +02:00 committed by Tamás Bunth
parent 1e202ec8aa
commit 47a62ede24

View File

@ -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"))