Skip to content

Commit

Permalink
docs: note that changedRows is English-only
Browse files Browse the repository at this point in the history
closes #1820
  • Loading branch information
jniles authored and dougwilson committed Sep 24, 2017
1 parent 170a06a commit d5161b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,10 @@ You can get the number of changed rows from an update statement.
"changedRows" differs from "affectedRows" in that it does not count updated rows
whose values were not changed.

**Note** this value is parsed from the server message and only works with an English
response. If your mysql server's install is in a different language, use
[affectedRows](#getting-the-number-of-affected-rows).

```js
connection.query('UPDATE posts SET ...', function (error, results, fields) {
if (error) throw error;
Expand Down

0 comments on commit d5161b9

Please sign in to comment.