Skip to content

Commit

Permalink
Fixed infinite loop in TRY block
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Apr 23, 2024
1 parent b0fcb74 commit cee3566
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsDataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,9 @@ private bool Execute(Dictionary<string, DataTypeReference> parameterTypes, Dicti

if (catchDepth == 0)
break;
}

// Remove error information from context
_errorDetails.Pop();
context.Error = _errorDetails.FirstOrDefault();
_instructionPointer++;
}
}
else if (node is BeginCatchNode)
{
Expand Down

0 comments on commit cee3566

Please sign in to comment.