diff options
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 82f8e88d889..8de1b6e906a 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -765,7 +765,7 @@ sp_head::reset_lex(THD *thd) thd->lex= sublex= new st_lex; /* Reset most stuff. The length arguments doesn't matter here. */ - mysql_init_query(thd,oldlex->buf, oldlex->end_of_query - oldlex->ptr, TRUE); + lex_start(thd, oldlex->buf, (ulong) (oldlex->end_of_query - oldlex->ptr)); /* We must reset ptr and end_of_query again */ sublex->ptr= oldlex->ptr; |