diff options
author | unknown <dlenev@brandersnatch.localdomain> | 2005-04-11 10:44:48 +0400 |
---|---|---|
committer | unknown <dlenev@brandersnatch.localdomain> | 2005-04-11 10:44:48 +0400 |
commit | 93b4fbea9247aad1ad469a252ef1b67fc8e87bdf (patch) | |
tree | 0f59810d7171f455d6d76266520f77af7202f01f /sql/item_create.cc | |
parent | d79e696952ca56f4a31a63648bfe182a5de76b8e (diff) | |
download | mariadb-git-93b4fbea9247aad1ad469a252ef1b67fc8e87bdf.tar.gz |
Merging fix for bug #9796 "Query Cache caches queries with CURRENT_USER()
function" into 4.1 tree.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 2 |
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, |