Fix issue using explicitSourceAlias as SqlAliasBase, explicit alias starting with a _ char causes failures for Oracle, Derby and Db2 databases

This commit is contained in:
Andrea Boriero 2021-06-25 11:15:02 +02:00
parent 3de89577f8
commit cf449a986e
1 changed files with 1 additions and 2 deletions

View File

@ -849,8 +849,7 @@ public class ToOneAttributeMapping
SqlAliasBaseGenerator aliasBaseGenerator,
SqlExpressionResolver sqlExpressionResolver,
SqlAstCreationContext creationContext) {
final String aliasRoot = explicitSourceAlias == null ? sqlAliasStem : explicitSourceAlias;
final SqlAliasBase sqlAliasBase = aliasBaseGenerator.createSqlAliasBase( aliasRoot );
final SqlAliasBase sqlAliasBase = aliasBaseGenerator.createSqlAliasBase( sqlAliasStem );
final LazyTableGroup lazyTableGroup = new LazyTableGroup(
navigablePath,
() -> createTableGroupJoinInternal(