From da61e9c617aa7858bf2854df86e957ceb129a84c Mon Sep 17 00:00:00 2001 From: Anthony Bedford <abedford@php.net> Date: Wed, 24 Feb 2010 14:13:30 +0000 Subject: [PATCH] Added note that mysql_affected_rows() does not count rows affacted by CASCADE. Fixes doc bug #51041 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295471 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysql/functions/mysql-affected-rows.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reference/mysql/functions/mysql-affected-rows.xml b/reference/mysql/functions/mysql-affected-rows.xml index cbc6a0d4ea..7cf08d39af 100644 --- a/reference/mysql/functions/mysql-affected-rows.xml +++ b/reference/mysql/functions/mysql-affected-rows.xml @@ -131,6 +131,14 @@ Updated Records: 10 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">