[Dbix-class] one issue in cookBook example
    Mike.G 
    hylinux at gmail.com
       
    Fri Jun 20 03:06:29 BST 2008
    
    
  
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/Man=
ual/Cookbook.pod#___top>
  my $rs =3D $schema->resultset('Foo')->search(
    {},
    {
      select =3D> [
        { distinct =3D> [ $source->columns ] }
      ],
      as =3D> [ $source->columns ] # remember 'as' is not the same as SQL A=
S :-)
    }
  );
  my $count =3D $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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20080620/206=
ac3a4/attachment.htm
    
    
More information about the DBIx-Class
mailing list