Commit 42187df6 authored by unknown's avatar unknown

Fix logical expression according to operation priority (also MS visual studio compiler warnings).

parent 22513208
...@@ -7442,7 +7442,7 @@ uint check_join_cache_usage(JOIN_TAB *tab, ...@@ -7442,7 +7442,7 @@ uint check_join_cache_usage(JOIN_TAB *tab,
Non-linked join buffers can't guarantee one match Non-linked join buffers can't guarantee one match
*/ */
if (force_unlinked_cache && 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_inner_table_of_semi_join_with_first_match() &&
!tab->is_single_inner_of_semi_join_with_first_match()) || !tab->is_single_inner_of_semi_join_with_first_match()) ||
(tab->is_inner_table_of_outer_join() && (tab->is_inner_table_of_outer_join() &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment