Skip to content

Commit

Permalink
Merge pull request #2 from Flo4604/main
Browse files Browse the repository at this point in the history
fix: not using quotes on column names
  • Loading branch information
tiendc authored Dec 18, 2023
2 parents 2281003 + 6da61bf commit 23b51d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/boilv4/postgres/111_bulk_upsert.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func (o {{$alias.UpSingular}}Slice) UpsertAll(ctx context.Context, exec boil.Con

columns := "DEFAULT VALUES"
if len(insert) != 0 {
columns = fmt.Sprintf("(%s) VALUES %s",
strings.Join(insert, ", "),
columns = fmt.Sprintf("(\"%s\") VALUES %s",
strings.Join(insert, "\",\""),
strmangle.Placeholders(dialect.UseIndexPlaceholders, len(insert)*len(o), 1, len(insert)),
)
}
Expand Down

0 comments on commit 23b51d7

Please sign in to comment.