php.net |  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
Votes:1
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: strata_ranger at hotmail dot com
New email:
PHP Version: OS:

 

 [2009-06-11 15:10 UTC] strata_ranger at hotmail dot com
Description:
------------
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: function.pg-fetch-all
---



Patches

Pull Requests

History

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

http://git.php.net/?p=php-src.git;a=commitdiff;h=b6935efc8e7bec39999bc681b2a185b0d778dbfd

pg_select() may return numerically indexed rows also.
 [2015-12-17 00:52 UTC] yohgaki@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC