Skip to content

Commit d779dbc

Browse files
committed
fix issue with permission denied for schema public
1 parent 508bf1f commit d779dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NpgsqlRest/RoutineSourceQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ internal class RoutineSourceQuery
66
with _types as (
77
88
select
9-
(n.nspname::text || '.' || t.typname::text)::regtype::text as name,
9+
case when n.nspname = 'public' then quote_ident(t.typname) else quote_ident(n.nspname) || '.' || quote_ident(t.typname) end as name,
1010
a.attnum as att_pos,
1111
quote_ident(a.attname) as att_name,
1212
pg_catalog.format_type(a.atttypid, a.atttypmod) as att_type

0 commit comments

Comments
 (0)