File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
hibernate-core/src/main/java/org/hibernate/query/sqm/sql Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5608,6 +5608,10 @@ else if ( inferableExpressible instanceof BasicValuedMapping ) {
56085608 else if ( valueConverter .getRelationalJavaType ().isInstance ( value ) ) {
56095609 sqlLiteralValue = value ;
56105610 }
5611+ else if ( Character .class .isAssignableFrom ( valueConverter .getRelationalJavaType ().getJavaTypeClass () )
5612+ && value instanceof CharSequence && ( (CharSequence ) value ).length () == 1 ) {
5613+ sqlLiteralValue = ( (CharSequence ) value ).charAt ( 0 );
5614+ }
56115615 // In HQL, number literals might not match the relational java type exactly,
56125616 // so we allow coercion between the number types
56135617 else if ( Number .class .isAssignableFrom ( valueConverter .getRelationalJavaType ().getJavaTypeClass () )
You can’t perform that action at this time.
0 commit comments