php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #38593 feature request for an attribute that contains the current cursor position
Submitted: 2006-08-25 16:07 UTC Modified: 2021-08-03 12:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: php dot net at benjamin dot schulz dot name Assigned: cmb (profile)
Status: Wont fix Package: PDO related
PHP Version: 5.2.0RC2 OS:
Private report: No CVE-ID: None
 [2006-08-25 16:07 UTC] php dot net at benjamin dot schulz dot name
Description:
------------
an attribute or an argument that gives current cursor position (count of fetched rows) would be usefulk

Reproduce code:
---------------
PDOStatement::getAttribute(PDO::ATTR_CURSOR_POSITION))


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-06 01:39 UTC] will dot skates at ntlworld dot com
PDOStatement->rowCount();
 [2012-09-06 01:42 UTC] aharvey@php.net
rowCount() doesn't provide the current cursor position.

I'm not actually sure we track this, but let's at least put it in the right package so somebody can look into it.
 [2012-09-06 01:42 UTC] aharvey@php.net
-Package: Feature/Change Request +Package: PDO related
 [2021-08-03 12:55 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-03 12:55 UTC] cmb@php.net
> an attribute or an argument that gives current cursor position
> (count of fetched rows) would be usefulk

Which one is it?  As mentioned above, ::rowCount() is already a
thing.

Anyhow, after almost 15 years without much traction I think it's
safe to close this as WONTFIX.  If anybody still feels there is
room for improvement, please pursue the RFC process[1].

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC