Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2457

Use of column aliases in group by / having clauses can cause queries to fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 10.3.1.4
    • None
    • SQL
    • None

    Description

      Some use of column aliases in group by / having clauses can cause queries to fail with error 42X04. The queries can sometimes be made to work by also aliasing the table or rewriting the query to use a subselect. Attached is a simple sql script which reproduces the issue, originally found as part of DERBY-1624.

      Attachments

        1. additionalTests.diff
          6 kB
          Bryan Pendleton
        2. 1624_repro.sql
          2 kB
          Samuel Andrew McIntyre

        Issue Links

          Activity

            People

              bryanpendleton Bryan Pendleton
              fuzzylogic Samuel Andrew McIntyre
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: