Skip to content

Commit

Permalink
Add quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
smitpatel committed Nov 17, 2020
1 parent f8fcf5a commit ec83081
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ namespace Microsoft.EntityFrameworkCore.Query.SqlExpressions
/// </summary>
public class SqlFunctionExpression : SqlExpression
{
private static readonly bool _useOldBehavior = AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue23336", out var enabled)
&& enabled;

/// <summary>
/// Creates a new instance of the <see cref="SqlFunctionExpression" /> class which represents a built-in niladic function.
/// </summary>
Expand Down Expand Up @@ -394,7 +397,8 @@ public override int GetHashCode()
hash.Add(IsNiladic);
hash.Add(Schema);
hash.Add(Instance);
if (Arguments != null)
if (Arguments != null
|| _useOldBehavior)
{
for (var i = 0; i < Arguments.Count; i++)
{
Expand Down

0 comments on commit ec83081

Please sign in to comment.