Merging fix for bug #9796 "Query Cache caches queries with CURRENT_USER()

function" into 4.1 tree.
This commit is contained in:
dlenev@brandersnatch.localdomain 2005-04-11 10:44:48 +04:00
parent b0dd388190
commit 831a612483

View File

@ -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,