rzo1 opened a new pull request, #239: URL: https://github.com/apache/openjpa/pull/239
https://issues.apache.org/jira/browse/OPENJPA-3042 In-memory `EXTRACT` (e.g. a query over a candidate collection): - WEEK was mapped to `ALIGNED_DAY_OF_WEEK_IN_YEAR`, a day of the week; now `IsoFields.WEEK_OF_WEEK_BASED_YEAR`. QUARTER uses `IsoFields.QUARTER_OF_YEAR`. - `Timestamp`, `java.util.Date`, `Calendar` and `Instant` failed or were rejected; they are now read as local date and time. Null gives null, SECOND keeps nanoseconds. - `EXTRACT(DATE/TIME)` handles the same types and null. H2's own `EXTRACT(WEEK)` depends on the JVM locale, so `H2Dictionary` renders WEEK as `ISO_WEEK` (migration note added). This touches `H2Dictionary` next to #238 (OPENJPA-3041); whichever is merged second needs a small rebase. `TestInMemoryScalarExpressions` covers every field for each type and compares WEEK with H2. Full suite passes on Derby and H2. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
