note 83690 added to pdo.error-handling

From: Date: Sat, 07 Jun 2008 22:38:17 +0000
Subject: note 83690 added to pdo.error-handling
Groups: php.notes 
Request: Send a blank email to php-notes+get-140216@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 68.88.15.9 ---- Manual Page -- http://www.php.net/manual/en/pdo.error-handling.php Edit -- https://master.php.net/note/edit/83690 Del: integrated -- https://master.php.net/note/delete/83690/integrated Del: useless -- https://master.php.net/note/delete/83690/useless Del: bad code -- https://master.php.net/note/delete/83690/bad+code Del: spam -- https://master.php.net/note/delete/83690/spam Del: non-english -- https://master.php.net/note/delete/83690/non-english Del: in docs -- https://master.php.net/note/delete/83690/in+docs Del: other reasons-- https://master.php.net/note/delete/83690 Reject -- https://master.php.net/note/reject/83690 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140216) next »