Skip to content

Commit

Permalink
Preserve WithStack property while cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Sep 27, 2023
1 parent 07021a7 commit efec67c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MarkMpn.Sql4Cds.Engine/ExecutionPlan/IndexSpoolNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public IEnumerable<Entity> GetWorkTable()

public override string ToString()
{
if (WithStack)
return "Index Spool\r\n(Lazy Spool)";

return "Index Spool\r\n(Eager Spool)";
}

Expand All @@ -149,7 +152,8 @@ public override object Clone()
KeyColumn = KeyColumn,
SeekValue = SeekValue,
_keySelector = _keySelector,
_seekSelector = _seekSelector
_seekSelector = _seekSelector,
WithStack = WithStack,
};

LastClone = clone;
Expand Down

0 comments on commit efec67c

Please sign in to comment.