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

Fetching distinct related objects in EJBQL throws an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.M2
    • 4.0.B2
    • Core Library
    • None
    • Java 1.8.0_45 running on OS X

    Description

      Retrieving a list of distinct related objects in EJBQL using the following syntax fails:

      "select distinct receipt.shop from Receipt receipt”

      Stack trace:
      https://gist.github.com/hugith/c3f48c4576e6a55383b3

      Same query works fine without the "distinct" keyword.
      Same query works fine if you specify an attribute on "shop" (not just the related object).

      Attachments

        Issue Links

          Activity

            People

              ntimofeev Nikita Timofeev
              hugith Hugi Thordarson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: