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

Add LEX methods stmt_drop_{function|procedure}() and stmt_alter_{function|procedure}_start()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.5.0
    • Component/s: Parser
    • Labels:
      None

      Description

      In order to unify sql_yacc.yy and sql_yacc_ora.yy easier let's add these methods to LEX:

      bool stmt_drop_function(const DDL_options_st &options,
                               const Lex_ident_sys_st &db,
                               const Lex_ident_sys_st &name);
      bool stmt_drop_function(const DDL_options_st &options,
                             const Lex_ident_sys_st &name);
      bool stmt_drop_procedure(const DDL_options_st &options,
                               sp_name *name);
      bool stmt_alter_function_start(sp_name *name);
      bool stmt_alter_procedure_start(sp_name *name);
      

      and thus simplify the code in *.yy related to:

      • DROP FUNCTION
      • DROP PROCEDURE
      • ALTER FUNCTION
      • ALTER PROCEDURE

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: