From 1d8d464855cb7dcd0a8c0051fa6d56f37f1632bc Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 22 Nov 2024 09:40:04 +0000 Subject: [PATCH] fix: replace bitwise "ExpressionType.Or" with conditional OrElse --- .../Compiler/EntityQuery/Grammar/EntityQueryParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EntityGraphQL/Compiler/EntityQuery/Grammar/EntityQueryParser.cs b/src/EntityGraphQL/Compiler/EntityQuery/Grammar/EntityQueryParser.cs index 106f1a79..0e98cfcd 100644 --- a/src/EntityGraphQL/Compiler/EntityQuery/Grammar/EntityQueryParser.cs +++ b/src/EntityGraphQL/Compiler/EntityQuery/Grammar/EntityQueryParser.cs @@ -182,8 +182,8 @@ private static IExpression HandleBinary((IExpression, IReadOnlyList<(string, IEx PowerChar => ExpressionType.Power, AndWord => ExpressionType.AndAlso, AndStr => ExpressionType.AndAlso, - OrWord => ExpressionType.Or, - OrStr => ExpressionType.Or, + OrWord => ExpressionType.OrElse, + OrStr => ExpressionType.OrElse, _ => throw new NotSupportedException() }; binaryExp = new Binary(op, left, right);