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

Table functions should only accept arguments which are constant in their query block.

    Details

    • Urgency:
      Normal
    • Issue & fix info:
      Patch Available, Release Note Needed
    • Bug behavior facts:
      Deviation from standard, Wrong query result

      Description

      Derby lets you invoke a table function in the FROM list of a query, passing in arguments built out of columns in other tables in the FROM list. This syntax is illegal and the resulting queries have no meaning under the SQL Standard. See the discussion on DERBY-5554. We should forbid this syntax. Similar syntax involving correlated subqueries in the FROM list is already forbidden. Fixing this will create a backward incompatibility which requires a release note.

        Attachments

        1. derby-5779-01-ab-forbidReferencesInQueryBlock.diff
          8 kB
          Rick Hillegas
        2. releaseNote.html
          3 kB
          Rick Hillegas
        3. derby-5779-02-aa-forbidReferencesToJoinedTables.diff
          5 kB
          Rick Hillegas
        4. derby-5779-03-aa-moreTests.diff
          5 kB
          Rick Hillegas
        5. derby-5779-04-aa-subqueriesInFromList.diff
          9 kB
          Rick Hillegas
        6. derby-5779-04-ab-subqueriesInFromList.diff
          18 kB
          Rick Hillegas

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Rick Hillegas
                Reporter:
                rhillegas Rick Hillegas
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: