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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php dot net at benjamin dot schulz dot name
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 23 22:03:38 2021 UTC