A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ElasticLINQ/ElasticLINQ/issues/66 below:

Constant boolean within a subexpression fails with InvalidOperation · Issue #66 · ElasticLINQ/ElasticLINQ · GitHub

This repository was archived by the owner on Jul 2, 2024. It is now read-only.

This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Constant boolean within a subexpression fails with InvalidOperation #66

Assignees

Description

Both of these expressions fail with an InvalidOperation error:

var orTrueSub = Robots.Where(r => r.Id == 11 && (true || r.EnergyUse > 2));
var andFalseSub = Robots.Where(r => r.Id == 11 || (false && r.EnergyUse > 2));

This is because the sub-expressions resolve to constant expressions but the removal of constant expressions is done before the sub-expression is resolved within ConstantQueryFilterReducer.cs

Metadata Metadata

Development

No branches or pull requests Issue actions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4