[
https://issues.apache.org/jira/browse/OPENJPA-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133108#comment-18133108
]
ASF subversion and git services commented on OPENJPA-3042:
----------------------------------------------------------
Commit 8b6d0e3ab125a46030a2ebe1e62b4ec96143c22c in openjpa's branch
refs/heads/OPENJPA-3042 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=8b6d0e3ab ]
[OPENJPA-3042] Evaluate EXTRACT(DATE/TIME) in memory for every temporal type
and render WEEK as ISO_WEEK on H2
> In-memory EXTRACT(WEEK) returns the day of the week
> ---------------------------------------------------
>
> Key: OPENJPA-3042
> URL: https://issues.apache.org/jira/browse/OPENJPA-3042
> Project: OpenJPA
> Issue Type: Sub-task
> Reporter: Richard Zowalla
> Assignee: Richard Zowalla
> Priority: Major
>
> When EXTRACT(WEEK) is evaluated in memory, {{DateTimeExtractField.WEEK}} is
> mapped to {{ChronoField.ALIGNED_DAY_OF_WEEK_IN_YEAR}}, which is a day-of-week
> value (1 to 7), not the ISO week of the year. It should use
> {{IsoFields.WEEK_OF_WEEK_BASED_YEAR}}, matching the SQL side (OPENJPA-3037).
> Found while testing OPENJPA-3029.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)