mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
fix: change postgis function to returns table
This commit is contained in:
1 parent
985ebfb3f8
commit
d05cb278c9
1 file changed
+1
-1
@@ -230,7 +230,7 @@ When you are working on a map-based application where the user scrolls through y
|
||||
|
||||
```sql
|
||||
create or replace function restaurants_in_view(min_lat float, min_long float, max_lat float, max_long float)
|
||||
returns setof record
|
||||
returns table (id public.restaurants%TYPE, name public.restaurants%TYPE, location text, dist_meters float)
|
||||
language sql
|
||||
as $$
|
||||
select id, name, st_astext(location) as location
|
||||
|
||||
Reference in new issue
Block a user