|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48532 Allow pg_fetch_all() to index numerically
Submitted: 2009-06-11 15:10 UTC Modified: 2015-12-17 00:52 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: strata_ranger at hotmail dot com Assigned: yohgaki (profile)
Status: Closed Package: PostgreSQL related
PHP Version: 5.2.9 OS:
Private report: No CVE-ID: None
 [2009-06-11 15:10 UTC] strata_ranger at hotmail dot com
It could be useful if pg_fetch_all() were extended to support indexing each row's fields numerically (like pg_fetch_row() does) in addition to the current behavior of indexing them associatively.

It is possible in some obscure cases that an associative array is unable to contain all columns from the result set, i.e. if the query returns duplicate column names/aliases.

Reproduce code:
From manual page:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 23:12 UTC]
-Package: Feature/Change Request +Package: PostgreSQL related
 [2012-03-31 05:53 UTC]
-Assigned To: +Assigned To: yohgaki
 [2013-08-07 00:15 UTC]
Why do you want numeric key?
 [2015-12-17 00:51 UTC]

pg_select() may return numerically indexed rows also.
 [2015-12-17 00:52 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC