Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fixed typo
  • Loading branch information
CDT authored and porsager committed Feb 17, 2024
1 parent a5cd811 commit 9b6fc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ const users = [
]

await sql`
update users set name = update_data.name, (age = update_data.age)::int
update users set name = update_data.name, age = (update_data.age)::int
from (values ${sql(users)}) as update_data (id, name, age)
where users.id = (update_data.id)::int
returning users.id, users.name, users.age
Expand All @@ -290,7 +290,7 @@ const users = await sql`

or
```js
const [{ a, b, c }] => await sql`
const [{ a, b, c }] = await sql`
select
*
from (values ${ sql(['a', 'b', 'c']) }) as x(a, b, c)
Expand Down

0 comments on commit 9b6fc89

Please sign in to comment.