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

Disallow the default option for a function parameter

    Details

    • Type: Quality Risk
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 11.0
    • Component/s: Query Engine
    • Labels:
      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;
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                jstastny Jan Stastny
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: