From c04f3f0228f2da394b22123e8ff0ca628e738e15 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jan 2023 03:07:28 +0000 Subject: [PATCH] Bump gorm.io/driver/sqlite from 1.4.3 to 1.4.4 Bumps [gorm.io/driver/sqlite](/~https://github.com/go-gorm/sqlite) from 1.4.3 to 1.4.4. - [Release notes](/~https://github.com/go-gorm/sqlite/releases) - [Commits](/~https://github.com/go-gorm/sqlite/compare/v1.4.3...v1.4.4) --- updated-dependencies: - dependency-name: gorm.io/driver/sqlite dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/gorm.io/driver/sqlite/ddlmod.go | 4 +++- vendor/modules.txt | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 64dbcb34ee..b0d7b8b5e1 100644 --- a/go.mod +++ b/go.mod @@ -51,7 +51,7 @@ require ( gopkg.in/AlecAivazis/survey.v1 v1.8.8 gorm.io/driver/mysql v1.4.4 gorm.io/driver/postgres v1.4.5 - gorm.io/driver/sqlite v1.4.3 + gorm.io/driver/sqlite v1.4.4 gorm.io/gorm v1.24.1-0.20221019064659-5dd2bb482755 gvisor.dev/gvisor v0.0.0-20220817001344-846276b3dbc5 modernc.org/sqlite v1.19.3 diff --git a/go.sum b/go.sum index 793b69208f..ec39f3488f 100644 --- a/go.sum +++ b/go.sum @@ -610,8 +610,8 @@ gorm.io/driver/mysql v1.4.4 h1:MX0K9Qvy0Na4o7qSC/YI7XxqUw5KDw01umqgID+svdQ= gorm.io/driver/mysql v1.4.4/go.mod h1:BCg8cKI+R0j/rZRQxeKis/forqRwRSYOR8OM3Wo6hOM= gorm.io/driver/postgres v1.4.5 h1:mTeXTTtHAgnS9PgmhN2YeUbazYpLhUI1doLnw42XUZc= gorm.io/driver/postgres v1.4.5/go.mod h1:GKNQYSJ14qvWkvPwXljMGehpKrhlDNsqYRr5HnYGncg= -gorm.io/driver/sqlite v1.4.3 h1:HBBcZSDnWi5BW3B3rwvVTc510KGkBkexlOg0QrmLUuU= -gorm.io/driver/sqlite v1.4.3/go.mod h1:0Aq3iPO+v9ZKbcdiz8gLWRw5VOPcBOPUQJFLq5e2ecI= +gorm.io/driver/sqlite v1.4.4 h1:gIufGoR0dQzjkyqDyYSCvsYR6fba1Gw5YKDqKeChxFc= +gorm.io/driver/sqlite v1.4.4/go.mod h1:0Aq3iPO+v9ZKbcdiz8gLWRw5VOPcBOPUQJFLq5e2ecI= gorm.io/gorm v1.23.8/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= gorm.io/gorm v1.24.0/go.mod h1:DVrVomtaYTbqs7gB/x2uVvqnXzv0nqjB396B8cG4dBA= gorm.io/gorm v1.24.1-0.20221019064659-5dd2bb482755 h1:7AdrbfcvKnzejfqP5g37fdSZOXH/JvaPIzBIHTOqXKk= diff --git a/vendor/gorm.io/driver/sqlite/ddlmod.go b/vendor/gorm.io/driver/sqlite/ddlmod.go index 0cc4ed62d7..87886d242a 100644 --- a/vendor/gorm.io/driver/sqlite/ddlmod.go +++ b/vendor/gorm.io/driver/sqlite/ddlmod.go @@ -134,7 +134,9 @@ func parseDDL(strs ...string) (*ddl, error) { columnType.PrimaryKeyValue = sql.NullBool{Bool: true, Valid: true} } if defaultMatches := defaultValueRegexp.FindStringSubmatch(matches[3]); len(defaultMatches) > 1 { - columnType.DefaultValueValue = sql.NullString{String: strings.Trim(defaultMatches[1], `"`), Valid: true} + if strings.ToLower(defaultMatches[1]) != "null" { + columnType.DefaultValueValue = sql.NullString{String: strings.Trim(defaultMatches[1], `"`), Valid: true} + } } // data type length diff --git a/vendor/modules.txt b/vendor/modules.txt index 72cd877ec9..bfef90c2b3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -653,7 +653,7 @@ gorm.io/driver/mysql # gorm.io/driver/postgres v1.4.5 ## explicit; go 1.14 gorm.io/driver/postgres -# gorm.io/driver/sqlite v1.4.3 +# gorm.io/driver/sqlite v1.4.4 ## explicit; go 1.14 gorm.io/driver/sqlite # gorm.io/gorm v1.24.1-0.20221019064659-5dd2bb482755