Fix Kotlin example code which does not compile

This kotlin code does not compile:
Overload resolution ambiguity. All these functions match.
default <R> RowsFetchSpec<R> map(Function<Row, R> mappingFunction)
<R> RowsFetchSpec<R> map(BiFunction<Row, RowMetadata, R> mappingFunction);

Closes gh-26016
This commit is contained in:
Rüdiger Schulz
2020-11-02 18:15:18 +01:00
committed by Sébastien Deleuze
parent 411539ffef
commit 2214ff8ce0

View File

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