Skip to content

Problem with SQL-translation of double Negate: -(-column) #26309

Closed

Description

EFCore 6.0

Seems, your infrastructure incorrect translate the double negate operation:

MSSQL test

ss => ss.Set<Squad>().Where(s => -(-s.Id) == -s.Id))

Error message

Microsoft.Data.SqlClient.SqlException : Incorrect syntax near 'WHERE'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

area-queryclosed-fixedThe issue has been fixed and is/will be included in the release indicated by the issue milestone.customer-reportedtype-bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions