PL/SQL parser (MDEV-10142)

[MDEV-11346] Move functions case_stmt_xxx and add_select_to_union_list as methods to LEX Created: 2016-11-24  Updated: 2020-08-27  Resolved: 2016-11-24

Status: Closed
Project: MariaDB Server
Component/s: Parser, Stored routines
Affects Version/s: None
Fix Version/s: 10.3.0

Type: Technical task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: Compatibility, refactoring

Sprint: 10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18

 Description   

The task MDEV-10142 will introduce the second *.yy file, with Oracle PL/SQL grammar.
Before we add the second *.yy file, we should move the functions defined in sql_yacc.yy as methods to lex, to avoid code duplication.
Under terms of this tasks we'll move:

int case_stmt_action_expr(LEX *, Item* expr);
int case_stmt_action_when(LEX *, Item *when, bool simple);
int case_stmt_action_then(LEX *);
bool add_select_to_union_list(LEX *,bool is_union_distinct,  bool is_top_level);



 Comments   
Comment by Alexander Barkov [ 2016-11-24 ]

Approved by Sanja. Pushed to 10.3.0

Generated at Thu Feb 08 07:49:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.