mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
The second cleanup patch in scope of BUG#11986.
1. Introduce parse_sql() as a high-level replacement for MYSQLparse(). parse_sql() is responsible to switch and restore "parser context" (THD::m_lip for now). 2. Fix typo in sp.cc: THD::spcont should be reset *before* calling the parser.
This commit is contained in:
@ -1875,11 +1875,9 @@ Event_job_data::execute(THD *thd, bool drop)
|
||||
|
||||
{
|
||||
Lex_input_stream lip(thd, thd->query, thd->query_length);
|
||||
thd->m_lip= &lip;
|
||||
lex_start(thd);
|
||||
int err= MYSQLparse(thd);
|
||||
|
||||
if (err || thd->is_fatal_error)
|
||||
if (parse_sql(thd, &lip))
|
||||
{
|
||||
sql_print_error("Event Scheduler: "
|
||||
"%serror during compilation of %s.%s",
|
||||
|
Reference in New Issue
Block a user