Skip to content

Commit 8875e00

Browse files
committed
Add implied joins right to origin table (to avoid breakage by implicit joins)
1 parent bd3148a commit 8875e00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,13 +590,13 @@ public void SetOrigin(FromElement origin, bool manyToMany)
590590
}
591591
else
592592
{
593-
if (!Walker.IsInFrom && !Walker.IsInSelect)
593+
if (this.IsImplied || Walker.IsInFrom || Walker.IsInSelect)
594594
{
595-
FromClause.AddChild(this);
595+
origin.AddChild(this);
596596
}
597597
else
598598
{
599-
origin.AddChild(this);
599+
FromClause.AddChild(this);
600600
}
601601
}
602602
}

0 commit comments

Comments
 (0)