Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-lazy conditional evaluation #4533

Merged
merged 17 commits into from
Jun 29, 2024
Merged

Conversation

MaceWindu
Copy link
Contributor

No description provided.

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@linq2dbot
Copy link

Test baselines changed by this PR. Don't forget to merge/close baselines PR after this pr merged/closed.

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@linq2dbot
Copy link

Test baselines changed by this PR. Don't forget to merge/close baselines PR after this pr merged/closed.

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@linq2dbot
Copy link

Test baselines changed by this PR. Don't forget to merge/close baselines PR after this pr merged/closed.

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@linq2dbot
Copy link

Test baselines changed by this PR. Don't forget to merge/close baselines PR after this pr merged/closed.

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@linq2dbot
Copy link

Test baselines changed by this PR. Don't forget to merge/close baselines PR after this pr merged/closed.

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

viceroypenguin
viceroypenguin previously approved these changes Jun 28, 2024
Copy link
Contributor

@viceroypenguin viceroypenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting nits

Comment on lines 928 to +932
if (e.Method == null && (e.IsLifted || e.Type == typeof(object)))
return placeholder;

if (e.Method == null && operandExpr is not SqlPlaceholderExpression)
return e;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would prefer to group these two checks as sub-checks of a single if (e.Method is null)

@sdanyliv sdanyliv mentioned this pull request Jun 28, 2024
@sdanyliv
Copy link
Member

/azp run test-informix

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sdanyliv
Copy link
Member

/azp run test-all

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@MaceWindu MaceWindu merged commit f97a3ab into master Jun 29, 2024
73 checks passed
MaceWindu pushed a commit to linq2db/linq2db.baselines that referenced this pull request Jun 29, 2024
* [Windows / SQLite (both providers)] baselines

* [Windows / SQL CE] baselines

* [Windows / Access MDB (Jet/ODBC)] baselines

* [Windows / SQLite (specialized tests)] baselines

* [Windows / SQL Server 2019] baselines

* [Windows / SQL Server 2014] baselines

* [Windows / SQL Server 2016] baselines

* [Windows / SQL Server EXTRAS] baselines

* [Linux / DB2 LUW 11.5] baselines

* [Windows / SQL Server 2008] baselines

* [Linux / Firebird 2.5] baselines

* [Windows / SQL Server 2017] baselines

* [Linux / Firebird 3.0] baselines

* [Linux / Informix 14.10] baselines

* [Linux / MariaDB 11] baselines

* [Linux / Firebird 5.0] baselines

* [Linux / ClickHouse MySql] baselines

* [Linux / ClickHouse Client] baselines

* [Linux / Firebird 4.0] baselines

* [Linux / MySQL 8 (both providers)] baselines

* [Linux / MySQL 5.7 (both providers)] baselines

* [Linux / PostgreSQL 12] baselines

* [Linux / PostgreSQL 13] baselines

* [Linux / Oracle 11g XE] baselines

* [Windows / SQL Server 2022] baselines

* [Linux / PostgreSQL 11] baselines

* [Linux / Oracle 12c] baselines

* [Linux / PostgreSQL 15] baselines

* [Linux / PostgreSQL 14] baselines

* [Linux / Oracle 21c] baselines

* [Linux / Oracle 19c] baselines

* [Linux / PostgreSQL 16] baselines

* [Linux / Oracle 23c] baselines

* [Linux / Oracle 18c] baselines

* [Linux / Sybase ASE 16] baselines

* [Linux / ClickHouse Octonica] baselines

* [Linux / SQL Server 2019] baselines

* [Windows / Access MDB (Jet/ODBC)] baselines

* [Windows / SQL Server 2005] baselines

* [Windows / SQL Server EXTRAS] baselines

* [Windows / SQL Server 2012] baselines

* [Windows / Access MDB (Jet/ODBC)] baselines

* [Windows / SQL Server 2005] baselines

* [Linux / SQL Server 2019] baselines

* [Linux / SAP HANA 2] baselines

---------

Co-authored-by: Azure Pipelines Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants