Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-5642

aggregate functions not allowed in order by clause on some dbmses

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.6 M6, 2.6
    • 2.6 M3
    • None
    • None

    Description

      SELECT new com.atlassian.bamboo.utils.Pair(tcr.testCase.id, count) FROM TestCaseResultImpl tcr
      WHERE tcr.testCase.testClass.plan = :plan
      AND tcr.state = 'FAILED'
      group by tcr.testCase.id
      order by count desc

      This query fails on MySQL 4.1, it does not allow count in "order by" clause. All possibly affected queries have to be converted.

      Attachments

        Activity

          People

            pbruski Przemek Bruski
            pbruski Przemek Bruski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: