[Dbix-class] SQL::Abstract regression?

Paul Makepeace paulm at paulm.com
Mon Jul 13 16:11:20 GMT 2009


On Mon, Jul 13, 2009 at 11:03 AM, Rob Kinyon<rob.kinyon at gmail.com> wrote:
> On Mon, Jul 13, 2009 at 11:52, Paul Makepeace<paulm at paulm.com> wrote:
> [snip]
>> specifically, FROM (SELECT COUNT( publication_story.uid ) AS
>> story_count, ... looks wrong. Or should I update my code somehow?
>>
>> This error coincides with upgrading to latest DBIx::Class today.
>
> What do you expect to see?

My question is what do _you_ expect to see?

   select => [{ count => 'publication_story.uid' }, ...
   as => [qw/story_count ...

I would fairly reasonably expect to produce SELECT
COUNT(publication_story.uid) AS story_count and not have that appear
in the FROM clause (?!)

This has been working until today when I upgraded, so a recent version
of $module has broken this.

Paul


>
> Rob
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>



More information about the DBIx-Class mailing list