Hi,
I am using Hibernate 6.5.2 and I discovered a very strange behaviour:
- if I execute
session.createQuery("select ?1", Object[].class).setParameter(1, 1).getSingleResult()
, I get a Long returned - if I execute
session.createQuery("select 1", Object[].class).getSingleResult()
I get an Object returned with the result as the first element
Is this expected?