1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Fixed BUG#14233: Crash after tampering with the mysql.proc table

Post-review version. Some minor review fixes, but also changed the way
  some errors are handled: Don't return specific parse errors; instead
  always use the more general "table corrupt" error (amended accordingly).
This commit is contained in:
pem@mysql.com
2005-11-25 17:09:26 +01:00
parent 1111b5cd02
commit eb5bf2ec33
8 changed files with 71 additions and 52 deletions

View File

@@ -4111,14 +4111,6 @@ end_with_restore_list:
}
}
#endif
if (lex->sphead->m_type == TYPE_ENUM_FUNCTION &&
!(lex->sphead->m_flags & sp_head::HAS_RETURN))
{
my_error(ER_SP_NORETURN, MYF(0), name);
delete lex->sphead;
lex->sphead= 0;
goto error;
}
/*
We need to copy name and db in order to use them for