note 74607 rejected from function.PDO-setAttribute by bjori

From: Date: Fri, 20 Apr 2007 09:18:00 +0000
Subject: note 74607 rejected from function.PDO-setAttribute by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125598@lists.php.net to get a copy of this message
Note Submitter: jerry at gii dot co dot jp ---- 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.

« previous php.notes (#125598) next »