Skip to content

Commit 3c26ae7

Browse files
committed
HHH-11467 Replace incorrect use of StringHelper.WHITESPACE with single space.
This prevents an issue with Firebird where formfeed (\f or 0x0c) is not considered valid whitespace in a query.
1 parent 457a181 commit 3c26ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,9 +960,9 @@ private void bindFilters(boolean hasAssociationTable) {
960960
String clause = whereOnCollection.clause();
961961
if ( StringHelper.isNotEmpty( clause ) ) {
962962
if ( whereBuffer.length() > 0 ) {
963-
whereBuffer.append( StringHelper.WHITESPACE );
963+
whereBuffer.append( ' ' );
964964
whereBuffer.append( Junction.Nature.AND.getOperator() );
965-
whereBuffer.append( StringHelper.WHITESPACE );
965+
whereBuffer.append( ' ' );
966966
}
967967
whereBuffer.append( clause );
968968
}

0 commit comments

Comments
 (0)