#45876 [NEW]: DBLIB does not support getColumnMeta

From: Date: Wed, 20 Aug 2008 21:40:48 +0000
Subject: #45876 [NEW]: DBLIB does not support getColumnMeta
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128267@lists.php.net to get a copy of this message
From: ssufficool at rov dot sbcounty dot gov Operating system: Gentoo Linux PHP version: 5.2.6 PHP Bug Type: PDO related Bug description: DBLIB does not support getColumnMeta 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 bug report at http://bugs.php.net/?id=45876&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45876&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45876&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45876&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45876&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45876&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45876&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45876&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45876&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45876&r=support Expected behavior: http://bugs.php.net/fix.php?id=45876&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45876&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45876&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45876&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45876&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45876&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45876&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45876&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45876&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45876&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45876&r=mysqlcfg

« previous php.bugs (#128267) next »