Closed Sbolder closed 2 years ago
Thanks for getting in touch, but it feels like this is a question that would be better suited to StackOverflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.
@bclozel I think this is a bug. the same code, in version 2.5.8 work done, and after update the query failed. So i have checked the syntax of query, and is the same, but with version 2.6.3 of spring boot return me a syntax error.
in Projects release note, i have not found any mention of this type.
No problem for me, i have solved with rollback spring-boot version to 2.5.9, and now all work, with change nothing in my code. So i think the bug are present in version 2.6.3, i have moved the answer in : https://stackoverflow.com/questions/71159804/after-update-to-spring-boot-2-6-3-from-2-5-x-hibernate-does-not-work-in-some-que
have a good day.
Thank you. Davide
@Sbolder As you have already observed, Spring Boot 2.6.x upgrades to Hibernate 5.6.x. The change in behaviour that you are seeing is almost certainly due to a change in Hibernate and that's out of Spring Boot's control. Another possible cause could be the version of the SQL Server JDBC driver. Spring Boot 2.6.x upgrades to 9.4.x (from 9.2.x in Boot 2.5).
i have update spring boot from 2.5.x to 2.6.3 and now the query like:
@Query("select count(s.subjectId) from PreCheckEnquiredSubjectEntity s where s.key.requestId = :requestId and s.errors is not empty") long countSubjectEnquiredWithBusinessError(@Param("requestId") String requestId);
return me an error:
in the update hibernate version was changed from 5.4.x to 5.6.3.
To complete information for debug attach the entity declaration:
someone could help me to solve ? in previous spring boot version the query work do good.
thank you