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

Disallow CREATE VIEW .. PROCEDURE ANALYSE() syntactically

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.1
    • Parser
    • None

    Description

      A query like this:

      CREATE VIEW v1 AS SELECT 1 FROM t1 PROCEDURE ANALYSE();
      

      is currently disallowed by this code:

      view_select:
        ...
         lex->parsing_options.allows_select_procedure= FALSE;
         ;
       
      ...
       
      procedure_clause:
        ...
        if (! lex->parsing_options.allows_select_procedure)
        {
          my_error(ER_VIEW_SELECT_CLAUSE, MYF(0), "PROCEDURE");
          MYSQL_YYABORT;
        }
      
      

      It should be disallowed syntactically.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.