|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchespdo_dblib_meta (last revision 2010-06-21 06:51 UTC by ssufficool at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-21 08:50 UTC] ssufficool@php.net
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: ssufficool
[2010-06-21 08:54 UTC] ssufficool@php.net
[2010-06-21 08:55 UTC] ssufficool@php.net
-Status: Assigned
+Status: Closed
[2010-06-21 08:55 UTC] ssufficool@php.net
[2010-06-28 01:59 UTC] ssufficool@php.net
-Package: *General Issues
+Package: PDO related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
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