Skip to content

Commit 7e6c137

Browse files
authored
docs: specifies parameter ":one" without containing a RETURNING clause (#2173)
1 parent 700fc94 commit 7e6c137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/howto/named_parameters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ UPDATE author
7575
SET
7676
name = coalesce(sqlc.narg('name'), name),
7777
bio = coalesce(sqlc.narg('bio'), bio)
78-
WHERE id = sqlc.arg('id');
78+
WHERE id = sqlc.arg('id')
79+
RETURNING *;
7980
```
8081

8182
The following code is generated:

0 commit comments

Comments
 (0)