Skip to content

Commit 10cfc28

Browse files
committed
fix(functions): coalesce args to empty array
1 parent a61465c commit 10cfc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/sql/functions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ select
3434
when l.lanname = 'internal' then f.prosrc
3535
else pg_get_functiondef(f.oid)
3636
end as complete_statement,
37-
f_args.args as args,
37+
coalesce(f_args.args, '[]') as args,
3838
pg_get_function_arguments(f.oid) as argument_types,
3939
pg_get_function_identity_arguments(f.oid) as identity_argument_types,
4040
t.typname as return_type,

0 commit comments

Comments
 (0)