Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: fix #22882 RPC sql example (#22883)

Simon Ha119b008869a4
diff --git a/apps/docs/content/guides/database/full-text-search.mdx b/apps/docs/content/guides/database/full-text-search.mdx
index f84c5b2fe59..381b75370b3 100644
--- a/apps/docs/content/guides/database/full-text-search.mdx
+++ b/apps/docs/content/guides/database/full-text-search.mdx
@@ -594,7 +594,7 @@ After creating this function, you can invoke it from your application using the
```sql
create or replace function search_books_by_title_prefix(prefix text)
-return setof books AS $$
+returns setof books AS $$
begin
return query
select * from books where to_tsvector('english', title) @@ to_tsquery(prefix || ':*');