[Dbix-class] rows error

Theo Bot theo.bot at proxy.nl
Sat Nov 10 13:50:24 GMT 2012


Peter

I'm sorry it was my fault. I upgraded my DBIx::Class module, but I'm also
using a private instance of DBIx::Class::Storage::DBI . And that one wasn't
updated so I caused the issue myself.

Thanks for the quick response.

Kind regards,

Theo


On Fri, Nov 9, 2012 at 3:05 PM, Peter Rabbitson <rabbit+dbic at rabbit.us>wrot=
e:

> On Fri, Nov 09, 2012 at 01:41:31PM +0100, Theo Bot wrote:
> > Hi,
> >
> > Can anybody tell me what is wrong with this?
> > $rs =3D $schema->resultset("Location")->search(
> >         {
> >             name =3D>  { like =3D> '%' },
> >         },
> >         {
> >             order_by =3D> 'location_id',
> >             rows =3D> 2,
> >         }
> >     );
> >
> >
> > I get:
> > Can't use an undefined value as an ARRAY reference at
> >
> /opt/TestProject/platform/Linux/x86_64/lib/perl5/site_perl/5.16.0/DBIx/Cl=
ass/Storage/DBIHacks.pm
> > line 70. at
> >
> /opt/TestProject/platform/Linux/x86_64/lib/perl5/site_perl/5.16.0/DBIx/Cl=
ass/Schema.pm
> > line 1101.
>
> Please trap the error right then and there, and without any further
> alterations to the $rs get me the output of:
>
>  use Devel::Dwarn;
>  Dwarn [ $rs->_resolved_attrs ];
>
> This will be a *lot* of output - I need all of it.
>
> Cheers
>
> _______________________________________________
> 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
>



-- =

Met vriendelijke groet,

Theo Bot
Network Management Engineer
Tel: +31653965698
e-mail: theo.bot at proxy.nl
Website: http://www.proxy.nl
LinkedIn: http://www.linkedin.com/in/theobot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20121110/a58=
2ff51/attachment.htm


More information about the DBIx-Class mailing list