MySQL DATETIME fractional seconds
MySQL 5.6.4 TIME and DATETIME types support fractions of seconds that can be used to store DATETIME HOUR TO FRACTION(N) or DATETIME YEAR TO FRACTION(N).
Before Genero 3.00, the Oracle® MySQL
driver converted
DATETIME types as follows: DATETIME HOUR TO SECONDwas converted to MySQLTIME.- Other
DATETIMEtypes were converted to MySQLDATETIME.
Starting with Genero 3.00, when creating a table in a BDL program with the CREATE
TABLE statement, if the MySQL server version is greater or equal to 5.6.4, the types are
converted differently, as follows:
DATETIME HOUR TO MINUTEis converted to MySQLTIME(seconds set to 00).DATETIME HOUR TO SECONDis converted to MySQLTIME.DATETIME HOUR TO FRACTION(n)is converted to MySQLTIME(n).DATETIME YEAR TO MINUTEis converted to MySQLDATETIME(seconds set to 00).DATETIME YEAR TO SECONDis converted to MySQLDATETIME.DATETIME YEAR TO FRACTION(n)is converted to MySQLDATETIME(n).
This change has no impact your application when using DATETIME HOUR TO SECOND or
DATETIME YEAR TO SECOND.
However, it is now possible to store DATETIME HOUR TO FRACTION(n) and
DATETIME YEAR TO FRACTION(n) data. The DATETIME YEAR TO
FRACTION(n) is typically used to implement data modification timestamps to track user
changes.