fix: RPCs not embedding correctly when using overloaded functions for computed relationships

This commit is contained in:
Laurence Isla
2023-10-04 00:07:09 -03:00
committed by Steve Chavez
parent de97f646a4
commit 5c822b7ec4
7 changed files with 49 additions and 3 deletions
+15
View File
@@ -3456,3 +3456,18 @@ returns table(id int, val complex) as $$
union
select 3, row(0.3, 0.7)::complex as val;
$$ language sql;
create function computed_rel_overload(items) returns setof items2 as $$
select * from items2 limit 1
$$ language sql;
create function computed_rel_overload(items2) returns setof items2 as $$
select * from items2 limit 2
$$ language sql;
create function search2(id bigint) returns setof items2
language plpgsql
stable
as $$ begin
return query select items2.id from items2 where items2.id=search2.id;
end$$;