HHH-3510 : bad rollback
git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15504 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
a6f9da8688
commit
9ceb107ee2
|
@ -129,18 +129,6 @@ public class IdentNode extends FromReferenceNode implements SelectExpression {
|
|||
// resolve this...
|
||||
return;
|
||||
}
|
||||
else if ( result == UNKNOWN ) {
|
||||
final SQLFunction sqlFunction = getSessionFactoryHelper().findSQLFunction( getText() );
|
||||
if ( sqlFunction != null ) {
|
||||
String text = sqlFunction.render( Collections.EMPTY_LIST, getSessionFactoryHelper().getFactory() );
|
||||
if ( text.endsWith( "()" ) ) {
|
||||
text = text.substring( 0, text.length() - 2 );
|
||||
}
|
||||
setText( text );
|
||||
setDataType( sqlFunction.getReturnType( null, getSessionFactoryHelper().getFactory() ) );
|
||||
setResolved();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if we are still not resolved, we might represent a constant.
|
||||
|
|
Loading…
Reference in New Issue