Hi,
Could you please provide me with a test case that throws the expected NPE?
So far I haven't managed to reproduce the issue : I've attached a test case with a simple query containing a lower(...) which seems to work as expected (tested against *hibernate/master* and *hibernate/4.2*).
In {{QueryImpl#extractParameterInfo, QueryImpl#mightNeedRedefinition}} is only called for named parameters. Ordinal parameters should work correctly. As for the named parameters, in the case of my simple query, the following line returns null : {code} Class javaType = namedParameterTypeRedefinition.get( name ); {code} As a result, the following next *if* is not executed and no exceptions are raised.
Thank you
|