Skip to content

Commit

Permalink
Merge pull request #31932 from janjouketjalsma
Browse files Browse the repository at this point in the history
* pr/31932:
  Fix Kotlin example for simpler SELECT variant using IN

Closes gh-31932
  • Loading branch information
snicoll committed Jan 2, 2024
2 parents 6eed2b0 + b692c0e commit efb97cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions framework-docs/modules/ROOT/pages/data-access/r2dbc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,8 @@ Kotlin::
+
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
----
val tuples: MutableList<Array<Any>> = ArrayList()
tuples.add(arrayOf("John", 35))
tuples.add(arrayOf("Ann", 50))
client.sql("SELECT id, name, state FROM table WHERE age IN (:ages)")
.bind("tuples", arrayOf(35, 50))
.bind("ages", arrayOf(35, 50))
----
======

Expand Down

0 comments on commit efb97cc

Please sign in to comment.