mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Use type safe JdbcClient query
Update `JdbcClientAutoConfigurationTests` to use a type safe query since Spring Framework now returns `Object` types when no type is specified (see Spring Framework issue 31403). See gh-37710
This commit is contained in:
parent
b3ddec7793
commit
4ab104f5af
@ -94,7 +94,7 @@ class JdbcClientAutoConfigurationTests {
|
||||
private final Long count;
|
||||
|
||||
JdbcClientDataSourceMigrationValidator(JdbcClient jdbcClient) {
|
||||
this.count = jdbcClient.sql("SELECT COUNT(*) from CITY").query().singleValue();
|
||||
this.count = jdbcClient.sql("SELECT COUNT(*) from CITY").query(Long.class).single();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user