Re: Problem with PDO exceptions
| From: | Zoltan Ormandi | Date: | Sun, 08 Mar 2009 06:35:43 +0000 |
| Subject: | Re: Problem with PDO exceptions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46056@lists.php.net to get a copy of this message | ||
Hi,
Did you set the value of the |PDO::ATTR_ERRMODE| attribute to |PDO::ERRMODE_EXCEPTION|?
Btw, I don't think ||prepare would throw an exception even for a malformed query, but ||execute definitely should.
Regards,
Z