[MDEV-20985] Add LEX methods stmt_drop_{function|procedure}() and stmt_alter_{function|procedure}_start() Created: 2019-11-05  Updated: 2020-01-23  Resolved: 2019-11-06

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: 10.5.0

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy Closed

 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

Generated at Thu Feb 08 09:03:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.