Skip to content

Commit

Permalink
Merge pull request #1322 from Flo4604/master
Browse files Browse the repository at this point in the history
fix: not using quotes on column names
  • Loading branch information
stephenafamo authored Jan 2, 2024
2 parents 74a8ec7 + 4cd18bd commit d684b80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func buildUpsertQueryPostgres(dia drivers.Dialect, tableName string, updateOnCon

columns := "DEFAULT VALUES"
if len(whitelist) != 0 {
columns = fmt.Sprintf("(%s) VALUES (%s)",
strings.Join(whitelist, ", "),
columns = fmt.Sprintf("(\"%s\") VALUES (%s)",
strings.Join(whitelist, "\",\""),
strmangle.Placeholders(dia.UseIndexPlaceholders, len(whitelist), 1, 1))
}

Expand Down

0 comments on commit d684b80

Please sign in to comment.