MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:paul.dubois Date:June 11 2010 6:19pm
Subject:svn commit - mysqldoc@docsrva: r21187 - in trunk: . refman-4.1 refman-5.0 refman-5.1 refman-5.4 refman-5.5 refman-6.0
View as plain text  
Author: paul
Date: 2010-06-11 20:19:13 +0200 (Fri, 11 Jun 2010)
New Revision: 21187

Log:
 r60036@frost:  paul | 2010-06-11 13:14:59 -0500
 Reduce diffs between mysql_affected_rows/mysql_stmt_affected_rows descriptions


Modified:
   trunk/refman-4.1/apis-c.xml
   trunk/refman-5.0/apis-c.xml
   trunk/refman-5.1/apis-c.xml
   trunk/refman-5.4/apis-c.xml
   trunk/refman-5.5/apis-c.xml
   trunk/refman-6.0/apis-c.xml

Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - 07c7e7b4-24e3-4b51-89d0-6dc09fec6bec:/mysqldoc-local/mysqldoc/trunk:35498
07c7e7b4-24e3-4b51-89d0-6dc09fec6bec:/mysqldoc-local/trunk:39186
4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:43968
4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/trunk:44480
7d8d2c4e-af1d-0410-ab9f-b038ce55645b:/mysqldoc-local/mysqldoc:60035
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:14218
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:39036
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/trunk:39546
   + 07c7e7b4-24e3-4b51-89d0-6dc09fec6bec:/mysqldoc-local/mysqldoc/trunk:35498
07c7e7b4-24e3-4b51-89d0-6dc09fec6bec:/mysqldoc-local/trunk:39186
4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:43968
4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/trunk:44480
7d8d2c4e-af1d-0410-ab9f-b038ce55645b:/mysqldoc-local/mysqldoc:60036
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:14218
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:39036
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/trunk:39546


Modified: trunk/refman-4.1/apis-c.xml
===================================================================
--- trunk/refman-4.1/apis-c.xml	2010-06-11 18:19:06 UTC (rev 21186)
+++ trunk/refman-4.1/apis-c.xml	2010-06-11 18:19:13 UTC (rev 21187)
Changed blocks: 6, Lines Added: 23, Lines Deleted: 22; 4092 bytes

@@ -1563,13 +1563,14 @@
       </para>
 
       <para>
-        After executing a statement with
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
         <literal role="cfunc">mysql_query()</literal> or
-        <literal role="cfunc">mysql_real_query()</literal>, returns the
-        number of rows changed (for
-        <literal role="stmt">UPDATE</literal>), deleted (for
-        <literal role="stmt">DELETE</literal>), or inserted (for
-        <literal role="stmt">INSERT</literal>). For
+        <literal role="cfunc">mysql_real_query()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_affected_rows()</literal> works like
         <literal role="cfunc">mysql_num_rows()</literal>.

@@ -1609,7 +1610,8 @@
       </para>
 
 <programlisting>
-char *stmt = "UPDATE products SET cost=cost*1.25 WHERE group=10";
+char *stmt = "UPDATE products SET cost=cost*1.25
+              WHERE group=10";
 mysql_query(&amp;mysql,stmt);
 printf("%ld products updated",
        (long) mysql_affected_rows(&amp;mysql));

@@ -1626,10 +1628,10 @@
       </para>
 
       <para>
-        Note that when you use a <literal role="stmt">REPLACE</literal>
-        command, <literal role="cfunc">mysql_affected_rows()</literal>
-        returns 2 if the new row replaced an old row, because in this
-        case, one row was inserted after the duplicate was deleted.
+        When you use a <literal role="stmt">REPLACE</literal> command,
+        <literal role="cfunc">mysql_affected_rows()</literal> returns 2
+        if the new row replaced an old row, because in this case, one
+        row was inserted after the duplicate was deleted.
       </para>
 
       <para>

@@ -9998,12 +10000,13 @@
       </para>
 
       <para>
-        Returns the total number of rows changed, deleted, or inserted
-        by the last executed statement. May be called immediately after
-        <literal role="cfunc">mysql_stmt_execute()</literal> for
-        <literal role="stmt">UPDATE</literal>,
-        <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal> statements. For
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
+        <literal role="cfunc">mysql_stmt_execute()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_stmt_affected_rows()</literal> works
         like <literal role="cfunc">mysql_num_rows()</literal>.

@@ -10721,8 +10724,8 @@
       <para>
         If the statement is an <literal role="stmt">UPDATE</literal>,
         <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal>, the total number of
-        changed, deleted, or inserted rows can be found by calling
+        <literal role="stmt">INSERT</literal>, the number of changed,
+        deleted, or inserted rows can be found by calling
         <literal role="cfunc">mysql_stmt_affected_rows()</literal>. If
         this is a statement such as
         <literal role="stmt">SELECT</literal> that generates a result

@@ -11931,9 +11934,7 @@
       </para>
 
       <para>
-        For the usage of
-        <literal role="cfunc">mysql_stmt_param_count()</literal>, refer
-        to the Example from <xref linkend="mysql-stmt-execute"/>.
+        See the Example in <xref linkend="mysql-stmt-execute"/>.
       </para>
 
     </section>


Modified: trunk/refman-5.0/apis-c.xml
===================================================================
--- trunk/refman-5.0/apis-c.xml	2010-06-11 18:19:06 UTC (rev 21186)
+++ trunk/refman-5.0/apis-c.xml	2010-06-11 18:19:13 UTC (rev 21187)
Changed blocks: 6, Lines Added: 23, Lines Deleted: 22; 4093 bytes

@@ -1602,13 +1602,14 @@
       </para>
 
       <para>
-        After executing a statement with
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
         <literal role="cfunc">mysql_query()</literal> or
-        <literal role="cfunc">mysql_real_query()</literal>, returns the
-        number of rows changed (for
-        <literal role="stmt">UPDATE</literal>), deleted (for
-        <literal role="stmt">DELETE</literal>), or inserted (for
-        <literal role="stmt">INSERT</literal>). For
+        <literal role="cfunc">mysql_real_query()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_affected_rows()</literal> works like
         <literal role="cfunc">mysql_num_rows()</literal>.

@@ -1648,7 +1649,8 @@
       </para>
 
 <programlisting>
-char *stmt = "UPDATE products SET cost=cost*1.25 WHERE group=10";
+char *stmt = "UPDATE products SET cost=cost*1.25
+              WHERE group=10";
 mysql_query(&amp;mysql,stmt);
 printf("%ld products updated",
        (long) mysql_affected_rows(&amp;mysql));

@@ -1665,10 +1667,10 @@
       </para>
 
       <para>
-        Note that when you use a <literal role="stmt">REPLACE</literal>
-        command, <literal role="cfunc">mysql_affected_rows()</literal>
-        returns 2 if the new row replaced an old row, because in this
-        case, one row was inserted after the duplicate was deleted.
+        When you use a <literal role="stmt">REPLACE</literal> command,
+        <literal role="cfunc">mysql_affected_rows()</literal> returns 2
+        if the new row replaced an old row, because in this case, one
+        row was inserted after the duplicate was deleted.
       </para>
 
       <para>

@@ -10159,12 +10161,13 @@
       </para>
 
       <para>
-        Returns the total number of rows changed, deleted, or inserted
-        by the last executed statement. May be called immediately after
-        <literal role="cfunc">mysql_stmt_execute()</literal> for
-        <literal role="stmt">UPDATE</literal>,
-        <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal> statements. For
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
+        <literal role="cfunc">mysql_stmt_execute()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_stmt_affected_rows()</literal> works
         like <literal role="cfunc">mysql_num_rows()</literal>.

@@ -10942,8 +10945,8 @@
       <para>
         If the statement is an <literal role="stmt">UPDATE</literal>,
         <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal>, the total number of
-        changed, deleted, or inserted rows can be found by calling
+        <literal role="stmt">INSERT</literal>, the number of changed,
+        deleted, or inserted rows can be found by calling
         <literal role="cfunc">mysql_stmt_affected_rows()</literal>. If
         this is a statement such as
         <literal role="stmt">SELECT</literal> that generates a result

@@ -12124,9 +12127,7 @@
       </para>
 
       <para>
-        For the usage of
-        <literal role="cfunc">mysql_stmt_param_count()</literal>, refer
-        to the Example from <xref linkend="mysql-stmt-execute"/>.
+        See the Example in <xref linkend="mysql-stmt-execute"/>.
       </para>
 
     </section>


Modified: trunk/refman-5.1/apis-c.xml
===================================================================
--- trunk/refman-5.1/apis-c.xml	2010-06-11 18:19:06 UTC (rev 21186)
+++ trunk/refman-5.1/apis-c.xml	2010-06-11 18:19:13 UTC (rev 21187)
Changed blocks: 6, Lines Added: 23, Lines Deleted: 22; 4093 bytes

@@ -1587,13 +1587,14 @@
       </para>
 
       <para>
-        After executing a statement with
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
         <literal role="cfunc">mysql_query()</literal> or
-        <literal role="cfunc">mysql_real_query()</literal>, returns the
-        number of rows changed (for
-        <literal role="stmt">UPDATE</literal>), deleted (for
-        <literal role="stmt">DELETE</literal>), or inserted (for
-        <literal role="stmt">INSERT</literal>). For
+        <literal role="cfunc">mysql_real_query()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_affected_rows()</literal> works like
         <literal role="cfunc">mysql_num_rows()</literal>.

@@ -1633,7 +1634,8 @@
       </para>
 
 <programlisting>
-char *stmt = "UPDATE products SET cost=cost*1.25 WHERE group=10";
+char *stmt = "UPDATE products SET cost=cost*1.25
+              WHERE group=10";
 mysql_query(&amp;mysql,stmt);
 printf("%ld products updated",
        (long) mysql_affected_rows(&amp;mysql));

@@ -1650,10 +1652,10 @@
       </para>
 
       <para>
-        Note that when you use a <literal role="stmt">REPLACE</literal>
-        command, <literal role="cfunc">mysql_affected_rows()</literal>
-        returns 2 if the new row replaced an old row, because in this
-        case, one row was inserted after the duplicate was deleted.
+        When you use a <literal role="stmt">REPLACE</literal> command,
+        <literal role="cfunc">mysql_affected_rows()</literal> returns 2
+        if the new row replaced an old row, because in this case, one
+        row was inserted after the duplicate was deleted.
       </para>
 
       <para>

@@ -10270,12 +10272,13 @@
       </para>
 
       <para>
-        Returns the total number of rows changed, deleted, or inserted
-        by the last executed statement. May be called immediately after
-        <literal role="cfunc">mysql_stmt_execute()</literal> for
-        <literal role="stmt">UPDATE</literal>,
-        <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal> statements. For
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
+        <literal role="cfunc">mysql_stmt_execute()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_stmt_affected_rows()</literal> works
         like <literal role="cfunc">mysql_num_rows()</literal>.

@@ -11036,8 +11039,8 @@
       <para>
         If the statement is an <literal role="stmt">UPDATE</literal>,
         <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal>, the total number of
-        changed, deleted, or inserted rows can be found by calling
+        <literal role="stmt">INSERT</literal>, the number of changed,
+        deleted, or inserted rows can be found by calling
         <literal role="cfunc">mysql_stmt_affected_rows()</literal>. If
         this is a statement such as
         <literal role="stmt">SELECT</literal> that generates a result

@@ -12225,9 +12228,7 @@
       </para>
 
       <para>
-        For the usage of
-        <literal role="cfunc">mysql_stmt_param_count()</literal>, refer
-        to the Example from <xref linkend="mysql-stmt-execute"/>.
+        See the Example in <xref linkend="mysql-stmt-execute"/>.
       </para>
 
     </section>


Modified: trunk/refman-5.4/apis-c.xml
===================================================================
--- trunk/refman-5.4/apis-c.xml	2010-06-11 18:19:06 UTC (rev 21186)
+++ trunk/refman-5.4/apis-c.xml	2010-06-11 18:19:13 UTC (rev 21187)
Changed blocks: 6, Lines Added: 23, Lines Deleted: 22; 4093 bytes

@@ -1587,13 +1587,14 @@
       </para>
 
       <para>
-        After executing a statement with
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
         <literal role="cfunc">mysql_query()</literal> or
-        <literal role="cfunc">mysql_real_query()</literal>, returns the
-        number of rows changed (for
-        <literal role="stmt">UPDATE</literal>), deleted (for
-        <literal role="stmt">DELETE</literal>), or inserted (for
-        <literal role="stmt">INSERT</literal>). For
+        <literal role="cfunc">mysql_real_query()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_affected_rows()</literal> works like
         <literal role="cfunc">mysql_num_rows()</literal>.

@@ -1633,7 +1634,8 @@
       </para>
 
 <programlisting>
-char *stmt = "UPDATE products SET cost=cost*1.25 WHERE group=10";
+char *stmt = "UPDATE products SET cost=cost*1.25
+              WHERE group=10";
 mysql_query(&amp;mysql,stmt);
 printf("%ld products updated",
        (long) mysql_affected_rows(&amp;mysql));

@@ -1650,10 +1652,10 @@
       </para>
 
       <para>
-        Note that when you use a <literal role="stmt">REPLACE</literal>
-        command, <literal role="cfunc">mysql_affected_rows()</literal>
-        returns 2 if the new row replaced an old row, because in this
-        case, one row was inserted after the duplicate was deleted.
+        When you use a <literal role="stmt">REPLACE</literal> command,
+        <literal role="cfunc">mysql_affected_rows()</literal> returns 2
+        if the new row replaced an old row, because in this case, one
+        row was inserted after the duplicate was deleted.
       </para>
 
       <para>

@@ -10220,12 +10222,13 @@
       </para>
 
       <para>
-        Returns the total number of rows changed, deleted, or inserted
-        by the last executed statement. May be called immediately after
-        <literal role="cfunc">mysql_stmt_execute()</literal> for
-        <literal role="stmt">UPDATE</literal>,
-        <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal> statements. For
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
+        <literal role="cfunc">mysql_stmt_execute()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_stmt_affected_rows()</literal> works
         like <literal role="cfunc">mysql_num_rows()</literal>.

@@ -10975,8 +10978,8 @@
       <para>
         If the statement is an <literal role="stmt">UPDATE</literal>,
         <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal>, the total number of
-        changed, deleted, or inserted rows can be found by calling
+        <literal role="stmt">INSERT</literal>, the number of changed,
+        deleted, or inserted rows can be found by calling
         <literal role="cfunc">mysql_stmt_affected_rows()</literal>. If
         this is a statement such as
         <literal role="stmt">SELECT</literal> that generates a result

@@ -12164,9 +12167,7 @@
       </para>
 
       <para>
-        For the usage of
-        <literal role="cfunc">mysql_stmt_param_count()</literal>, refer
-        to the Example from <xref linkend="mysql-stmt-execute"/>.
+        See the Example in <xref linkend="mysql-stmt-execute"/>.
       </para>
 
     </section>


Modified: trunk/refman-5.5/apis-c.xml
===================================================================
--- trunk/refman-5.5/apis-c.xml	2010-06-11 18:19:06 UTC (rev 21186)
+++ trunk/refman-5.5/apis-c.xml	2010-06-11 18:19:13 UTC (rev 21187)
Changed blocks: 6, Lines Added: 23, Lines Deleted: 22; 4093 bytes

@@ -1599,13 +1599,14 @@
       </para>
 
       <para>
-        After executing a statement with
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
         <literal role="cfunc">mysql_query()</literal> or
-        <literal role="cfunc">mysql_real_query()</literal>, returns the
-        number of rows changed (for
-        <literal role="stmt">UPDATE</literal>), deleted (for
-        <literal role="stmt">DELETE</literal>), or inserted (for
-        <literal role="stmt">INSERT</literal>). For
+        <literal role="cfunc">mysql_real_query()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_affected_rows()</literal> works like
         <literal role="cfunc">mysql_num_rows()</literal>.

@@ -1645,7 +1646,8 @@
       </para>
 
 <programlisting>
-char *stmt = "UPDATE products SET cost=cost*1.25 WHERE group=10";
+char *stmt = "UPDATE products SET cost=cost*1.25
+              WHERE group=10";
 mysql_query(&amp;mysql,stmt);
 printf("%ld products updated",
        (long) mysql_affected_rows(&amp;mysql));

@@ -1662,10 +1664,10 @@
       </para>
 
       <para>
-        Note that when you use a <literal role="stmt">REPLACE</literal>
-        command, <literal role="cfunc">mysql_affected_rows()</literal>
-        returns 2 if the new row replaced an old row, because in this
-        case, one row was inserted after the duplicate was deleted.
+        When you use a <literal role="stmt">REPLACE</literal> command,
+        <literal role="cfunc">mysql_affected_rows()</literal> returns 2
+        if the new row replaced an old row, because in this case, one
+        row was inserted after the duplicate was deleted.
       </para>
 
       <para>

@@ -10256,12 +10258,13 @@
       </para>
 
       <para>
-        Returns the total number of rows changed, deleted, or inserted
-        by the last executed statement. May be called immediately after
-        <literal role="cfunc">mysql_stmt_execute()</literal> for
-        <literal role="stmt">UPDATE</literal>,
-        <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal> statements. For
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
+        <literal role="cfunc">mysql_stmt_execute()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_stmt_affected_rows()</literal> works
         like <literal role="cfunc">mysql_num_rows()</literal>.

@@ -11011,8 +11014,8 @@
       <para>
         If the statement is an <literal role="stmt">UPDATE</literal>,
         <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal>, the total number of
-        changed, deleted, or inserted rows can be found by calling
+        <literal role="stmt">INSERT</literal>, the number of changed,
+        deleted, or inserted rows can be found by calling
         <literal role="cfunc">mysql_stmt_affected_rows()</literal>. If
         this is a statement such as
         <literal role="stmt">SELECT</literal> that generates a result

@@ -12356,9 +12359,7 @@
       </para>
 
       <para>
-        For the usage of
-        <literal role="cfunc">mysql_stmt_param_count()</literal>, refer
-        to the Example from <xref linkend="mysql-stmt-execute"/>.
+        See the Example in <xref linkend="mysql-stmt-execute"/>.
       </para>
 
     </section>


Modified: trunk/refman-6.0/apis-c.xml
===================================================================
--- trunk/refman-6.0/apis-c.xml	2010-06-11 18:19:06 UTC (rev 21186)
+++ trunk/refman-6.0/apis-c.xml	2010-06-11 18:19:13 UTC (rev 21187)
Changed blocks: 6, Lines Added: 23, Lines Deleted: 22; 4093 bytes

@@ -1599,13 +1599,14 @@
       </para>
 
       <para>
-        After executing a statement with
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
         <literal role="cfunc">mysql_query()</literal> or
-        <literal role="cfunc">mysql_real_query()</literal>, returns the
-        number of rows changed (for
-        <literal role="stmt">UPDATE</literal>), deleted (for
-        <literal role="stmt">DELETE</literal>), or inserted (for
-        <literal role="stmt">INSERT</literal>). For
+        <literal role="cfunc">mysql_real_query()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_affected_rows()</literal> works like
         <literal role="cfunc">mysql_num_rows()</literal>.

@@ -1645,7 +1646,8 @@
       </para>
 
 <programlisting>
-char *stmt = "UPDATE products SET cost=cost*1.25 WHERE group=10";
+char *stmt = "UPDATE products SET cost=cost*1.25
+              WHERE group=10";
 mysql_query(&amp;mysql,stmt);
 printf("%ld products updated",
        (long) mysql_affected_rows(&amp;mysql));

@@ -1662,10 +1664,10 @@
       </para>
 
       <para>
-        Note that when you use a <literal role="stmt">REPLACE</literal>
-        command, <literal role="cfunc">mysql_affected_rows()</literal>
-        returns 2 if the new row replaced an old row, because in this
-        case, one row was inserted after the duplicate was deleted.
+        When you use a <literal role="stmt">REPLACE</literal> command,
+        <literal role="cfunc">mysql_affected_rows()</literal> returns 2
+        if the new row replaced an old row, because in this case, one
+        row was inserted after the duplicate was deleted.
       </para>
 
       <para>

@@ -10528,12 +10530,13 @@
       </para>
 
       <para>
-        Returns the total number of rows changed, deleted, or inserted
-        by the last executed statement. May be called immediately after
-        <literal role="cfunc">mysql_stmt_execute()</literal> for
-        <literal role="stmt">UPDATE</literal>,
-        <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal> statements. For
+        Returns the number of rows changed, deleted, or inserted by the
+        last statement if it was an
+        <literal role="stmt">UPDATE</literal>),
+        <literal role="stmt">DELETE</literal>), or
+        <literal role="stmt">INSERT</literal>). May be called
+        immediately after executing a statement with
+        <literal role="cfunc">mysql_stmt_execute()</literal>. For
         <literal role="stmt">SELECT</literal> statements,
         <literal role="cfunc">mysql_stmt_affected_rows()</literal> works
         like <literal role="cfunc">mysql_num_rows()</literal>.

@@ -11293,8 +11296,8 @@
       <para>
         If the statement is an <literal role="stmt">UPDATE</literal>,
         <literal role="stmt">DELETE</literal>, or
-        <literal role="stmt">INSERT</literal>, the total number of
-        changed, deleted, or inserted rows can be found by calling
+        <literal role="stmt">INSERT</literal>, the number of changed,
+        deleted, or inserted rows can be found by calling
         <literal role="cfunc">mysql_stmt_affected_rows()</literal>. If
         this is a statement such as
         <literal role="stmt">SELECT</literal> that generates a result

@@ -12638,9 +12641,7 @@
       </para>
 
       <para>
-        For the usage of
-        <literal role="cfunc">mysql_stmt_param_count()</literal>, refer
-        to the Example from <xref linkend="mysql-stmt-execute"/>.
+        See the Example in <xref linkend="mysql-stmt-execute"/>.
       </para>
 
     </section>


Thread
svn commit - mysqldoc@docsrva: r21187 - in trunk: . refman-4.1 refman-5.0 refman-5.1 refman-5.4 refman-5.5 refman-6.0paul.dubois11 Jun