Skip to content

Commit

Permalink
Fixed execution count for RAISERROR/THROW
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Jun 16, 2024
1 parent 426c682 commit 3a71157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MarkMpn.Sql4Cds.Engine/ExecutionPlan/RaiseErrorNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public void Execute(NodeExecutionContext context, out int recordsAffected, out s
{
try
{
_executionCount++;

var ecc = new ExpressionCompilationContext(context, null, null);
var eec = new ExpressionExecutionContext(context);

Expand Down
2 changes: 2 additions & 0 deletions MarkMpn.Sql4Cds.Engine/ExecutionPlan/ThrowNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public override IEnumerable<IExecutionPlanNode> GetSources()

public void Execute(NodeExecutionContext context, out int recordsAffected, out string message)
{
_executionCount++;

if (ErrorNumber == null)
context.Log(context.Error);

Expand Down

0 comments on commit 3a71157

Please sign in to comment.