Skip to content

Commit b4b3c2e

Browse files
quaffsnicoll
authored andcommitted
Fix typo
See gh-27699
1 parent dfd5374 commit b4b3c2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/docs/asciidoc/data-access.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6788,20 +6788,20 @@ You can take control over result mapping by supplying a `Function<Row, T>` that
67886788
called for each `Row` so it can can return arbitrary values (singular values,
67896789
collections and maps, and objects).
67906790

6791-
The following example extracts the `id` column and emits its value:
6791+
The following example extracts the `name` column and emits its value:
67926792

67936793
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
67946794
.Java
67956795
----
67966796
Flux<String> names = client.sql("SELECT name FROM person")
6797-
.map(row -> row.get("id", String.class))
6797+
.map(row -> row.get("name", String.class))
67986798
.all();
67996799
----
68006800
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
68016801
.Kotlin
68026802
----
68036803
val names = client.sql("SELECT name FROM person")
6804-
.map{ row: Row -> row.get("id", String.class) }
6804+
.map{ row: Row -> row.get("name", String.class) }
68056805
.flow()
68066806
----
68076807

0 commit comments

Comments
 (0)