Skip to content

Commit 8c6f802

Browse files
committed
HHH-13619 - Support for JPA's size function as a select expression
- Fix to work on Oracle by removing "as" between table name and alias
1 parent 26ab3c5 commit 8c6f802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/CollectionSizeNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public String toSqlExpression() {
7474
final String sizeColumn = sizeColumns[0];
7575

7676
final StringBuilder buffer = new StringBuilder( "(select " ).append( sizeColumn );
77-
buffer.append( " from " ).append( collectionDescriptor.getTableName() ).append( " as " ).append( collectionTableAlias );
77+
buffer.append( " from " ).append( collectionDescriptor.getTableName() ).append( " " ).append( collectionTableAlias );
7878
buffer.append( " where " );
7979

8080
boolean firstPass = true;

0 commit comments

Comments
 (0)