summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2004-07-22 00:26:33 +0200
committerserg@serg.mylan <>2004-07-22 00:26:33 +0200
commitaa35efd2924ab403a1bf68d16633b3c07c9f87f7 (patch)
tree8cd0c0e590ed0d49e90882e0a975bd31a5e810b0 /sql/sp_head.cc
parentc9fd77577756f8bd1535fb9c346cb76964cd4bc4 (diff)
downloadmariadb-git-aa35efd2924ab403a1bf68d16633b3c07c9f87f7.tar.gz
after merge fixes
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index bf2aff8de51..e32aa391b1d 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -690,17 +690,18 @@ sp_head::reset_lex(THD *thd)
(void)m_lex.push_front(oldlex);
thd->lex= sublex= new st_lex;
+
/* Reset most stuff. The length arguments doesn't matter here. */
- lex_start(thd, oldlex->buf, oldlex->end_of_query - oldlex->ptr);
- sublex->yylineno= oldlex->yylineno;
+ mysql_init_query(thd,oldlex->buf, oldlex->end_of_query - oldlex->ptr, TRUE);
+
/* We must reset ptr and end_of_query again */
sublex->ptr= oldlex->ptr;
sublex->end_of_query= oldlex->end_of_query;
sublex->tok_start= oldlex->tok_start;
+ sublex->yylineno= oldlex->yylineno;
/* And keep the SP stuff too */
sublex->sphead= oldlex->sphead;
sublex->spcont= oldlex->spcont;
- mysql_init_query(thd, true); // Only init lex
sublex->sp_lex_in_use= FALSE;
DBUG_VOID_RETURN;
}