in reply to DBI with ORDER BY
The database first selects the data per your instructions, and only then applies the SORT on the selected set in a db buffer. Inherently there is no order in the database.
DBI itself is an abstraction layer as others have mentioned. And while I haven't experienced it, it is possible that fetchall_hashref buggers up the specified ORDER. Other than that, no, DBI doesn't mess with your instructions to fetch the data.
Perhaps a friendly discussion with your co-worker will shed more light. Be sure to come back and update this thread so we may all learn for the better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI with ORDER BY
by YoungPups (Beadle) on Mar 10, 2005 at 21:25 UTC | |
by punkish (Priest) on Mar 10, 2005 at 22:16 UTC |