note 104476 added to pdo.errorinfo
| From: | Oliver at osu1 dot php dot net | Date: | Thu, 16 Jun 2011 20:26:44 +0000 |
| Subject: | note 104476 added to pdo.errorinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180631@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 213.220.100.221
----
Manual Page -- http://www.php.net/manual/en/pdo.errorinfo.php
Edit -- https://master.php.net/note/edit/104476
Del: integrated -- https://master.php.net/note/delete/104476/integrated
Del: useless -- https://master.php.net/note/delete/104476/useless
Del: bad code -- https://master.php.net/note/delete/104476/bad+code
Del: spam -- https://master.php.net/note/delete/104476/spam
Del: non-english -- https://master.php.net/note/delete/104476/non-english
Del: in docs -- https://master.php.net/note/delete/104476/in+docs
Del: other reasons-- https://master.php.net/note/delete/104476
Reject -- https://master.php.net/note/reject/104476
Search -- https://master.php.net/manage/user-notes.php