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.
This commit is contained in:
Mark Rotteveel 2017-02-07 16:48:10 +01:00
parent 457a181347
commit 3c26ae7302
1 changed files with 2 additions and 2 deletions

View File

@ -960,9 +960,9 @@ public abstract class CollectionBinder {
String clause = whereOnCollection.clause();
if ( StringHelper.isNotEmpty( clause ) ) {
if ( whereBuffer.length() > 0 ) {
whereBuffer.append( StringHelper.WHITESPACE );
whereBuffer.append( ' ' );
whereBuffer.append( Junction.Nature.AND.getOperator() );
whereBuffer.append( StringHelper.WHITESPACE );
whereBuffer.append( ' ' );
}
whereBuffer.append( clause );
}