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

You should not be able to invoke a table function as a scalar function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.5.3.1, 10.6.1.0
    • Component/s: SQL
    • Labels:
      None
    • Urgency:
      Normal
    • Issue & fix info:
      Newcomer, Patch Available
    • Bug behavior facts:
      Deviation from standard, Wrong query result

      Description

      If you invoke a table function as a scalar function, Derby instantiates the ResultSet returned by the table function and returns that ResultSet. This behavior looks wrong. Derby should raise an error if you invoke a table function as a scalar function. Here is an example of the problem:

      ij> values ( badVTI( 'foo' ) );
      1
      ---------------
      BadVTI@1ef69

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: