string concatenation problem

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
dilbert
Posts: 68
Joined: Tue 28 Apr 2009 10:11

string concatenation problem

Post by dilbert » Mon 04 Oct 2010 15:17

I have encountered a strange problem with version 2.90.170. (The previous versions worked correctly.)

If I have a query with WHERE clause and if I use string concatenation in SELECT clause, then no records are returned.

Try this code:

Code: Select all

var query = from u in DB.Users
where u.Active == 1
select new { Name = u.Username + " abc " };

foreach(var row in query)
{
 // no records returned;
}
Thanks for attention.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Tue 05 Oct 2010 14:19

Thank you for your report, we have reproduced the problem. We will investigate it and inform you about the results as soon as possible.

dilbert
Posts: 68
Joined: Tue 28 Apr 2009 10:11

Post by dilbert » Fri 26 Nov 2010 13:39

The problem still persits in the current version - 2.90.190.0.
Is there any progress with this issue?

Thanks

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Mon 29 Nov 2010 17:26

The problem is that SQLite apparently uses named parameters in the order they are specified, regardless of their names. We are working on this problem, and will inform you about the results as soon as possible.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Fri 10 Dec 2010 13:01

We've implemented a workaround for this SQLite behaviour, queries with parameters (or literals) in the Select part should be processed correctly now. These changes will be available in the nearest build of dotConnect for SQLite.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Fri 17 Dec 2010 10:34

We have released the new 3.0.69 version of dotConnect for SQLite where these changes are available. The new build can be downloaded from
http://www.devart.com/dotconnect/sqlite/download.html
(the trial version) or from Registered Users' Area (for users with active subscription only):
http://secure.devart.com/

For more information about the fixes and improvements available in dotConnect for SQLite 3.0.69, please refer to
http://www.devart.com/forums/viewtopic.php?t=19796

Post Reply