Commit 79e295b6 authored by Alexander Barkov's avatar Alexander Barkov

Cleanup: moving '(' after the stmt_create_stored_function_start() call

This is a logically better position.
Also, this makes the code in sql_yacc.yy and sql_yacc_ora.yy look more similar.
parent 0858500f
...@@ -2899,24 +2899,24 @@ create: ...@@ -2899,24 +2899,24 @@ create:
Lex->pop_select(); //main select Lex->pop_select(); //main select
} }
| create_or_replace definer opt_aggregate FUNCTION_SYM opt_if_not_exists | create_or_replace definer opt_aggregate FUNCTION_SYM opt_if_not_exists
sp_name '(' sp_name
{ {
if (Lex->stmt_create_stored_function_start($1 | $5, $3, $6)) if (Lex->stmt_create_stored_function_start($1 | $5, $3, $6))
MYSQL_YYABORT; MYSQL_YYABORT;
} }
sp_fdparam_list ')' sp_parenthesized_fdparam_list
sf_return_type sf_return_type
sf_c_chistics_and_body sf_c_chistics_and_body
{ {
Lex->stmt_create_routine_finalize(); Lex->stmt_create_routine_finalize();
} }
| create_or_replace no_definer opt_aggregate FUNCTION_SYM opt_if_not_exists | create_or_replace no_definer opt_aggregate FUNCTION_SYM opt_if_not_exists
sp_name '(' sp_name
{ {
if (Lex->stmt_create_stored_function_start($1 | $5, $3, $6)) if (Lex->stmt_create_stored_function_start($1 | $5, $3, $6))
MYSQL_YYABORT; MYSQL_YYABORT;
} }
sp_fdparam_list ')' sp_parenthesized_fdparam_list
sf_return_type sf_return_type
sf_c_chistics_and_body sf_c_chistics_and_body
{ {
...@@ -3489,6 +3489,10 @@ sp_parenthesized_pdparam_list: ...@@ -3489,6 +3489,10 @@ sp_parenthesized_pdparam_list:
} }
; ;
sp_parenthesized_fdparam_list:
'(' sp_fdparam_list ')'
;
sp_proc_stmts: sp_proc_stmts:
/* Empty */ {} /* Empty */ {}
| sp_proc_stmts sp_proc_stmt ';' | sp_proc_stmts sp_proc_stmt ';'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment