From a6a8db1adb4e38aa9449d74b59536688525710f4 Mon Sep 17 00:00:00 2001 From: Nao Yonashiro Date: Fri, 8 Sep 2023 13:56:23 +0900 Subject: [PATCH] fix(codegen/golang): support name type close #2714 --- internal/codegen/golang/postgresql_type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/codegen/golang/postgresql_type.go b/internal/codegen/golang/postgresql_type.go index 1936de1f38..b9444cebee 100644 --- a/internal/codegen/golang/postgresql_type.go +++ b/internal/codegen/golang/postgresql_type.go @@ -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" }