Skip to content

Commit

Permalink
Reword explanation of rowCount (php#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-tekiela authored and claudepache committed Jun 1, 2023
1 parent a01f665 commit e195271
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions reference/pdo/pdostatement/rowcount.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
executed by the corresponding <literal>PDOStatement</literal> object.
</para>
<para>
If the last SQL statement executed by the associated
<literal>PDOStatement</literal> was a SELECT statement, some databases
may return the number of rows returned by that statement. However, this
For statements that produce result sets, such as <literal>SELECT</literal>,
the behavior is undefined and can be different for each driver.
Some databases may return the number of rows produced by that statement
(e.g. MySQL in buffered mode), but this
behaviour is not guaranteed for all databases and should not be relied
on for portable applications.
</para>
Expand Down

0 comments on commit e195271

Please sign in to comment.