Nikita Timofeev created CAY-2810:
------------------------------------

             Summary: Can't use custom operator expression with aggregate 
functions
                 Key: CAY-2810
                 URL: https://issues.apache.org/jira/browse/CAY-2810
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library, Database integration
    Affects Versions: 4.2
         Environment: PostgreSQL
            Reporter: Nikita Timofeev
            Assignee: Nikita Timofeev
             Fix For: 4.2.1, 5.0.M1


Custom operators are not properly replaced by an alias in the {{group by}} 
section leading to the incorrect SQL. 
For example selecting {{Entity.DATA.operator("->>", String.class, 
"field").alias("field")}} results in the following SQL {{GROUP BY t0.data ->> ? 
field}}

Note that functions are working fine in that case.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to