Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document english-specific changedRows #1820

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,9 @@ connection.query('DELETE FROM posts WHERE title = "wrong"', function (error, res
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.
whose values were not changed. Note - this value is parsed from the server message and
expects 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) {
Expand Down