HHH-5097 - Bug in ParameterizedFunctionExpression with two or more parameters: IllegalArgumentException

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20016 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2010-07-22 20:40:12 +00:00
parent fff88d2182
commit f0bda99d68
1 changed files with 3 additions and 1 deletions

View File

@ -98,8 +98,10 @@ public class ParameterizedFunctionExpression<X>
}
protected void renderArguments(StringBuilder buffer, CriteriaQueryCompiler.RenderingContext renderingContext) {
String sep = "";
for ( Expression argument : argumentExpressions ) {
buffer.append( ( (Renderable) argument ).render( renderingContext ) );
buffer.append( sep ).append( ( (Renderable) argument ).render( renderingContext ) );
sep = ", ";
}
}
}