diff --git a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java index 7b0c7ddd59..31dab958d0 100644 --- a/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java +++ b/spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java @@ -45,8 +45,8 @@ import org.springframework.util.Assert; * * DatabaseClient client = DatabaseClient.create(factory); * Mono<Actor> actor = client.sql("select first_name, last_name from t_actor") - * .map(row -> new Actor(row.get("first_name, String.class"), - * row.get("last_name, String.class"))) + * .map(row -> new Actor(row.get("first_name", String.class), + * row.get("last_name", String.class))) * .first(); * *