summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/item_create.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 4b313d49466..2b12a1310b9 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -306,7 +306,7 @@ Item *create_func_current_user()
char buff[HOSTNAME_LENGTH+USERNAME_LENGTH+2];
uint length;
- thd->safe_to_cache_query= 0;
+ thd->lex->safe_to_cache_query= 0;
length= (uint) (strxmov(buff, thd->priv_user, "@", thd->priv_host, NullS) -
buff);
return new Item_string(NullS, thd->memdup(buff, length), length,