note 23511 added to function.mysql-affected-rows
| From: | ceo at l-i-e dot com | Date: | Fri, 19 Jul 2002 22:44:21 +0000 |
| Subject: | note 23511 added to function.mysql-affected-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33327@lists.php.net to get a copy of this message | ||
mysql_affected_rows is not documented to work with REPLACE INTO.
It would seem that this is intentional, as it is currently telling me that 2 rows have been
affected... in a table that only has one row in it.
Further, the row shouldn't be changing at all, near as I can figure, if I've got the
REPLACE doing what I think it's doing.
A bit hard to tell, when mysql_affected_rows is clearly not doing what I, the naive user, expected
for REPLACE INTO.
YMMV.
--
http://www.php.net/manual/en/function.mysql-affected-rows.php
http://master.php.net/manage/user-notes.php?action=edit+23511
http://master.php.net/manage/user-notes.php?action=delete+23511
http://master.php.net/manage/user-notes.php?action=reject+23511