[Dbix-class] +select problem with 0.7006
Matt S Trout
dbix-class at trout.me.uk
Thu Jun 7 14:21:05 GMT 2007
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/
More information about the Dbix-class
mailing list