-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: [MySQLi] add config to use MYSQLI_OPT_INT_AND_FLOAT_NATIVE #7265
Conversation
…FLOAT_NATIVE needs to be used.
@michalsn |
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.
In general, it looks good, thanks.
We would need some tests for this feature to ensure it works. You can see how you can change the database config when you write your tests here: https://github.com/codeigniter4/CodeIgniter4/blob/develop/tests/system/Database/Live/ConnectTest.php#L33 We should have some sample data in the database already that you can use for the sample query - you don't need to create a new table etc.
Finally, we need the user guide to be updated - other users have to know there is this new feature that they can use. Please add the description for this config option here: https://github.com/codeigniter4/CodeIgniter4/blob/develop/user_guide_src/source/database/configuration.rst (a table with all option is at the end).
About the user guide. Please add this enhancement in the v4.4.0 changelog, too. |
…LI_OPT_INT_AND_FLOAT_NATIVE is enabled or not.
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.
Adding markTestSkipped()
should cover all failed database tests.
Please check out the other failed tests - the descriptions are quite self-explanatory:
…Li's isset judgment for numberNative.
…/source/database/configuration.rst.
Sorry, @michalsn , I don't quite understand how to fix this error. |
@kai890707 Please do not use |
@kai890707 Just run |
Oh, I'm sorry.
Okay, thanks for the answer. |
…ion in user_guide_src/source/changelogs/v4.4.0.rst.
…urce/changelogs/v4.4.0.rst.
…ive attribute from the $test array in app/Config/Database.php
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.
Good job. Thanks!
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.
LGTM!
@kai890707 Thank you! |
Supersedes #7260
Description
See #7259
Checklist: