We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
size
1 parent 26ab3c5 commit 8c6f802Copy full SHA for 8c6f802
hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/CollectionSizeNode.java
@@ -74,7 +74,7 @@ public String toSqlExpression() {
74
final String sizeColumn = sizeColumns[0];
75
76
final StringBuilder buffer = new StringBuilder( "(select " ).append( sizeColumn );
77
- buffer.append( " from " ).append( collectionDescriptor.getTableName() ).append( " as " ).append( collectionTableAlias );
+ buffer.append( " from " ).append( collectionDescriptor.getTableName() ).append( " " ).append( collectionTableAlias );
78
buffer.append( " where " );
79
80
boolean firstPass = true;
0 commit comments