diff options
author | unknown <bell@sanja.is.com.ua> | 2003-02-27 22:26:09 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-02-27 22:26:09 +0200 |
commit | 5b2a810e5d857856971dcd0e9f88ec1a397486d2 (patch) | |
tree | 1e5997ba2cebe6bd5f5e9e9e51c5391e480f1206 /sql/sql_cache.cc | |
parent | 828d7c6ec2fcd3a124dc043d7c19472106a11721 (diff) | |
download | mariadb-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.cc | 2 |
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) { |