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:
parent
6b6cee1b31
commit
0f96757d1a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue