note 95245 deleted from mysqli.affected-rows by danbrown
| From: | danbrown@php.net | Date: | Mon, 21 Dec 2009 16:59:35 +0000 |
| Subject: | note 95245 deleted from mysqli.affected-rows by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164183@lists.php.net to get a copy of this message | ||
Note Submitter: Janis E
----
A useful note from MySQL documentation:
"With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a
new row and 2 if an existing row is updated."
So, comparing affected-rows value to 1 may not be enough to check for success.