From efe5bdabd872bad6031237135b067df1e56b2fea Mon Sep 17 00:00:00 2001 From: Beck Xu Date: Tue, 3 Oct 2023 19:05:20 +0800 Subject: [PATCH] Update conn_http_batch.go (#1103) allow for escaped columns --- conn_http_batch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn_http_batch.go b/conn_http_batch.go index 96eb71162d..d64faeb374 100644 --- a/conn_http_batch.go +++ b/conn_http_batch.go @@ -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"