From 12fbfa3da825524f84e93474cec6fb1313ec5342 Mon Sep 17 00:00:00 2001 From: Jan Jouke Tjalsma Date: Tue, 2 Jan 2024 16:32:20 +0100 Subject: [PATCH] Fix Kotlin example for simpler SELECT variant using IN Removed unused code, fixed bind parameter name. --- framework-docs/modules/ROOT/pages/data-access/r2dbc.adoc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/data-access/r2dbc.adoc b/framework-docs/modules/ROOT/pages/data-access/r2dbc.adoc index e75c0aac80f6..672f396ef0f9 100644 --- a/framework-docs/modules/ROOT/pages/data-access/r2dbc.adoc +++ b/framework-docs/modules/ROOT/pages/data-access/r2dbc.adoc @@ -440,12 +440,8 @@ Kotlin:: + [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] ---- - val tuples: MutableList> = 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)) ---- ======