-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove php_pdo_mysql_sqlstate.h #10363
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
Conversation
This reverts commit 91227c5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I have absolutely no idea what this file was for. I can't find the history in Git now. Maybe the original authors would know. The file is pretty ancient but it was modified 11 years ago. |
As I understand it: get_error_codes.php is just a script to generate php_pdo_mysql_sqlstate.h with all MySQL error codes. From Git history, this was done for PHP 5. I looked in the project and found no use for php_pdo_mysql_sqlstate.h, it doesn't call anywhere. What do you think we remove it and see if it implies anything? |
Indeed. And it does so from On the other hand, it seems that php_pdo_mysqlstate.h is unused, so it should be removed as well (plus its mention in CONTRIBUTING.md). |
Also, no idea how to get sql_state.h as this file doesn't seem to be available anymore and I could not find any trace of it online. |
I found it here; but like I said, if php_pdo_mysqlstate.h is unused, we don't need a script to keep it up to date. |
@cmb69 I removed the files and updated CONTRIBUTING.md. Check if it's what you want. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that looks good to me. Thank you!
Is this fine for you, too, @kamil-tekiela?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it looks good.
Thanks for the direction! @cmb69 @kamil-tekiela |
No description provided.