Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8649

Table functions: SHOW FUNCTION STATUS gives an error

    XMLWordPrintable

Details

    Description

      This task is a part of dj 's GSoC project.

      I am using the current table functions tree and I run the following:

      delimiter |
       
      CREATE FUNCTION f10(param1 VARCHAR(11))
      RETURNS TABLE return_table(name VARCHAR(11)) 
      deterministic
      BEGIN
      insert into return_table values('foo');
      END|
       
      DELIMITER ;

      Then I run:

      MariaDB [test]> show function status;
      ERROR 1313 (42000): RETURN is only allowed in a FUNCTION

      Apparently some of the code is not aware of the presence of table functions.

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.