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

Maxim Solodovnik resolved OPENJPA-3048.
---------------------------------------
    Fix Version/s: 4.2.0
         Assignee: Richard Zowalla
       Resolution: Fixed

> 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
>            Assignee: Richard Zowalla
>            Priority: Major
>             Fix For: 4.2.0
>
>
> 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)

Reply via email to