diff options
author | unknown <sanja@askmonty.org> | 2010-11-29 22:02:33 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2010-11-29 22:02:33 +0200 |
commit | 42187df61e15e7ce8bea03779acba490af26ff7e (patch) | |
tree | 5b044910f165da22be38aabe0f71c4f0e24b4fd4 | |
parent | 225132084030718be2c698a9eb0e233afdd9509a (diff) | |
download | mariadb-git-42187df61e15e7ce8bea03779acba490af26ff7e.tar.gz |
Fix logical expression according to operation priority (also MS visual studio compiler warnings).
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index bb6b034b4e4..2880c818b8c 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -7442,7 +7442,7 @@ uint check_join_cache_usage(JOIN_TAB *tab, Non-linked join buffers can't guarantee one match */ if (force_unlinked_cache && - (!tab->type == JT_ALL || cache_level <= 4) && + (!(tab->type == JT_ALL) || cache_level <= 4) && ((tab->is_inner_table_of_semi_join_with_first_match() && !tab->is_single_inner_of_semi_join_with_first_match()) || (tab->is_inner_table_of_outer_join() && |