Skip to content

Commit c40d458

Browse files
committed
Fix documentated syntax for tableName in queries.
Closes #1999
1 parent deb7c86 commit c40d458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-r2dbc/src/test/java/org/springframework/data/r2dbc/documentation/PersonRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public interface PersonRepository extends ReactiveCrudRepository<Person, String>
3838
// end::spel[]
3939

4040
// tag::spel2[]
41-
@Query("SELECT * FROM #{tableName} WHERE lastname = :lastname")
41+
@Query("SELECT * FROM #{#tableName} WHERE lastname = :lastname")
4242
Flux<Person> findByQueryWithExpression(String lastname);
4343
// end::spel2[]
4444
}

0 commit comments

Comments
 (0)