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

DbEntity qualifier with DbPath expression translates into wrong SQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.1, 4.0.B2, 4.1.M1
    • 3.1.3, 4.0.RC1, 4.1.M2
    • None
    • None

    Description

      When qualifier with DbPath expression attached to DbEntity (e.g. programmatically set ExpressionFactory.matchDbExpression() qualifier) used in JOIN clause, it generates wrong SQL.

      For example: JOIN GROUP t2 ON (t1.GROUPID = t2.GROUPID AND t0.DELETED = 0)
      Note t0 alias used with DELETED field, t2 should be used instead.

      Everything works fine if ObjPath used in qualifier.

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: