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

Disallow CREATE VIEW .. PROCEDURE ANALYSE() syntactically

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.2.1
    • Component/s: Parser
    • Labels:
      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

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: