summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-02-27 22:26:09 +0200
committerunknown <bell@sanja.is.com.ua>2003-02-27 22:26:09 +0200
commit5b2a810e5d857856971dcd0e9f88ec1a397486d2 (patch)
tree1e5997ba2cebe6bd5f5e9e9e51c5391e480f1206 /sql/sql_cache.cc
parent828d7c6ec2fcd3a124dc043d7c19472106a11721 (diff)
downloadmariadb-git-5b2a810e5d857856971dcd0e9f88ec1a397486d2.tar.gz
fixed SQL_SELECT option with UNIONs
mysql-test/r/query_cache.result: test of SQL_CACHE with UNIONs mysql-test/t/query_cache.test: test of SQL_CACHE with UNIONs
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 64c62345182..ee62d7b16ed 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2439,7 +2439,7 @@ TABLE_COUNTER_TYPE Query_cache::is_cacheable(THD *thd, uint32 query_len,
if (lex->sql_command == SQLCOM_SELECT &&
(thd->variables.query_cache_type == 1 ||
- (thd->variables.query_cache_type == 2 && (lex->select->options &
+ (thd->variables.query_cache_type == 2 && (lex->select_lex.options &
OPTION_TO_QUERY_CACHE))) &&
thd->safe_to_cache_query)
{