Skip to content

Commit

Permalink
Fix mysql alias in insert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmolby authored and stephenafamo committed Jan 15, 2024
1 parent 240deeb commit e51f880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialect/mysql/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (t *Table[T, Tslice, Tset]) InsertMany(ctx context.Context, exec bob.Execut
}

q := Insert(
im.Into(t.NameAs(ctx), internal.FilterNonZero(t.setMapping.NonGenerated)...),
im.Into(t.Name(ctx), internal.FilterNonZero(t.setMapping.NonGenerated)...),
)

// To prevent unnecessary work, we will do this before we add the rows
Expand Down

0 comments on commit e51f880

Please sign in to comment.