[Dbix-class] Pager offset not implemented?
Krzysztof Krzyzaniak
eloy at kofeina.net
Mon Nov 21 17:16:39 CET 2005
Nigel Metheringham wrote:
> In the documentation for DBIX::Class::Recordset (version
> DBIx-Class-0.03003), the offset search attribute is stated as selecting
> the initial page returned of a paged result set.
>
> That doesn't seem to work when I try it in my code - instead I need to
> do:-
> my $items = $class->search({},
> {page => 1,
some 'order_by' => some_field would be handy.
> rows => 20});
> $items = $items->page($c->request->param('page'))
> if ($c->request->param('page') > 1);
>
> It also looks like the ResultSet pager method deletes out the offset
> attribute...
>
> Is this method officially not implemented at the moment?
Which database? Postgresql seems to work.
eloy
--
-------e-l-o-y---------------------------e-l-o-y- at -k-o-f-e-i-n-a-.-n-e-t------
jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej
More information about the Dbix-class
mailing list