Skip to content

Commit

Permalink
fix(codegen/golang): support name type
Browse files Browse the repository at this point in the history
  • Loading branch information
orisano committed Sep 8, 2023
1 parent b83f8da commit a6a8db1
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 a6a8db1

Please sign in to comment.