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

 ID:                 54695
 Updated by:         u...@php.net
 Reported by:        david at grudl dot com
 Summary:            getColumnMeta() throws warning in silent mode
 Status:             Open
-Type:               Bug
+Type:               Feature/Change Request
 Package:            PDO related
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

I tend to say that's a valid and important warning. Not every PDO driver
implements this function, see also
http://de2.php.net/manual/en/pdostatement.getcolumnmeta.php . 



I read it that you are proposing to implement this function. Thus,
changing from Bug Type "Bug" to "Feature/Change Request.".


Previous Comments:
------------------------------------------------------------------------
[2011-05-09 16:19:39] david at grudl dot com

Description:
------------
PDO::ERRMODE_SILENT is not respected by PDOStatement::getColumnMeta()

Test script:
---------------
$pdo = new PDO('sqlite2:demo.db'); // SQLite does not support
getColumnMeta

$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);



$result = $pdo->query('SELECT * FROM users');

$result->getColumnMeta(1); 

Expected result:
----------------
no warning

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=54695&edit=1

Reply via email to