[
https://issues.apache.org/jira/browse/OPENJPA-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136943#comment-18136943
]
ASF subversion and git services commented on OPENJPA-3048:
----------------------------------------------------------
Commit 510409c80707b575f58e596f6cc191dc2b6cda09 in openjpa's branch
refs/heads/OPENJPA-3048 from Maxim Solodovnik
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=510409c80 ]
[OPENJPA-3048] pattern matching
> JDBC escape date literal is not converted when a query is evaluated in memory
> -----------------------------------------------------------------------------
>
> Key: OPENJPA-3048
> URL: https://issues.apache.org/jira/browse/OPENJPA-3048
> Project: OpenJPA
> Issue Type: Sub-task
> Reporter: Richard Zowalla
> Priority: Major
>
> When a query is evaluated in memory (for example over a candidate
> collection), a JDBC escape literal such as {{\{d '2021-01-03'\}}} reaches the
> expression as the raw string, so {{EXTRACT(YEAR FROM \{d '2021-01-03'\})}}
> fails. The literal class ({{Lit}}) should convert it to a date, time or
> timestamp value as the SQL path does.
> Found while working on OPENJPA-3042.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)