fix: Updating query for types to the target namespace
This commit is contained in:
parent
c9e627d333
commit
b22ab17b38
1 changed files with 8 additions and 5 deletions
|
|
@ -50,7 +50,10 @@ FROM information_schema.columns,
|
|||
LATERAL (select (case data_type
|
||||
when 'ARRAY' then 'array'
|
||||
when 'USER-DEFINED' then
|
||||
case (select typtype from pg_type where typname = columns.udt_name)
|
||||
case (select t.typtype
|
||||
from pg_type as t
|
||||
join pg_namespace as p on p.oid = t.typnamespace
|
||||
where t.typname = columns.udt_name and p.nspname = $1)
|
||||
when 'e' then 'enum'
|
||||
else 'user-defined'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue