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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.5.1.1
    • 10.5.3.1, 10.6.1.0
    • SQL
    • None
    • Normal
    • Newcomer, Patch Available
    • 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

            rhillegas Richard N. Hillegas
            rhillegas Richard N. Hillegas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: