We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd456b commit 6aa18f9Copy full SHA for 6aa18f9
sql/plan/delete.go
@@ -72,7 +72,10 @@ func (p *DeleteFrom) WithExplicitTargets(targets []sql.Node) *DeleteFrom {
72
73
// GetDeleteTargets returns the sql.Nodes representing the tables from which rows should be deleted.
74
func (p *DeleteFrom) GetDeleteTargets() []sql.Node {
75
- return p.targets
+ if len(p.targets) > 0 {
76
+ return p.targets
77
+ }
78
+ return []sql.Node{p.Child}
79
}
80
81
// Schema implements the sql.Node interface.
0 commit comments