Type inference in duration arithmetic is wrong
Description
relates to
Activity
Show:
Gavin King August 15, 2023 at 10:53 AM
Awesome, thanks 🙏
Christian Beikov August 15, 2023 at 10:47 AM
It’s related, but not a duplicate. I’ll take a look at https://hibernate.atlassian.net/browse/HHH-16102 next.
Gavin King August 15, 2023 at 10:05 AM
Isn’t this issue just a dupe of https://hibernate.atlassian.net/browse/HHH-16102?filter=21172 ?
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 isInteger
, which is not correct.