Skip to content

Commit

Permalink
Fix Kotlin example code which does not compile
Browse files Browse the repository at this point in the history
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 spring-projectsgh-26016
  • Loading branch information
mindhaq authored and sdeleuze committed Nov 8, 2020
1 parent 11aa901 commit 9f78622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/asciidoc/data-access.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
----

Expand Down

0 comments on commit 9f78622

Please sign in to comment.