HHH-4774 - Do not handle literals using parameters in JPA criteria select

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18486 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2010-01-09 18:01:20 +00:00
parent 6b6cee1b31
commit 0f96757d1a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class LiteralExpression<T> extends ExpressionImpl<T> implements Serializa
// some drivers/servers do not like parameters in the select clause
final ValueHandlerFactory.ValueHandler handler =
ValueHandlerFactory.determineAppropriateHandler( literal.getClass() );
if ( ! ValueHandlerFactory.isCharacter( literal ) ) {
if ( ValueHandlerFactory.isCharacter( literal ) ) {
return '\'' + handler.render( literal ) + '\'';
}
else {