From: Operating system: PHP version: Irrelevant Package: PDO related Bug Type: Feature/Change Request Bug description:mysql_warning_count to be implemented
Description: ------------ The warning count is sent in the returned OK packet from a executed statement, however there is no functionality within PDO to extract, how many warnings were triggered from the statement. This will save on round trips to the database to identify whether data could have been truncated for example. http://dev.mysql.com/doc/refman/5.0/en/mysql-warning-count.html http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol#Types_Of_Result_Packets This would need to be implemented for other drivers too. -- Edit bug report at http://bugs.php.net/bug.php?id=51499&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51499&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51499&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51499&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51499&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51499&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51499&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51499&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51499&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51499&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51499&r=support Expected behavior: http://bugs.php.net/fix.php?id=51499&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51499&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51499&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51499&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51499&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51499&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51499&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51499&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51499&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51499&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51499&r=mysqlcfg