Nullable object problem with new beta version

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
dilbert
Posts: 68
Joined: Tue 28 Apr 2009 10:11

Nullable object problem with new beta version

Post by dilbert » Fri 19 Feb 2010 15:59

Thank you for fixing bugs from previous beta version.
Unfortunately, I have found new one in the latest version of dotConnect for MySql (5.70.97.0). Quite a strange problem with nullable variables.

With the following code I got NullReferenceExceptions:

Code: Select all

int? idObject = null;
var query = from t in DB.Table1
where t.Column1 == idObject
select t;
If I don't use nullable objects, the query is OK:

Code: Select all

var query = from t in DB.Table1
where t.Column1 == null
select t;

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 22 Feb 2010 12:13

Thank you for the report, we have reproduced the problem.
I will let you know as soon as it is fixed.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 03 Mar 2010 15:14

The problem is fixed, look forward to the nearest build.

Post Reply