Skip to content

Commit

Permalink
override match column nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
trevatk committed Dec 14, 2023
1 parent 871c667 commit bea22c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/codegen/golang/go_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func goInnerType(req *plugin.GenerateRequest, options *opts.Options, col *plugin
if oride.GoType.TypeName == "" {
continue
}
if oride.DbType != "" && oride.DbType == columnType && oride.Nullable != notNull && oride.Unsigned == col.Unsigned {
if oride.DbType != "" && oride.DbType == columnType && oride.Nullable == notNull && oride.Unsigned == col.Unsigned {
return oride.GoType.TypeName
}
}
Expand Down

0 comments on commit bea22c4

Please sign in to comment.