Guys, in the new query parser, some SQL functions like upper() and
max() do not work in the select clause, since they expect to be
passed the type of the expression they are applied to.

Currently MethodNode.resolve() passes null:

SQLFunction function = getSessionFactoryHelper().findSQLFunction( methodName );
if ( function != null ) {
Type functionReturnType = getSessionFactoryHelper().findFunctionReturnType( methodName, null );
setDataType( functionReturnType );
}


It's pretty important that we fix this ASAP. I tried, but gave up,
since I'm not sure about the rules on when resolve() can safely be
called...

Thanks,
Gavin

--
Gavin King
+61 410 534 454
+1 404 822 8349
callto://gavinking

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to