mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-18813 PROCEDURE and anonymous blocks silently ignore FETCH GROUP NEXT ROW
Part#1: moving opt_if_not_exists from "sf_tail" and "sp_tail" to "create".
This commit is contained in:
@ -6532,6 +6532,14 @@ bool LEX::sp_body_finalize_procedure(THD *thd)
|
||||
}
|
||||
|
||||
|
||||
bool LEX::sp_body_finalize_procedure_standalone(THD *thd,
|
||||
const sp_name *end_name)
|
||||
{
|
||||
return sp_body_finalize_procedure(thd) ||
|
||||
sphead->check_standalone_routine_end_name(end_name);
|
||||
}
|
||||
|
||||
|
||||
bool LEX::sp_body_finalize_function(THD *thd)
|
||||
{
|
||||
if (sphead->is_not_allowed_in_function("function"))
|
||||
@ -6548,6 +6556,14 @@ bool LEX::sp_body_finalize_function(THD *thd)
|
||||
}
|
||||
|
||||
|
||||
bool LEX::sp_body_finalize_function_standalone(THD *thd,
|
||||
const sp_name *end_name)
|
||||
{
|
||||
return sp_body_finalize_function(thd) ||
|
||||
sphead->check_standalone_routine_end_name(end_name);
|
||||
}
|
||||
|
||||
|
||||
bool LEX::sp_block_with_exceptions_finalize_declarations(THD *thd)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user