Type Checking in arithmetic expression giving wrong error

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content