From b69a082bb1821c15bc057926d6f70fd11f57488e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 14 Jan 2024 01:52:52 +0100 Subject: [PATCH] v0.0.376 --- goextVersion.go | 4 ++-- sq/builder.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 8dda8fc..1adcfa5 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.375" +const GoextVersion = "0.0.376" -const GoextVersionTimestamp = "2024-01-14T01:50:48+0100" +const GoextVersionTimestamp = "2024-01-14T01:52:52+0100" diff --git a/sq/builder.go b/sq/builder.go index 99c1494..92e2a17 100644 --- a/sq/builder.go +++ b/sq/builder.go @@ -96,7 +96,7 @@ func BuildInsertStatement(q Queryable, tableName string, obj any) (string, PP, e if rsfield.Type.Kind() == reflect.Ptr && rvfield.IsNil() { fields = append(fields, columnName) - values = append(fields, "NULL") + values = append(values, "NULL") } else { @@ -106,7 +106,7 @@ func BuildInsertStatement(q Queryable, tableName string, obj any) (string, PP, e } fields = append(fields, columnName) - values = append(fields, ":"+params.Add(val)) + values = append(values, ":"+params.Add(val)) } }