Merge pull request #31932 from janjouketjalsma

* pr/31932:
  Fix Kotlin example for simpler SELECT variant using IN

Closes gh-31932
This commit is contained in:
Stéphane Nicoll
2024-01-02 18:12:08 +01:00

View File

@@ -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))
----
======