note 83690 deleted from pdo.error-handling by googleguy
| From: | googleguy@php.net | Date: | Fri, 11 Jan 2013 19:28:30 +0000 |
| Subject: | note 83690 deleted from pdo.error-handling by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192943@lists.php.net to get a copy of this message | ||
Note Submitter: john dot navratil at sbcglobal dot net
----
SQLSTATE code strings cannot be counted on, yet. Attempting to insert a row with a duplicate key
provides the 23000 code (constraint violation) when using mysql, but HY000 when using Oracle. The
PDO docs say this is the responsibility of the driver to convert. In the meantime, the app will
have to do it.