Fix Kotlin example for simpler SELECT variant using IN

Removed unused code, fixed bind parameter name.

See gh-31932
This commit is contained in:
Jan Jouke Tjalsma 2024-01-02 16:32:20 +01:00 committed by Stéphane Nicoll
parent 6eed2b0aee
commit b692c0ed03
1 changed files with 1 additions and 5 deletions

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