Skip to content

Commit d951689

Browse files
committed
Set filter on the way down as well
1 parent 3c0ab0d commit d951689

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

execution.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func (q *QueryExecutor) Visit(n sql.Node) (sql.Visitor, sql.Node, error) {
2727
}
2828

2929
switch t := n.(type) {
30+
case *sql.UnaryExpr, *sql.BinaryExpr:
31+
q.filter = t
3032
case *sql.SelectStatement:
3133
if t.Limit.IsValid() {
3234
q.limit = t.LimitExpr

0 commit comments

Comments
 (0)