Type Checking in arithmetic expression giving wrong error
Issue
- Type-checking in an temporal arithmetic expression gives a wrong error in Hibearnate 6.2.6.
- We wrongly infer the type of the inference source for parts of duration arithmetic which results in wrong parameter type expectations. For example, the query where (:date - e.date) by day > 10 infers that the parameter type is Integer, which is not correct.
Environment
- Hibernate 6.2.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.