spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
764 stars 344 forks source link

Potential bug found after updating to Spring Boot 3.2.X #1774

Closed ivannavratil closed 5 months ago

ivannavratil commented 5 months ago

Hi, while updating from Spring Boot 3.1.11 to Spring Boot 3.2.5 we noticed one of our tests started failing. Looking through the changelog I haven't found anything about this behaviour change.

This is a simplified model and it seems like balance_account_sweep is not fetched after being saved.

image

I have created a minimal example here.

I have gone through the logs and it seems like the wrong parameter is set when the SQL statement to fetch balance account sweep is being run.

schauder commented 5 months ago

This seems to be a duplicate of #1692. Could you please confirm this by trying the latest snapshot, of 3.3.x or 3.2.x which both contain the fix?

ivannavratil commented 5 months ago

I have tried 3.3.0 (SNAPSHOT) version but the same issue still occurs. I have created a new branch in that repository with that version.

schauder commented 5 months ago

Bummer. I'll take a look.

schauder commented 5 months ago

Turns out the problem is fixed by #1775 See my fork of your reproducer https://github.com/schauder/issue-relational-1774, especially https://github.com/schauder/issue-relational-1774/commit/f485ad4bdca4f7686fa3d919d9fa02f748ddae1d

So this is a duplicate of #1684 (potentially confunded with other issues)

ivannavratil commented 5 months ago

Thanks for the quick help!