HHH-18117 Proposed solution
This commit is contained in:
parent
5cf497f3c3
commit
0c0d4d5161
|
@ -5470,6 +5470,10 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
|
|||
else if ( valueConverter.getRelationalJavaType().isInstance( value ) ) {
|
||||
sqlLiteralValue = value;
|
||||
}
|
||||
else if ( Character.class.isAssignableFrom( valueConverter.getRelationalJavaType().getJavaTypeClass() )
|
||||
&& value instanceof CharSequence && ( (CharSequence) value ).length() == 1 ) {
|
||||
sqlLiteralValue = ( (CharSequence) value ).charAt( 0 );
|
||||
}
|
||||
// In HQL, number literals might not match the relational java type exactly,
|
||||
// so we allow coercion between the number types
|
||||
else if ( Number.class.isAssignableFrom( valueConverter.getRelationalJavaType().getJavaTypeClass() )
|
||||
|
|
Loading…
Reference in New Issue