Impossible to call a stored procedure using @Procedure
annotation after migrating to Spring Boot 3
#3225
Labels
for: external-project
For an external project and not something we can fix
Hi,
Not sure where the best place is for this regression, because it might also be a hibernate ORM issue, but lets get started.
After migrating our project from Spring Boot 2.7 to 3.0 and from Hibernate 5.6 to 6.0 (minor minors not included) we noticed that our Spring Data JPA repositories failed to call stored procedures against our Informix database (we are migrating, but takes time). We noticed that Hibernate has dropped general support for Informix and there is now a community support library we have to import to provide the dialect.
So in the past, this piece of code would have worked:
This code now generates a SQL exception when called against the database:
It is not as if we cannot call stored procedures any more, to make this code work we have it now as:
I don't know what happens behind the scenes. Is it that the repository is trying to prepare it as a statement instead of just calling the procedure? This is the stack traced I capture on the thrown SQL exception:
The text was updated successfully, but these errors were encountered: