Skip to content

Commit 5496f81

Browse files
committed
Fix JSON tests
1 parent 8a77f92 commit 5496f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/codegen/golang/postgresql_type.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
165165
}
166166
return "sql.NullBool"
167167

168-
case "json":
168+
case "json", "pg_catalog.json":
169169
switch driver {
170170
case opts.SQLDriverPGXV5:
171171
return "[]byte"
@@ -181,7 +181,7 @@ func postgresType(req *plugin.GenerateRequest, options *opts.Options, col *plugi
181181
return "interface{}"
182182
}
183183

184-
case "jsonb":
184+
case "jsonb", "pg_catalog.jsonb":
185185
switch driver {
186186
case opts.SQLDriverPGXV5:
187187
return "[]byte"

0 commit comments

Comments
 (0)