Skip to content

Commit 20ecc0c

Browse files
committed
bug fix: group_concat use in trigger
1 parent 3593cfa commit 20ecc0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/rowexec/dml_iters.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ type triggerIter struct {
190190
func prependRowInPlanForTriggerExecution(row sql.Row) func(c transform.Context) (sql.Node, transform.TreeIdentity, error) {
191191
return func(c transform.Context) (sql.Node, transform.TreeIdentity, error) {
192192
switch n := c.Node.(type) {
193-
case *plan.Project:
193+
case sql.Projector:
194194
// Only prepend rows for projects that aren't the input to inserts and other triggers
195195
switch c.Parent.(type) {
196196
case *plan.InsertInto, *plan.Into, *plan.TriggerExecutor, *plan.DeclareCursor, *plan.Project:
197-
return n, transform.SameTree, nil
197+
return c.Node, transform.SameTree, nil
198198
default:
199-
return plan.NewPrependNode(n, row), transform.NewTree, nil
199+
return plan.NewPrependNode(c.Node, row), transform.NewTree, nil
200200
}
201201
case *plan.ResolvedTable, *plan.IndexedTableAccess:
202202
return plan.NewPrependNode(n, row), transform.NewTree, nil

0 commit comments

Comments
 (0)