glassfish
  1. glassfish
  2. GLASSFISH-16220

Every ReportQuery, which selects single Boolean entity attribute results in incorrect resultset

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1_b43
    • Fix Version/s: None
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Win 7, Glassfish 3.1 b43

      Description

      Every ReportQuery, which selects single Boolean entity attribute results in incorrect result set, since
      all rows with 'TRUE' value of that attribute are not returned.
      For example:
      select a.isInStock from Article a
      (isInStock is Boolean attribute)

      The reason for that is bug fix for the GF_ISSUE_395. The code that tries to throw away duplicate values( to make DISTINCT in the container )
      actually throws away 'TRUE' result objects (ReportQuery:626):

      // GF_ISSUE_395
      if (shouldDistinctBeUsed())

      { this.returnedKeys = new HashSet(size); }

      //end GF_ISSUE
      //If only the attribute is desired, then buildObject will only get the first attribute each time
      for (int index = 0; index < size; index++) {
      // GF_ISSUE_395
      Object result = buildObject((AbstractRecord)rows.get(index), rows);
      if (result != RESULT_IGNORED)

      { containerPolicy.addInto(result, reportResults, this.session); }

      //end GF_ISSUE
      }

        Activity

        Hide
        Mitesh Meswani added a comment -
        Show
        Mitesh Meswani added a comment - Filled EclipseLink https://bugs.eclipse.org/bugs/show_bug.cgi?id=340089
        Hide
        scatari added a comment -

        EclipseLink bug will not be resolved in time for 3.1.1. To be considered in the next release.

        Show
        scatari added a comment - EclipseLink bug will not be resolved in time for 3.1.1. To be considered in the next release.
        Hide
        Mitesh Meswani added a comment -

        Waiting for fix from EclipseLink. Excluding from 3.1.2. Please vote for EclipseLink bug above if you want this issue fixed.

        Show
        Mitesh Meswani added a comment - Waiting for fix from EclipseLink. Excluding from 3.1.2. Please vote for EclipseLink bug above if you want this issue fixed.

          People

          • Assignee:
            tware
            Reporter:
            Ivan Slavov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: