Linq-To-Sql Nullable Boolean

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Les Brinkworth
Posts: 2
Joined: Sun 19 Jun 2016 18:00

Linq-To-Sql Nullable Boolean

Post by Les Brinkworth » Wed 26 Apr 2017 09:56

I see that back in 2010 there was some issue with nullable Boolean comparisons.
I am running the lastest version of LinqConnect 1199.
The following query being performed against a MySQL Database (Ver 5.6.10), always returns false for the (x.editable ?? false) portion of the query. Editable is a nullable Boolean type.

Code: Select all

context.hosted_bundle_service_items.Where(x => x.i_hosted_bundle == i_bundle && (x.editable ?? false))
Please could you explain why this is the case?

Regards

Les Brinkworth

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Linq-To-Sql Nullable Boolean

Post by Shalex » Thu 27 Apr 2017 16:28

Thank you for your report. We have reproduced the issue and will notify you when it is fixed.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Linq-To-Sql Nullable Boolean

Post by Shalex » Fri 26 May 2017 17:26

The bug with returning incorrect data by the 'BooleanProperty ?? false' LINQ query is fixed (MySQL): viewtopic.php?f=31&t=35435.

Post Reply