Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
match on null or not null
  • Loading branch information
emanuelturis committed Mar 22, 2024
commit e97452e6949f14d2a8e673257b1b456522df9c15
2 changes: 1 addition & 1 deletion internal/codegen/golang/go_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func addExtraGoStructTags(tags map[string]string, req *plugin.GenerateRequest, o
if oride.GoType.StructTags == nil {
continue
}
dbTypeMatches := col.Type.Name == oride.DbType
dbTypeMatches := col.Type.Name == oride.DbType && col.NotNull == oride.Nullable
if !dbTypeMatches && !override.Matches(col.Table, req.Catalog.DefaultSchema) {
// Different table.
continue
Expand Down