Query Fails When Executed in Thread

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
MikeF
Posts: 1
Joined: Thu 09 May 2013 20:47

Query Fails When Executed in Thread

Post by MikeF » Thu 09 May 2013 20:52

Hello,

I have an application that has been running fine for months that has suddenly started failing. It turns out that when I run a specific query from within a thread it returns zero rows even though there's matching data. It's running in a thread and after several iterations - with no pattern I've been able to discern, it suddenly works. It actually only fails for a specific value of p_QueueConfigId. The same method running in another thread always succeeds with a different value.

The code looks like this:

Using db As New MwtOracleMaxDataContext()

Return db.Swimmessages.Where(Function(x) x.Queueconfigurationid = p_QueueConfigId And x.Status = p_Status).OrderBy(Function(x) x.Createddate).ToList()

End Using

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Query Fails When Executed in Thread

Post by MariiaI » Mon 13 May 2013 08:55

Could you please specify the following:
- the DBMS (and its version) you are working with;
- the version of LinqConnect you are using;
- what specific value should be for 'p_QueueConfigId'.

Please send us the sample project with which this error can be reproduced.

Post Reply