[Libreoffice-bugs] [Bug 128698] MySQL/MariaDB direct Connection: time-values not written to table

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Nov 26 15:50:02 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128698

--- Comment #16 from Julien Nabet <serval2412 at yahoo.fr> ---
This patch seems to fix it, at least I don't reproduce the pb with it:
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
index 902a1d93edb0..7cdd19667f30 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx
@@ -267,7 +267,7 @@ void SAL_CALL OPreparedStatement::setTime(sal_Int32
parameter, const Time& aVal)
     checkDisposed(OPreparedStatement::rBHelper.bDisposed);
     checkParameterIndex(parameter);

-    MYSQL_TIME my_time;
+    MYSQL_TIME my_time = {};

     my_time.hour = aVal.Hours;
     my_time.minute = aVal.Minutes;

I'll submit it when I get back home.

If someone wants to submit it before, don't hesitate!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191126/adbbe787/attachment.html>


More information about the Libreoffice-bugs mailing list