From c817320d66de59609c8a43d8b362c0ea9e5c30ff Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 4 Jun 2025 19:57:31 +0100 Subject: [PATCH] Adds back support for 'Variables.' within SqlEvaluator with an obsolete comment. (#6710) --- src/modules/Elsa.Sql/Services/SqlEvaluator.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/Elsa.Sql/Services/SqlEvaluator.cs b/src/modules/Elsa.Sql/Services/SqlEvaluator.cs index 3f0e4d724..ed1fc46a2 100644 --- a/src/modules/Elsa.Sql/Services/SqlEvaluator.cs +++ b/src/modules/Elsa.Sql/Services/SqlEvaluator.cs @@ -86,6 +86,8 @@ public class SqlEvaluator() : ISqlEvaluator var i when i.StartsWith("Input.") => executionContext.Input.TryGetValue(i.Substring(6), out var v) ? v : null, var o when o.StartsWith("Output.") => executionContext.Output.TryGetValue(o.Substring(7), out var v) ? v : null, var v when v.StartsWith("Variable.") => expressionContext.GetVariableInScope(v.Substring(9)) ?? null, + // OBSOLETE: This is deprecated and will be removed in a future version. Use 'Variable.' instead. + var v when v.StartsWith("Variables.") => expressionContext.GetVariableInScope(v.Substring(10)) ?? null, _ => throw new NullReferenceException($"No matching property found for {{{{{key}}}}}.") }; }