Page 1 of 1

Bug in formatting CLR User-defined aggregate on distinct value ?

Posted: Mon 15 Apr 2013 13:18
by sov
Hello, I have a CLR User-defined aggregate.
Formatting T-SQL code that references this aggregate like below

Code: Select all

select Val = System.agg_CommaJoin(distinct Q.Col)
from
(
   select Col = 'A'
   union all select 'B'
) as Q
results in errors:
Error (28,1): Unexpected symbol ')' (U+0029)
Error (13,33): Unexpected symbol '('
Error (13,34): Unexpected symbol 'distinct'
Error (28,1): Unexpected symbol ')' (U+0029)

After removing the keyword "distinct", the formatting is done without errors

Re: Bug in formatting CLR User-defined aggregate on distinct value ?

Posted: Wed 17 Apr 2013 08:04
by alexa
Could you please clarify what product you were referring to?

Re: Bug in formatting CLR User-defined aggregate on distinct value ?

Posted: Thu 18 Apr 2013 07:55
by sov
Sorry, SQL Complete 4.0.72

Re: Bug in formatting CLR User-defined aggregate on distinct value ?

Posted: Fri 19 Apr 2013 12:33
by alexa
This issue will be fixed in the next build of the product. We will notify you once it's available for downloading.