Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5701

Bug SQL Count Distinct command in GenericDAO.java

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Bug Crush Event - 21/2/2015

      Description

      I have encounter the problem is: How can ofbiz framework count distinct for all selected fields in query function of delegator? Although EntityFindOptions.setDistinct(true) and the selected fields are all field, the ofbiz framework always count distinct follow only one field.

      I have resolved problem as my attact file

        Attachments

        1. SQLDistinctGenericDAO.diff
          3 kB
          kieuanhvu
        2. SQLDistinctGenericDAO.diff
          3 kB
          kieuanhvu
        3. GenericDAO.java.patch
          3 kB
          Jacques Le Roux
        4. GenericDAO.java.patch
          4 kB
          Jacques Le Roux

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kieuanhvu kieuanhvu
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: