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
This commit is contained in:
Gail Badner 2020-03-10 13:54:42 -07:00 committed by gbadner
parent 26ab3c5362
commit 8c6f8025e3
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class CollectionSizeNode extends SqlNode implements SelectExpression {
final String sizeColumn = sizeColumns[0];
final StringBuilder buffer = new StringBuilder( "(select " ).append( sizeColumn );
buffer.append( " from " ).append( collectionDescriptor.getTableName() ).append( " as " ).append( collectionTableAlias );
buffer.append( " from " ).append( collectionDescriptor.getTableName() ).append( " " ).append( collectionTableAlias );
buffer.append( " where " );
boolean firstPass = true;