diff --git a/src/controller/sql/passes/implied_tables.rs b/src/controller/sql/passes/implied_tables.rs index fa58ffd9a..11aaa2229 100644 --- a/src/controller/sql/passes/implied_tables.rs +++ b/src/controller/sql/passes/implied_tables.rs @@ -144,9 +144,10 @@ fn rewrite_selection( | &mut Sum(ref mut fe, _) | &mut Min(ref mut fe) | &mut Max(ref mut fe) - | &mut GroupConcat(ref mut fe, _) if fe.table.is_none() => - { - fe.table = find_table(fe, tables_in_query); + | &mut GroupConcat(ref mut fe, _) => { + if fe.table.is_none() { + fe.table = find_table(fe, tables_in_query); + } } _ => {} }