Skip to content

Commit d638d3d

Browse files
committed
Return old behavior for implicit joins in subquery
1 parent 2cedbd5 commit d638d3d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,14 @@ public void SetOrigin(FromElement origin, bool manyToMany)
707707
{
708708
// HHH-276 : implied joins in a subselect where clause - The destination needs to be added
709709
// to the destination's from clause.
710-
FromClause.AddChild(this); // Not sure if this is will fix everything, but it works.
710+
FromClause.AddChild(this);
711+
712+
// Generate correlated implied joins inside subquery implicitly
713+
// As some dialects (MySql) do not support correlated columns to be used in subquery join ON clause
714+
if (IsImplied)
715+
{
716+
JoinSequence.SetUseThetaStyle(true);
717+
}
711718
}
712719
else
713720
{

0 commit comments

Comments
 (0)