summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index b0381ae1d30..a8f72ecc943 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -169,7 +169,7 @@ static int find_keyword(LEX *lex, uint len, bool function)
LEX_STRING ls;
ls.str = (char *)tok; ls.length= len;
- if (function && sp_function_exists(current_thd, &ls)) // QQ temp fix
+ if (function && sp_function_exists(lex->thd, &ls)) // QQ temp fix
{
lex->safe_to_cache_query= 0;
lex->yylval->lex_str.str= lex->thd->strmake((char*)lex->tok_start, len);