mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-11346 Move functions case_stmt_xxx and add_select_to_union_list as methods to LEX
The full list of functions moved: 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); This is a preparatory change for "MDEV-10142 PL/SQL parser", to reuse the code easier between sql_yacc.yy and coming soon sql_yacc_ora.yy.
This commit is contained in:
@@ -3010,6 +3010,12 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
int case_stmt_action_expr(Item* expr);
|
||||
int case_stmt_action_when(Item *when, bool simple);
|
||||
int case_stmt_action_then();
|
||||
bool add_select_to_union_list(bool is_union_distinct, bool is_top_level);
|
||||
bool setup_select_in_parentheses();
|
||||
|
||||
// Check if "KEY IF NOT EXISTS name" used outside of ALTER context
|
||||
bool check_add_key(DDL_options_st ddl)
|
||||
{
|
||||
|
Reference in New Issue
Block a user