Bug->Req #54695 [Opn]: getColumnMeta() throws warning in silent mode

From: Date: Mon, 09 May 2011 15:33:49 +0000
Subject: Bug->Req #54695 [Opn]: getColumnMeta() throws warning in silent mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-160620@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54695&edit=1 ID: 54695 Updated by: uw@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

« previous php.bugs (#160620) next »