svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-affected-rows.xml
| From: | Anthony Bedford | Date: | Wed, 24 Feb 2010 14:13:30 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-affected-rows.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6132@lists.php.net to get a copy of this message | ||
abedford Wed, 24 Feb 2010 14:13:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295471
Log:
Added note that mysql_affected_rows() does not count rows affacted by CASCADE. Fixes doc bug #51041
Bug: http://bugs.php.net/51041 (Assigned)
mysql_affected_rows() doesn't count rows affected through CASCADE foreign keys
Changed paths:
U phpdoc/en/trunk/reference/mysql/functions/mysql-affected-rows.xml
Modified: phpdoc/en/trunk/reference/mysql/functions/mysql-affected-rows.xml
===================================================================
--- phpdoc/en/trunk/reference/mysql/functions/mysql-affected-rows.xml 2010-02-24 13:16:50 UTC (rev
295470)
+++ phpdoc/en/trunk/reference/mysql/functions/mysql-affected-rows.xml 2010-02-24 14:13:30 UTC (rev
295471)
@@ -131,6 +131,14 @@
use <function>mysql_num_rows</function>.
</para>
</note>
+ <note>
+ <title>Cascaded Foreign Keys</title>
+ <para>
+ <function>mysql_affected_rows</function> does not count rows affected
+ implicitly through the use of ON DELETE CASCADE and/or ON UPDATE CASCADE
+ in foreign key constraints.
+ </para>
+ </note>
</refsect1>
<refsect1 role="seealso">