Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: fetchall_arrayref with slice and row count

by blokhead (Monsignor)
on Jan 31, 2006 at 19:04 UTC ( [id://526849]=note: print w/replies, xml ) Need Help??


in reply to fetchall_arrayref with slice and row count

I found the same thing to be true in DBI::fetchall_arrayref() error. I guess you could say that the general consensus was that it was a bug. I think it would be nice to have the best of both worlds (slice + limit).

blokhead

Replies are listed 'Best First'.
Re^2: fetchall_arrayref with slice and row count
by druud (Sexton) on Nov 28, 2009 at 17:11 UTC
    Not a bug. So wrong usage.
    while ( $sth->{Active} and $rowcache=$sth->fetchall_arrayref({}, $max_rows) ) { ... }
    See the DBI documentation: the last possible fetch in a fetchall will call $sth->finish.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://526849]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found