[ 
https://issues.apache.org/jira/browse/OPENJPA-3055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Solodovnik resolved OPENJPA-3055.
---------------------------------------
    Resolution: Fixed

> EXTRACT(SECOND) lost the fraction (all MySQL and MariaDB jobs)
> --------------------------------------------------------------
>
>                 Key: OPENJPA-3055
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-3055
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Richard Zowalla
>            Assignee: Richard Zowalla
>            Priority: Major
>             Fix For: 4.2.0
>
>
>    - MySQL and MariaDB return only whole seconds for EXTRACT(SECOND). The fix 
> adds EXTRACT(MICROSECOND)/1000000.0, the same approach OPENJPA-3041 used for 
> H2.
>    - A second cause turned up after that: LocalTime parameters were sent to 
> the database as java.sql.Time, which has no fraction of a second. Both 
> dictionaries now send and read LocalTime directly, like H2 and Postgres 
> already do.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to