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
changedRows is English language-specific #1819
Comments
This commit documents that `changedRows` is dependent on parsing the server message and is English-specific. Closes mysqljs#1819.
This commit documents that `changedRows` is dependent on parsing the server message and is English-specific. Closes mysqljs#1819.
Ideally if it can be modified to support all languages that would be much better than a doc change. Docs can be easily overlooked and of course just working right is better anyway :) |
That sounds like the best solution. In light of #1819 (comment), would you like me to close #1820? |
I can still merge the docs change, and keep this open for tracking getting it to actually work for all the languages. |
Here is the translation strings from 5.7.17 for the message:
|
It looks like it's the only message that would match the language-neutral pattern |
Ok, so looks like that regular expression seems to work fine. If you want to try it out before the next release, you can use the instructions at https://github.com/mysqljs/mysql#install to install the |
Awesome! I'll give it a whirl and comment back when we have some results. |
The
changeRows
property is set from a regex that assumes an English language message response. This functionality breaks in multi language environments. For example, a French installation of MySQL will returnmodifié
, which will be not be caught by the regex.In my view, there are two solutions:
affectedRows
instead.For further relevant information, see the discussion in #251 which pointed me to the
changedRows
property.The text was updated successfully, but these errors were encountered: