Skip to content

Commit 567468d

Browse files
committed
HHH-19908 make 'this' case-insensitive
1 parent bf4d46e commit 567468d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/hql/internal/SqmPathRegistryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ else if ( parentRegistered instanceof Join<?, ?> join ) {
240240
}
241241

242242
final boolean onlyOneFrom = sqmFromByPath.size() == 1;
243-
if ( onlyOneFrom && localAlias.equals( "this" ) ) {
243+
if ( onlyOneFrom && localAlias.equalsIgnoreCase( "this" ) ) {
244244
final SqmRoot<?> root = (SqmRoot<?>) sqmFromByPath.entrySet().iterator().next().getValue();
245245
if ( root.getAlias() == null ) {
246246
//noinspection unchecked

0 commit comments

Comments
 (0)