diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/SqlGenerator.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/SqlGenerator.java index 6f6a0ea208..e749242cf8 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/SqlGenerator.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/SqlGenerator.java @@ -104,7 +104,8 @@ public class SqlGenerator extends SqlGeneratorBase implements ErrorReporter { protected void out(String s) { if ( exprs.size() > 1 ) { super.out( s ); - } else { + } + else { writer.clause( s ); } }