note 117365 added to pdo.error-handling

From: Date: Wed, 27 May 2015 19:23:24 +0000
Subject: note 117365 added to pdo.error-handling
Groups: php.notes 
Request: Send a blank email to php-notes+get-202686@lists.php.net to get a copy of this message
Setting the PDO::ATTR_ERRMODE to PDO::ERRMODE_EXCEPTION applies to both PDO and PDO::PDOStatement objects. Also, exceptions are thrown by: PDO::beginTransaction(), PDO::prepare(), PDOStatement::execute(), PDO::commit(), PDOStatement::fetch(), PDOStatement::fetchAll() and so on... Some of these are specified in their respective documentations as to return 'false' in case of an error. ---- Server IP: 72.52.91.14 Probable Submitter: 117.222.144.228 ---- Manual Page -- http://php.net/manual/en/pdo.error-handling.php Edit -- https://master.php.net/note/edit/117365 Del: integrated -- https://master.php.net/note/delete/117365/integrated Del: useless -- https://master.php.net/note/delete/117365/useless Del: bad code -- https://master.php.net/note/delete/117365/bad+code Del: spam -- https://master.php.net/note/delete/117365/spam Del: non-english -- https://master.php.net/note/delete/117365/non-english Del: in docs -- https://master.php.net/note/delete/117365/in+docs Del: other reasons-- https://master.php.net/note/delete/117365 Reject -- https://master.php.net/note/reject/117365 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202686) next »