On Thu, Jun 07, 2007 at 12:05:02PM +0100, Will Hawes wrote:
> >From the docs and a quick chat on IRC I understand that the following:
>
> package My::Schema::Order_Product;
> ...
> __PACKAGE__->table('order_product');
> __PACKAGE__->add_columns(qw/ id product quantity unitprice /);
>
> ...
>
> my $rs = $c->model('Order_Product')->search(
> {},
> {
> +select => ['quantity * unitprice'],
'+select' => ['quantity * unitprice'],
> What have I done wrong here?
Slightly misunderstood how fat comma quoting works. Annoyingly, a bare
-select -would- behave as expected.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/