Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2811

Incorrect SQL building using ColumnQuery with ASTScalar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1, 4.2
    • 5.0-M1
    • Core Library
    • None

    Description

      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:
      java.sql.SQLSyntaxErrorException: unexpected token: FROM in statement [SELECT RTRIM(t0.ARTIST_NAME),  FROM ARTIST t0]

      Attachments

        Activity

          People

            Unassigned Unassigned
            Ivan Nikitka Ivan Nikitka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m