Page 1 of 1

GroupBy SubString doesn't work

Posted: Fri 22 May 2009 00:45
by LPCRoy
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) });

Posted: Fri 22 May 2009 08:17
by AndreyR
Thank you for the report. We have reproduced this problem too.
I will let you know when it's resolved.

Posted: Tue 16 Jun 2009 14:21
by AndreyR
This problem is also fixed, look forward to the upcoming build of dotConnect for PostgreSQL.