in reply to Re: DBI with ORDER BY
in thread DBI with ORDER BY

Huh? The hashes are per-row. The rows still come out as a list or arrayref.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: Yup, I never use fetchall_hashref, and was confusing it with things that I use. Sorry. Too many similar sounding names.

Replies are listed 'Best First'.
Re^3: DBI with ORDER BY
by crashtest (Curate) on Mar 09, 2005 at 23:45 UTC
    merlyn, I believe you're thinking of fetchrow_hashref and not fetchall_hashref. The latter does in fact retrieve all the results into a hash (a HoH), thereby effectively discarding any ordering an ORDER BY clause might have imposed.