Skip to content

Commit

Permalink
fix(codegen/golang): support name type (#2715)
Browse files Browse the repository at this point in the history
close #2714
  • Loading branch information
orisano authored Sep 9, 2023
1 parent 17bfe11 commit 79c58b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/codegen/golang/postgresql_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func postgresType(req *plugin.CodeGenRequest, col *plugin.Column) string {
}
return "sql.NullTime"

case "text", "pg_catalog.varchar", "pg_catalog.bpchar", "string", "citext":
case "text", "pg_catalog.varchar", "pg_catalog.bpchar", "string", "citext", "name":
if notNull {
return "string"
}
Expand Down

0 comments on commit 79c58b7

Please sign in to comment.