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
pull/37813/head
Phillip Webb 1 year ago
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…
Cancel
Save