Re: [PHP-DB] PDO Exception Handling Question

2007-04-20 Thread Jerry Schwartz
I hope by now you figured this out, but you have to use $dbh->setAttribute() to enable exception handling for anything but the initial object creation. Worse yet, as of 2007/04/20 the return values of setAttribute are reversed. It returns TRUE on failure and FALSE on success. "Rodney Topor" <[E

[PHP-DB] PDO setAttribute return value

2007-04-20 Thread Jerry Schwartz
Is it my imagination, or does setAttribute return FALSE on success and TRUE on failure? I've tested it with getAttribute, and it definitely seems to work the reverse of what the documentation states. I'm using MySQL, and I am setting the error handling. -- PHP Database Mailing List (http://ww