-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
Many error symbols not included #1924
Comments
Yes please. No specific reason, just not in sync with newer error codes added recentlyю First commit to errors.js is from 2013. |
Is anyone currently working on this issue? I'd be happy to help! |
@elimelt nothing in progress afaik, happy to review your PR |
I've thus far been able to update generate-error-constants.js (found in node mysql module) to work with the source code for MySQL 8.0, but a lot of the codes have either been marked as OBSOLETE, or have been changed entirely. It seems like it was already the approach to just remove the OBSOLETE tags on the error codes, so I went ahead and did that, but I am a little more reluctant to push changes that overwrite/change codes entirely. Although, since errors.js basically just serves as a lookup table, I doubt this will introduce any compatability issues accross the codebase. For now I will just include the most up-to-date error codes from the MySQL 8.0 source, and if the maintainers want to go a different direction then I'm happy to find an alternative solution upon review of my PR. Perhaps this would be maintaining a different verion of error.js depending on the version of MySQL one is using? |
@sidorares PR has been submitted! |
Fixed in version |
We noticed that a 3140: ER_INVALID_JSON_TEXT isn't included in https://github.com/sidorares/node-mysql2/blob/master/lib/constants/errors.js. Then we noticed a lot more error symbols aren't included. Is there a reason for this? Would you like a PR that includes the rest of the codes and symbols in https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html?
The text was updated successfully, but these errors were encountered: