From 2214ff8ce04ae298c01e5f6d3b7be45d7ebb209c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Schulz?= Date: Mon, 2 Nov 2020 18:15:18 +0100 Subject: [PATCH] Fix Kotlin example code which does not compile This kotlin code does not compile: Overload resolution ambiguity. All these functions match. default RowsFetchSpec map(Function mappingFunction) RowsFetchSpec map(BiFunction mappingFunction); Closes gh-26016 --- src/docs/asciidoc/data-access.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/asciidoc/data-access.adoc b/src/docs/asciidoc/data-access.adoc index 0164dc67bd..ed552dc63d 100644 --- a/src/docs/asciidoc/data-access.adoc +++ b/src/docs/asciidoc/data-access.adoc @@ -6805,7 +6805,7 @@ The following example extracts the `id` column and emits its value: .Kotlin ---- val names = client.sql("SELECT name FROM person") - .map{ it.get("id", String.class) } + .map{ row: Row -> row.get("id", String.class) } .flow() ----