GroupBy SubString doesn't work

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
LPCRoy
Posts: 7
Joined: Mon 18 May 2009 20:45

GroupBy SubString doesn't work

Post by LPCRoy » Fri 22 May 2009 00:45

This generates invalid SQL:

Code: Select all

dataContext.Table
     .GroupBy(x => x.StringValue.Substring(0, 1))
     .Select(x => new { StringText= x.Key, 
                                 Count = x.Count(y => y.SomeFlag == true) });

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

Post by AndreyR » Fri 22 May 2009 08:17

Thank you for the report. We have reproduced this problem too.
I will let you know when it's resolved.

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

Post by AndreyR » Tue 16 Jun 2009 14:21

This problem is also fixed, look forward to the upcoming build of dotConnect for PostgreSQL.

Post Reply