Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5380

Disallow the default option for a function parameter

    XMLWordPrintable

Details

    • Quality Risk
    • Resolution: Done
    • Major
    • 11.0
    • None
    • Query Engine
    • None

    Description

      Currently there's no support in Teiid for default values for parameters of a Function.

      But Function element in BNF for SQL Grammar shares the definition with Procedure, which permits to deploy such a VDB, where there are DEFAULT values defined on a Function parameter.

      So a VDB with following DDL shouldn't deploy successfully:

      CREATE VIRTUAL FUNCTION f1(e2 string NOT NULL DEFAULT 'default') RETURNS string AS
      BEGIN
          RETURN e2;
      END;
      

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            jstastny@redhat.com Jan Stastny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: