Ivan Nikitka created CAY-2811:
---------------------------------

             Summary: Incorrect SQL building using ColumnQuerry with ASTScalar
                 Key: CAY-2811
                 URL: https://issues.apache.org/jira/browse/CAY-2811
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 4.2, 4.1
            Reporter: Ivan Nikitka
             Fix For: 5.0.M1


*The resulted SQL of* 

Property<Integer> property = 
Property.create(ExpressionFactory.wrapScalarValue(123), Integer.class);
ObjectSelect.columnQuery(Artist.class, Artist.ARTIST_NAME, 
property).select(context);

*is:*
{color:#FF0000}java.sql.SQLSyntaxErrorException: unexpected token: FROM in 
statement [SELECT RTRIM(t0.ARTIST_NAME),  FROM ARTIST t0]{color}



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

Reply via email to