Fractional Seconds Support with Connector/J and MariaDB
Posted by: Koch Alexander
Date: October 10, 2018 01:58AM


Sorry if this is not the right place.

I am using Connector/J 8.0.12 to connect to a MariaDB 10.3.

We are unable to insert timestamps with fractional seconds into the database into a DateTime(6) field.

The reason is, that the code to determine the capability of fractional second support (in the class com.mysql.cj.protocol.a.NativeCapabilities) checks for the version to be greater 5.6.4. But MariaDB provides the version String "5.5.5-10.3.10-MariaDB". MariaDB in Version 10 is capable of fractional seconds.

Can you provide some help please?

with kind regards

Options: ReplyQuote

Written By
Fractional Seconds Support with Connector/J and MariaDB
October 10, 2018 01:58AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.