diff options
author | dlenev@mysql.com <> | 2005-04-11 00:30:23 +0400 |
---|---|---|
committer | dlenev@mysql.com <> | 2005-04-11 00:30:23 +0400 |
commit | 06e36472741258f89f58be90a94bf66ad45bb32c (patch) | |
tree | 399431c2e664a0e664adac3515c389e2d29de3a7 /sql/item_create.cc | |
parent | 9dfc87e270e15b6131cf37f7d2398b571dab0047 (diff) | |
download | mariadb-git-06e36472741258f89f58be90a94bf66ad45bb32c.tar.gz |
Fix for bug #9796 "Query Cache caches queries with CURRENT_USER()
function".
We should not cache queries using CURRENT_USER() function as we do it
for some other functions, e.g. USER() function.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 6809d6892b0..877e63047d6 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -297,6 +297,7 @@ Item *create_func_current_user() char buff[HOSTNAME_LENGTH+USERNAME_LENGTH+2]; uint length; + thd->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); |