Skip to content

Commit 79c58b7

Browse files
authored
fix(codegen/golang): support name type (#2715)
close #2714
1 parent 17bfe11 commit 79c58b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/codegen/golang/postgresql_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func postgresType(req *plugin.CodeGenRequest, col *plugin.Column) string {
256256
}
257257
return "sql.NullTime"
258258

259-
case "text", "pg_catalog.varchar", "pg_catalog.bpchar", "string", "citext":
259+
case "text", "pg_catalog.varchar", "pg_catalog.bpchar", "string", "citext", "name":
260260
if notNull {
261261
return "string"
262262
}

0 commit comments

Comments
 (0)