File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ t.typname AS name,
4
4
n .nspname as schema,
5
5
pg_catalog .Format_type ( t .oid , NULL ) AS format,
6
6
pg_catalog .obj_description ( t .oid , ' pg_type' ) AS description,
7
- array (
7
+ array_to_json( array (
8
8
select e .enumlabel
9
9
FROM pg_catalog .pg_enum e
10
10
WHERE e .enumtypid = t .oid
11
11
ORDER BY e .oid
12
- ) AS enums
12
+ )) AS enums
13
13
FROM pg_catalog .pg_type t LEFT JOIN pg_catalog .pg_namespace n
14
14
ON n .oid = t .typnamespace
15
15
WHERE (
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ t.typname AS name,
4
4
n .nspname as schema,
5
5
pg_catalog .Format_type ( t .oid , NULL ) AS format,
6
6
pg_catalog .obj_description ( t .oid , ' pg_type' ) AS description,
7
- array (
7
+ array_to_json( array (
8
8
select e .enumlabel
9
9
FROM pg_catalog .pg_enum e
10
10
WHERE e .enumtypid = t .oid
11
11
ORDER BY e .oid
12
- ) AS enums
12
+ )) AS enums
13
13
FROM pg_catalog .pg_type t LEFT JOIN pg_catalog .pg_namespace n
14
14
ON n .oid = t .typnamespace
15
15
WHERE (
You can’t perform that action at this time.
0 commit comments