note 94495 added to function.mysql-affected-rows

From: Date: Sun, 08 Nov 2009 16:35:47 +0000
Subject: note 94495 added to function.mysql-affected-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-162647@lists.php.net to get a copy of this message
Just a note that the example provided by EToS does not check for a mysql_affected_rows() return value of -1. If a series of queries were run as a transaction and one query failed, the logic in the foreach loop of the transaction() method in class MySQLDB will not issue a ROLLBACK. It may also be slightly more efficient to stop processing queries on the first failure. ---- Server IP: 69.147.83.197 Probable Submitter: 74.103.201.82 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-affected-rows.php Edit -- https://master.php.net/note/edit/94495 Del: integrated -- https://master.php.net/note/delete/94495/integrated Del: useless -- https://master.php.net/note/delete/94495/useless Del: bad code -- https://master.php.net/note/delete/94495/bad+code Del: spam -- https://master.php.net/note/delete/94495/spam Del: non-english -- https://master.php.net/note/delete/94495/non-english Del: in docs -- https://master.php.net/note/delete/94495/in+docs Del: other reasons-- https://master.php.net/note/delete/94495 Reject -- https://master.php.net/note/reject/94495 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162647) next »