Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Aug 26, 2024
1 parent c1cf8d8 commit 3fc86a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/vt/vtgate/planbuilder/operators/SQL_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func (qb *queryBuilder) addPredicate(expr sqlparser.Expr) {
case *sqlparser.Delete:
addPred = stmt.AddWhere
case nil:
// this would happen if we are adding a predicate on a dual query.
// we use this when building recursive CTE queries
sel := &sqlparser.Select{}
addPred = sel.AddWhere
qb.stmt = sel
Expand Down

0 comments on commit 3fc86a4

Please sign in to comment.