diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-27 08:51:59 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-27 09:29:32 +0200 |
commit | 83dc5c075884dfdb71952aa2617cc6f63dcc56ad (patch) | |
tree | 3f61bb7475b9d58200781a71d327df1aeec518e1 | |
parent | ac146c16c0f4707aa8a26e479902a124e4e1b7e4 (diff) |
fdo#66216 JDBC no fractional second in time format
fractional second allowed in timestamp. But not in time. Don't ask why.
Change-Id: I5415889ab4cf4835b8b0db7363b7d9eb0a332393
-rw-r--r-- | connectivity/source/drivers/jdbc/Timestamp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/jdbc/Timestamp.cxx b/connectivity/source/drivers/jdbc/Timestamp.cxx index a1d1bcd5e92e..5337330296b9 100644 --- a/connectivity/source/drivers/jdbc/Timestamp.cxx +++ b/connectivity/source/drivers/jdbc/Timestamp.cxx @@ -103,7 +103,8 @@ java_sql_Time::java_sql_Time( const ::com::sun::star::util::Time& _rOut ): java_ jvalue args[1]; // Convert parameters OUString sDateStr; - sDateStr = ::dbtools::DBTypeConversion::toTimeString(_rOut); + // java.sql.Time supports only whole seconds... + sDateStr = ::dbtools::DBTypeConversion::toTimeString(_rOut).copy(0, 8); args[0].l = convertwchar_tToJavaString(t.pEnv,sDateStr); // Turn off Java-Call for the constructor |