1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

failing to parse an SP should not abort information_schema.routines

This commit is contained in:
Sergei Golubchik
2021-01-04 15:39:36 +01:00
parent f7ff8f5dd9
commit d463677f7e
3 changed files with 8 additions and 5 deletions

View File

@ -5059,7 +5059,8 @@ public:
Sql_condition::enum_warning_level *level,
const char* msg, Sql_condition ** cond_hdl)
{
if (sql_errno == ER_TRG_NO_DEFINER || sql_errno == ER_TRG_NO_CREATION_CTX)
if (sql_errno == ER_TRG_NO_DEFINER || sql_errno == ER_TRG_NO_CREATION_CTX
|| sql_errno == ER_PARSE_ERROR)
return true;
if (*level != Sql_condition::WARN_LEVEL_ERROR)