From 6da61bfa2cca9aa2bb759221f77cffb6912ac046 Mon Sep 17 00:00:00 2001 From: Flo <53355483+Flo4604@users.noreply.github.com> Date: Sat, 4 Nov 2023 14:19:18 +0100 Subject: [PATCH] fix: not using quotes on column names --- templates/boilv4/postgres/111_bulk_upsert.go.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/boilv4/postgres/111_bulk_upsert.go.tpl b/templates/boilv4/postgres/111_bulk_upsert.go.tpl index daa077c..059fd29 100644 --- a/templates/boilv4/postgres/111_bulk_upsert.go.tpl +++ b/templates/boilv4/postgres/111_bulk_upsert.go.tpl @@ -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)), ) }