[
https://issues.apache.org/jira/browse/CAY-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikita Timofeev closed CAY-2736.
--------------------------------
Fix Version/s: 4.1.2
Resolution: Fixed
{*}4.1{*}:
https://github.com/apache/cayenne/commit/ebe763570364c53b44f9ad0429390174aba685e0
> Can't use function names as a path in a string-based expression
> ---------------------------------------------------------------
>
> Key: CAY-2736
> URL: https://issues.apache.org/jira/browse/CAY-2736
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library
> Affects Versions: 4.1.1, 4.2.B1
> Reporter: Nikita Timofeev
> Assignee: Nikita Timofeev
> Priority: Minor
> Fix For: 4.1.2, 4.2.B2
>
>
> Path like {{db:year}} causes expression parser to fail even if this is a
> normal DB attribute name.
> There's no workaround for this, if you need to parse expression from string.
> Fix would be to allow such names for explicit path syntax (i.e. for {{obj:}},
> {{db:}}, {{dbid:}} and {{enum:}}). If needed this could be added to the
> simple object path as well at the cost of some performance degradation.
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)