From 089edbe6faebfea0bfba0b2fc2b7bf11542e2a1c Mon Sep 17 00:00:00 2001 From: samrose Date: Tue, 24 Mar 2026 12:41:05 -0400 Subject: [PATCH] docs: select ret null, return ret hello world (#42073) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Select returns null return returns hello world (so this example has always been broken) ## Summary by CodeRabbit * **Documentation** * Updated the database functions guide with refined code examples. Documentation now demonstrates improved Postgres function syntax and streamlined return mechanisms, providing developers with clearer guidance for implementing database functions following current best practices. ✏️ Tip: You can customize this high-level summary in your review settings. --- apps/docs/content/guides/database/functions.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/content/guides/database/functions.mdx b/apps/docs/content/guides/database/functions.mdx index 0f0c0517489..abea38ae77d 100644 --- a/apps/docs/content/guides/database/functions.mdx +++ b/apps/docs/content/guides/database/functions.mdx @@ -416,7 +416,7 @@ language plpgsql security definer set search_path = '' as $$ begin - select 'hello world'; + return 'hello world'; end; $$; ```