@@ -216,7 +216,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
216216 }
217217 return "sql.NullTime"
218218
219- case "pg_catalog.time" :
219+ case "pg_catalog.time" , "time" , "time without time zone" :
220220 if driver == opts .SQLDriverPGXV5 {
221221 return "pgtype.Time"
222222 }
@@ -228,7 +228,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
228228 }
229229 return "sql.NullTime"
230230
231- case "pg_catalog.timetz" :
231+ case "pg_catalog.timetz" , "timetz" , "time with time zone" :
232232 if notNull {
233233 return "time.Time"
234234 }
@@ -237,7 +237,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
237237 }
238238 return "sql.NullTime"
239239
240- case "pg_catalog.timestamp" , "timestamp" :
240+ case "pg_catalog.timestamp" , "timestamp" , "timestamp without time zone" :
241241 if driver == opts .SQLDriverPGXV5 {
242242 return "pgtype.Timestamp"
243243 }
@@ -249,7 +249,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
249249 }
250250 return "sql.NullTime"
251251
252- case "pg_catalog.timestamptz" , "timestamptz" :
252+ case "pg_catalog.timestamptz" , "timestamptz" , "timestamp with time zone" :
253253 if driver == opts .SQLDriverPGXV5 {
254254 return "pgtype.Timestamptz"
255255 }
@@ -261,7 +261,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
261261 }
262262 return "sql.NullTime"
263263
264- case "text" , "pg_catalog.varchar" , "pg_catalog.bpchar" , "string" , "citext" , "name" :
264+ case "text" , "pg_catalog.varchar" , "varchar" , "character varying" , " pg_catalog.bpchar" , "bpchar" , "character " , "string" , "citext" , "name" :
265265 if notNull {
266266 return "string"
267267 }
@@ -470,7 +470,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
470470 }
471471 return "any"
472472
473- case "bit" , "varbit" , "pg_catalog.bit" , "pg_catalog.varbit" :
473+ case "bit" , "varbit" , "bit varying" , " pg_catalog.bit" , "pg_catalog.varbit" :
474474 if driver == opts .SQLDriverPGXV5 {
475475 return "pgtype.Bits"
476476 }
0 commit comments