Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

[2012-02-10 11:15 UTC] shol_ at hotmail dot com

I've a similar problem with PDO::FETCH_ORI_LAST as you have,
in my case I only want the last entry from the resultset, but
PDO::FETCH_ORI_LAST fetches the first one.
If I fetch an x number of other entries with PDO::FETCH_ORI_PRIOR, after PDO::FETCH_ORI_LAST, then it spits out the same results as if I were doing an fetchAll().
Did you find an efficient workaround ?
I use the same php version, but on ubuntu 9.1.
This is the only post on internet AFAIK, about this bug.

pdo_dblib doesn't support scrollable cursors, so this would be a feature request. DB-Library doesn't exactly support them either. The closest thing it offers are row buffers. It might be possible to approximate this functionality with them, but the API semantics are a little different. For one thing, you have to declare a buffer size. Since use cases likely vary, it might be better to handle this at a higher level.