Merge pull request #195 from masterkidan/master
fix: Updating query for types to the target namespace
This commit is contained in:
commit
c5e3d1ee75
1 changed files with 8 additions and 5 deletions
|
|
@ -50,7 +50,10 @@ FROM information_schema.columns,
|
||||||
LATERAL (select (case data_type
|
LATERAL (select (case data_type
|
||||||
when 'ARRAY' then 'array'
|
when 'ARRAY' then 'array'
|
||||||
when 'USER-DEFINED' then
|
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'
|
when 'e' then 'enum'
|
||||||
else 'user-defined'
|
else 'user-defined'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue