note 74607 added to function.PDO-setAttribute
| From: | jerry at gii dot co dot jp | Date: | Thu, 19 Apr 2007 20:25:12 +0000 |
| Subject: | note 74607 added to function.PDO-setAttribute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125576@lists.php.net to get a copy of this message | ||
Either I'm very confused, or does setAttribute return FALSE if it succeeds and TRUE if it
fails? At least,
$dbh->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
returns FALSE when using MySQL. On the other hand,
$dbh->setAttribute(PDO::ATTR_ERRMODE,9999);
returns true, along with an error message. By using $dbh->getAttribute I have verified that the
setAttribute call does, in fact, change the error mode to 2.
----
Server IP: 69.39.81.135
Probable Submitter: 69.182.252.110
----
Manual Page -- http://www.php.net/manual/en/function.PDO-setAttribute.php
Edit -- https://master.php.net/note/edit/74607
Del: integrated -- https://master.php.net/note/delete/74607/integrated
Del: useless -- https://master.php.net/note/delete/74607/useless
Del: bad code -- https://master.php.net/note/delete/74607/bad+code
Del: spam -- https://master.php.net/note/delete/74607/spam
Del: non-english -- https://master.php.net/note/delete/74607/non-english
Del: in docs -- https://master.php.net/note/delete/74607/in+docs
Del: other reasons-- https://master.php.net/note/delete/74607
Reject -- https://master.php.net/note/reject/74607
Search -- https://master.php.net/manage/user-notes.php