Skip to content

Commit c0a2777

Browse files
committed
Disable implicit join generation for implied entity joins
1 parent c767fcb commit c0a2777

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate/Hql/Ast/ANTLR/Tree/DotNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ private void DereferenceEntityJoin(string classAlias, EntityType propertyType, b
519519
// If this is an implied join in a from element, then use the impled join type which is part of the
520520
// tree parser's state (set by the gramamar actions).
521521
JoinSequence joinSequence = SessionFactoryHelper
522-
.CreateJoinSequence( impliedJoin, propertyType, tableAlias, _joinType, joinColumns );
522+
.CreateJoinSequence(false, propertyType, tableAlias, _joinType, joinColumns);
523523

524524
var factory = new FromElementFactory(
525525
currentFromClause,

src/NHibernate/Hql/Ast/ANTLR/Tree/FromElementFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public FromElement CreateElementJoin(IQueryableCollection queryableCollection)
272272
IAssociationType elementAssociationType = sfh.GetElementAssociationType(type);
273273

274274
// Create the join element under the from element.
275-
JoinSequence joinSequence = sfh.CreateJoinSequence(_implied, elementAssociationType, tableAlias, JoinType.InnerJoin, targetColumns);
275+
JoinSequence joinSequence = sfh.CreateJoinSequence(false, elementAssociationType, tableAlias, JoinType.InnerJoin, targetColumns);
276276
FromElement elem = InitializeJoin(_path, destination, joinSequence, targetColumns, _origin, false);
277277
elem.UseFromFragment = true; // The associated entity is implied, but it must be included in the FROM.
278278
elem.CollectionTableAlias = roleAlias; // The collection alias is the role.

0 commit comments

Comments
 (0)