fix: empty row on handler function

Closes https://github.com/PostgREST/postgrest/issues/3126
This commit is contained in:
steve-chavez
2023-12-20 16:33:34 -05:00
committed by Laurence Isla
parent ec0f99c686
commit cd62e39cd1
4 changed files with 15 additions and 1 deletions
+5
View File
@@ -3517,6 +3517,11 @@ returns setof test.lines as $$
select * from lines;
$$ language sql;
create or replace function test.get_line (id int)
returns "application/vnd.twkb" as $$
select extensions.st_astwkb(geom)::"application/vnd.twkb" from lines where id = get_line.id;
$$ language sql;
create or replace function test.get_shop_bles ()
returns setof test.shop_bles as $$
select * from shop_bles;