From 60bf78a24a3fb23699602358f7894b0ced0eb7e0 Mon Sep 17 00:00:00 2001 From: Tomoya Yoshida Date: Wed, 29 Mar 2023 18:29:10 +0900 Subject: [PATCH] fix: `specifies parameter ":one" without containing a RETURNING clause` --- docs/howto/named_parameters.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/howto/named_parameters.md b/docs/howto/named_parameters.md index fb7c842699..c4643bd8e3 100644 --- a/docs/howto/named_parameters.md +++ b/docs/howto/named_parameters.md @@ -75,7 +75,8 @@ UPDATE author SET name = coalesce(sqlc.narg('name'), name), bio = coalesce(sqlc.narg('bio'), bio) -WHERE id = sqlc.arg('id'); +WHERE id = sqlc.arg('id') +RETURNING *; ``` The following code is generated: