From a5b50a5bd4ca8b0de8ca8032aeaca0b383163bc9 Mon Sep 17 00:00:00 2001 From: Mark Struberg Date: Wed, 3 Apr 2019 00:21:02 +0200 Subject: [PATCH] OPENJPA-2784 add docs for sub-second fractions in MariaDB and MySQL --- .../src/doc/manual/supported_databases.xml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/openjpa-project/src/doc/manual/supported_databases.xml b/openjpa-project/src/doc/manual/supported_databases.xml index a4e8dad3d..d194276ee 100644 --- a/openjpa-project/src/doc/manual/supported_databases.xml +++ b/openjpa-project/src/doc/manual/supported_databases.xml @@ -1176,6 +1176,37 @@ When reading LOB data from the database, the MySQL JDBC driver will actually load all the data into memory at the same time. + + +As of MySQL 5.7 the DATETIME data type supports sub-second fractions. +The default of MySQL is to use no fractions. +The number of fractions can be explicitly set via scale: +@Column(scale=3) will lead to a DATETIME(3) column. + + + + + + + +
+ + MariaDB + +
+ + Known issues with MariaDB + + + + + As of MariaDB 10.2 the DATETIME data type supports sub-second fractions. + The default of MariaDB is to use no fractions. + The number of fractions can be explicitly set via scale: + @Column(scale=3) will lead to a DATETIME(3) column. + + +