You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2022/05/20 15:15:00 UTC

[jira] [Commented] (CAY-2736) Can't use function names as a path in a string-based expression

    [ https://issues.apache.org/jira/browse/CAY-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540176#comment-17540176 ] 

Nikita Timofeev commented on CAY-2736:
--------------------------------------

*4.2*: https://github.com/apache/cayenne/commit/b8046c88c92f5a7617403c292efa8e177ddcafa6

> 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.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)