From 95ee9e2144ff97b75638822590d24497205f0da7 Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Sun, 2 May 2021 19:37:25 +0300 Subject: [PATCH] fix insert query Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- go/sql/builder.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/sql/builder.go b/go/sql/builder.go index 4b970e9..4618ef1 100644 --- a/go/sql/builder.go +++ b/go/sql/builder.go @@ -38,6 +38,8 @@ func buildColumnsPreparedValues(columns *ColumnList) []string { var token string if column.timezoneConversion != nil { token = fmt.Sprintf("convert_tz(?, '%s', '%s')", column.timezoneConversion.ToTimezone, "+00:00") + } else if column.enumToTextConversion { + token = "concat('', ?)" } else if column.Type == JSONColumnType { token = "convert(? using utf8mb4)" } else {