note 94495 deleted from function.mysql-affected-rows by philip
| From: | philip@php.net | Date: | Fri, 04 Sep 2015 21:46:34 +0000 |
| Subject: | note 94495 deleted from function.mysql-affected-rows by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203692@lists.php.net to get a copy of this message | ||
Note Submitter: PaulD
----
Just a note: [you should] 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.