Browse Source

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
pull/26050/head
Rüdiger Schulz 4 years ago committed by Sébastien Deleuze
parent
commit
2214ff8ce0
  1. 2
      src/docs/asciidoc/data-access.adoc

2
src/docs/asciidoc/data-access.adoc

@ -6805,7 +6805,7 @@ The following example extracts the `id` column and emits its value: @@ -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()
----

Loading…
Cancel
Save