Affects: Spring Framework 5.3.x


Spring R2DBC 5.3.x has compatibility issues with DefaultDatabaseClient class for the method sumRowsUpdated as it is trying to cast Long to Integer for H2 database.

Comment From: sbrannen

@siddardha-1407, it sounds like you are attempting to use incompatible versions of H2 and R2DBC.

For Spring Framework 5.3.x, we have the following dependency management in place.

https://github.com/spring-projects/spring-framework/blob/9868e888a59deef04cf2019de1a636d136d99493/build.gradle#L33

https://github.com/spring-projects/spring-framework/blob/9868e888a59deef04cf2019de1a636d136d99493/spring-r2dbc/spring-r2dbc.gradle#L20-L22

Are you attempting to use H2 2.x with Spring Framework 5.3.x?

Please note that we upgraded to R2DBC 1.0 and H2 2.1.x in Spring Framework 6.0.

  • see also #28059

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.