Skip to content

Commit

Permalink
Update conn_http_batch.go (#1103)
Browse files Browse the repository at this point in the history
allow for escaped columns
  • Loading branch information
beck917 authored Oct 3, 2023
1 parent 93692b6 commit efe5bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn_http_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (h *httpConnect) prepareBatch(ctx context.Context, query string, opts drive
colMatch := strings.TrimSuffix(strings.TrimPrefix(matches[2], "("), ")")
rColumns = strings.Split(colMatch, ",")
for i := range rColumns {
rColumns[i] = strings.TrimSpace(rColumns[i])
rColumns[i] = strings.Trim(strings.TrimSpace(rColumns[i]), "`")
}
}
query = "INSERT INTO " + tableName + " FORMAT Native"
Expand Down

0 comments on commit efe5bda

Please sign in to comment.