Edit report at http://bugs.php.net/bug.php?id=45876&edit=1
ID: 45876 Updated by: ssuffic...@php.net Reported by: ssufficool at rov dot sbcounty dot gov Summary: PDO: DBLIB does not support getColumnMeta -Status: Assigned +Status: Closed Type: Feature/Change Request Package: *General Issues Operating System: Gentoo Linux PHP Version: 5.2.6 Assigned To: ssufficool New Comment: Fixed in revision 300627. Previous Comments: ------------------------------------------------------------------------ [2010-06-21 08:54:12] ssuffic...@php.net Automatic comment from SVN on behalf of ssufficool Revision: http://svn.php.net/viewvc/?view=revision&revision=300627 Log: Fix bug #45876 adding get column meta ------------------------------------------------------------------------ [2008-08-20 21:40:48] ssufficool at rov dot sbcounty dot gov Description: ------------ When using the mssql_* functions it is possible to read column meta data using mssql_fetch_field in conjunction with the freetds library. However it is not possible to use PDOStatement::getColumnMeta using the same library. The library must support this functionality in some way even if limited, the additional attributes may be set to false or NULL. Reproduce code: --------------- $conn = new PDO("dblib:host=myhost","user","pass"); $rs = $conn->query("SELECT * FROM SOMETABLE"); print_r($rs->getColumnMeta(0)); Expected result: ---------------- Array( "key" => "value", "key" => "value", "key" => "value", "key" => "value" ); Actual result: -------------- Warning: PDOStatement::getColumnMeta() [pdostatement.getcolumnmeta]: SQLSTATE[IM001]: Driver does not support this function: driver doesn't support meta data ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=45876&edit=1