Hi, every boday,
I am newer to DBIx::Class
I am readding the CookeBook
but there is a issue in that example:

SELECT DISTINCT with multiple
columns<http://search.cpan.org/%7Eash/DBIx-Class-0.08010/lib/DBIx/Class/Manual/Cookbook.pod#___top>

  my $rs = $schema->resultset('Foo')->search(
    {},
    {
      select => [
        { distinct => [ $source->columns ] }
      ],
      as => [ $source->columns ] # remember 'as' is not the same as SQL AS :-)
    }
  );

  my $count = $rs->next->get_column('count');

so , here. that variable $source, what's mean about the $source?
and where's we defined it?

who can help me explain that variable?

thanks very much

Mike.G
_______________________________________________
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/[EMAIL PROTECTED]

Reply via email to