Skip to content

Commit 2e509e9

Browse files
committed
expr cleanup
1 parent bd81df3 commit 2e509e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver/database/sql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ fn extract_static_simple_select(
311311
&& s.distinct.is_none()
312312
&& s.distribute_by.is_empty()
313313
&& s.from.is_empty()
314-
&& matches!(&s.group_by, sqlparser::ast::GroupByExpr::Expressions(e, _) if e.is_empty())
314+
&& s.group_by == sqlparser::ast::GroupByExpr::Expressions(vec![], vec![])
315315
&& s.having.is_none()
316316
&& s.into.is_none()
317317
&& s.lateral_views.is_empty()

0 commit comments

Comments
 (0)