summaryrefslogtreecommitdiff
path: root/support-files/my-medium.cnf.sh
diff options
context:
space:
mode:
authorunknown <thek@adventure.(none)>2007-08-17 16:55:20 +0200
committerunknown <thek@adventure.(none)>2007-08-17 16:55:20 +0200
commitbd80048fdbcd828622858520ff69707056da6595 (patch)
treebd6aa41892045dd6b60e4f78c7d3215fb8d20bbb /support-files/my-medium.cnf.sh
parent07955aea2dc369be7637f28331bd1072a995d572 (diff)
downloadmariadb-git-bd80048fdbcd828622858520ff69707056da6595.tar.gz
Bug #30269 Query cache eats memory
Although the query cache doesn't support retrieval of statements containing column level access control, it was still possible to cache such statements thus wasting memory. This patch extends the access control check on the target tables to avoid caching a statement with column level restrictions. mysql-test/r/query_cache.result: Added test mysql-test/t/query_cache.test: Added test sql/sql_cache.cc: The function check_table_access leaves the artifact grant.want_privileges= 1, if a statement refers to tables with column level privileges. To avoid the statement from being stored into the query cache, it is enough to check this flag and set 'safe_to_cache_query' to zero. sql/sql_cache.h: - Removed 'static' attribute or class methods - Added THD parameter to process_and_count_tables
Diffstat (limited to 'support-files/my-medium.cnf.sh')
0 files changed, 0 insertions, 0 deletions