openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <>
Subject [jira] Resolved: (OPENJPA-1575) Query parameter on externalized field breaks Prepared Query Cache
Date Mon, 15 Mar 2010 21:27:27 GMT


Pinaki Poddar resolved OPENJPA-1575.

    Resolution: Fixed

> Query parameter on externalized field breaks Prepared Query Cache
> -----------------------------------------------------------------
>                 Key: OPENJPA-1575
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel, query
>    Affects Versions: 2.0.0-beta2
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0
> If field value has been externalized and the query is using a parameter for that field,
caching its SQL breaks because re-parametrization of the SQL can not externalize the user
supplied parameter value through the field. The worse is the query is cached anyway and its
parameter substituted with (wrong) non-externalized, user-supplied value -- resulting in wrong
> Currently we will detect such usage and exclude the the query being cached.
> However, we can consider a mechanics to capture the parametrized fields in a query expression
tree and appropriately pass the user values through the fields' externalizer in future. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message