diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-01-17 09:11:02 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-01-17 20:49:54 +0100 |
commit | 5d1a654a14696e181b49f18ea4d685d78fb1a516 (patch) | |
tree | 8dcd6849fd7f20eaf51e7e3350a72e9fa39a4dd7 /connectivity | |
parent | af8d616fe7556716af8ccd4c4de7a68ae52ce2b7 (diff) |
tdf#122516: fix timestamp in MariaDb/mysql
Change-Id: I9740e265c7f4c607bf871c5f12df149355ce6a61
Reviewed-on: https://gerrit.libreoffice.org/66495
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Jenkins
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_general.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx index 5827b4bd35b9..56b92afd2245 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx @@ -210,7 +210,7 @@ sal_Int32 mysqlStrToOOOType(const OUString& sType) return css::sdbc::DataType::TIME; if (sType.equalsIgnoreAsciiCase("date")) return css::sdbc::DataType::DATE; - if (sType.equalsIgnoreAsciiCase("datetime")) + if (sType.equalsIgnoreAsciiCase("datetime") || sType.equalsIgnoreAsciiCase("timestamp")) return css::sdbc::DataType::TIMESTAMP; if (sType.equalsIgnoreAsciiCase("decimal")) return css::sdbc::DataType::DECIMAL; |