Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus authored Nov 4, 2024
1 parent f76d1b9 commit 8834622
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 @@ -566,8 +566,8 @@ val ids = listOf(1, 2, 3)
val people = Sql("SELECT * FROM people WHERE id IN ${Params.list(ids)}").queryOf<Person>().runOn(ctx)
```

> Note that since `column IN ()` is invalid SQL syntax, invoking `Params.list(emptyList)`
> will result in `column IN (null)` being created.
> Note that since `column IN ()` is invalid SQL syntax, therefore invoking `Params.list(emptyList)`
> will result in `column IN (null)` being synthesized instead.
> ```kotlin
> val emptyList = listOf<Int>()
> val peopleQuery = Sql("SELECT * FROM people WHERE id IN ${Params.list(emptyList)}").queryOf<Person>()
Expand Down

0 comments on commit 8834622

Please sign in to comment.