Req #48532 [Asn]: Allow pg_fetch_all() to index numerically
| From: | yohgaki@php.net | Date: | Thu, 17 Dec 2015 00:51:54 +0000 |
| Subject: | Req #48532 [Asn]: Allow pg_fetch_all() to index numerically | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197948@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=48532&edit=1
ID: 48532
Updated by: yohgaki@php.net
Reported by: strata_ranger at hotmail dot com
Summary: Allow pg_fetch_all() to index numerically
Status: Assigned
Type: Feature/Change Request
Package: PostgreSQL related
PHP Version: 5.2.9
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Implemented.
http://git.php.net/?p=php-src.git;a=commitdiff;h=b6935efc8e7bec39999bc681b2a185b0d778dbfd
pg_select() may return numerically indexed rows also.
Previous Comments:
------------------------------------------------------------------------
[2013-08-07 00:15:52] yohgaki@php.net
Why do you want numeric key?
------------------------------------------------------------------------
[2009-06-11 15:10:22] 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
---
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=48532&edit=1