[
https://issues.apache.org/jira/browse/OPENJPA-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla updated OPENJPA-3037:
-------------------------------------
Fix Version/s: 4.2.0
> MySQL: EXTRACT(WEEK) returns a different week
> ---------------------------------------------
>
> Key: OPENJPA-3037
> URL: https://issues.apache.org/jira/browse/OPENJPA-3037
> Project: OpenJPA
> Issue Type: Sub-task
> Reporter: Richard Zowalla
> Priority: Major
> Fix For: 4.2.0
>
>
> {{Client9.testExtractWeekFromDate}} fails with {{IndexOutOfBoundsException:
> Index 0 out of bounds for length 0}}, so the query finds no row. MySQL
> {{WEEK(d)}} uses mode 0 by default (weeks start on Sunday), while the
> expected value is the ISO week ({{WEEK(d, 3)}}).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)