note 104476 deleted from pdo.errorinfo by danbrown
| From: | danbrown@php.net | Date: | Fri, 17 Jun 2011 13:54:25 +0000 |
| Subject: | note 104476 deleted from pdo.errorinfo by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180642@lists.php.net to get a copy of this message | ||
Note Submitter: Oliver
----
Travis, the example code is correct for one case. The description gives the clue to the case you
describe: "[...] and invoke an error on the statement handle, PDO::errorInfo() will not reflect
the error from the statement handle. You must call PDOStatement::errorInfo() to return the error
information for an operation performed on a particular statement handle."
From my experience, though, the example code works on the non-default case, so from that perspective
you are right that this should be reflected in the sample code.