Skip to content

Commit

Permalink
feat: fix bug in insert planning
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Aug 31, 2023
1 parent 02e1a2b commit 81d66df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/planbuilder/operators/ast2op.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func createOperatorFromInsert(ctx *plancontext.PlanningContext, ins *sqlparser.I
Distinct: true,
SelectExprs: selExprs,
From: []sqlparser.TableExpr{
ins.Table,
sqlparser.NewAliasedTableExpr(fk.Table.GetTableName(), ""),
},
Where: &sqlparser.Where{
Type: sqlparser.WhereClause,
Expand Down

0 comments on commit 81d66df

Please sign in to comment.