Fixes syntax error in JdbcClient examples

See gh-32236
This commit is contained in:
Spencer Gibb 2024-02-09 22:27:14 -05:00 committed by Stéphane Nicoll
parent e72b523995
commit 169b9abeef
1 changed files with 2 additions and 2 deletions

View File

@ -759,7 +759,7 @@ With a required single object result:
[source,java,indent=0,subs="verbatim,quotes"]
----
Actor actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?",
Actor actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?")
.param(1212L);
.query(Actor.class)
.single();
@ -769,7 +769,7 @@ With a `java.util.Optional` result:
[source,java,indent=0,subs="verbatim,quotes"]
----
Optional<Actor> actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?",
Optional<Actor> actor = this.jdbcClient.sql("select first_name, last_name from t_actor where id = ?")
.param(1212L);
.query(Actor.class)
.optional();