Req #66028 [Fbk->NoF]: Get columns names

From: Date: Sun, 12 Mar 2017 04:22:28 +0000
Subject: Req #66028 [Fbk->NoF]: Get columns names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207801@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66028&edit=1 ID: 66028 Updated by: php-bugs@lists.php.net Reported by: luciotato at gmail dot com Summary: Get columns names -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: PDO related Operating System: windows PHP Version: 5.4.21 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2017-03-01 22:53:22] adambaratz@php.net getColumnMeta is the correct place for this information. It provides this info for a handful of drivers. Is there a specific driver you'd like column names added for? Or is the underlying issue really one of improving the documentation? ------------------------------------------------------------------------ [2013-11-03 20:41:48] luciotato at gmail dot com Description: ------------ A simple function to return column names, give that getColumnMeta is experimental. My use case: for SQlite, "select * from ..." PDO::Statement::columnCount() returns 17 (OK) PDO::Statement::getColumnMeta(0) throws ERROR. Invalid index Proposed: PDO::Statement::getColumnNames() -> return array of column names. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66028&edit=1

« previous php.bugs (#207801) next »