Edit report at https://bugs.php.net/bug.php?id=54405&edit=1

 ID:                 54405
 Updated by:         frozenf...@php.net
 Reported by:        php at bucksvsbytes dot com
 Summary:            FETCH_GROUP always operates on first column
 Status:             Open
-Type:               Documentation Problem
+Type:               Feature/Change Request
-Package:            Documentation problem
+Package:            PDO related
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

This seems like more of a bug/feature request, since the current behavior is 
near 
useless. After (if) it's been patched, please change this bug to a 
documentation 
problem bug type, so the change and new behavior can be documented.


Previous Comments:
------------------------------------------------------------------------
[2011-05-02 01:29:30] jinmoku at hotmail dot com

Or maybe add a fetch.column for FETCH_GROUP (see path)

------------------------------------------------------------------------
[2011-03-28 04:51:11] php at bucksvsbytes dot com

Description:
------------
---
>From manual page: http://www.php.net/pdostatement.fetchall#Parameters
---
The following statement is misleading/incorrect, "To return an associative 
array grouped by the values of a specified column, bitwise-OR PDO::FETCH_COLUMN 
with PDO::FETCH_GROUP."

It's apparent that FETCH_GROUP only groups on the first query column, so "a 
specified" should be replaced with "the first".



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=54405&edit=1

Reply via email to