mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00: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:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user