diff options
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index 93541d66d65..5292299f928 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -249,11 +249,11 @@ int st_select_lex_unit::exec() ulonglong add_rows=0; DBUG_ENTER("st_select_lex_unit::exec"); - if (executed && !(dependent || uncacheable)) + if (executed && !uncacheable) DBUG_RETURN(0); executed= 1; - if ((dependent || uncacheable) || !item || !item->assigned()) + if (uncacheable || !item || !item->assigned()) { if (optimized && item && item->assigned()) { |