Skip to content

Commit 352723c

Browse files
committed
cleanup sql_yacc.yy: rename rules for loops with and without label to follow BEGIN...END rule naming
1 parent 45907be commit 352723c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sql/sql_yacc.yy

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ END_OF_INPUT
18781878
%type <NONE> call sp_proc_stmts sp_proc_stmts1 sp_proc_stmt
18791879
%type <NONE> sp_proc_stmt_statement sp_proc_stmt_return
18801880
%type <NONE> sp_proc_stmt_if
1881-
%type <NONE> sp_labeled_control sp_proc_stmt_unlabeled
1881+
%type <NONE> sp_labeled_control sp_unlabeled_control
18821882
%type <NONE> sp_labeled_block sp_unlabeled_block
18831883
%type <NONE> sp_proc_stmt_leave
18841884
%type <NONE> sp_proc_stmt_iterate
@@ -2705,7 +2705,7 @@ ev_sql_stmt_inner:
27052705
| sp_labeled_block
27062706
| sp_unlabeled_block
27072707
| sp_labeled_control
2708-
| sp_proc_stmt_unlabeled
2708+
| sp_unlabeled_control
27092709
| sp_proc_stmt_leave
27102710
| sp_proc_stmt_iterate
27112711
| sp_proc_stmt_open
@@ -3633,7 +3633,7 @@ sp_proc_stmt:
36333633
| sp_labeled_block
36343634
| sp_unlabeled_block
36353635
| sp_labeled_control
3636-
| sp_proc_stmt_unlabeled
3636+
| sp_unlabeled_control
36373637
| sp_proc_stmt_leave
36383638
| sp_proc_stmt_iterate
36393639
| sp_proc_stmt_open
@@ -3731,14 +3731,14 @@ sp_proc_stmt_return:
37313731
}
37323732
;
37333733

3734-
sp_proc_stmt_unlabeled:
3734+
sp_unlabeled_control:
37353735
{ /* Unlabeled controls get a secret label. */
37363736
LEX *lex= Lex;
37373737

37383738
lex->spcont->push_label(thd, empty_lex_str,
37393739
lex->sphead->instructions());
37403740
}
3741-
sp_unlabeled_control
3741+
sp_control_content
37423742
{
37433743
LEX *lex= Lex;
37443744

@@ -4136,7 +4136,7 @@ sp_labeled_control:
41364136
lab->type= sp_label::ITERATION;
41374137
}
41384138
}
4139-
sp_unlabeled_control sp_opt_label
4139+
sp_control_content sp_opt_label
41404140
{
41414141
LEX *lex= Lex;
41424142
sp_label *lab= lex->spcont->pop_label();
@@ -4241,7 +4241,7 @@ sp_block_content:
42414241
}
42424242
;
42434243

4244-
sp_unlabeled_control:
4244+
sp_control_content:
42454245
LOOP_SYM
42464246
sp_proc_stmts1 END LOOP_SYM
42474247
{

0 commit comments

Comments
 (0)