-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add test for Mysqli\Result
#5917
Conversation
9555f22
to
869c1a4
Compare
a653fa0
to
9be0b17
Compare
3a90891
to
366bdfe
Compare
I'm not really sure what is the purpose of that test. To me, it looks like we're asserting internal behavior of the MySQLi extension. |
IMO, the purpose of this test is to ensure the behavior of the |
There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
IMO, this is still relevant. |
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.
So mysqli has the behaviour to have a rowcount of -1 when something went wrong and this is a first step to cover such a case for the future of letting $result->rowCount()
return only 0 or a positive integer in the future? I'm not sure I understand why this is in a separate PR.
This test is provided in a separate PR because the behavior was not previously covered, and I think this is relevant regardless the merge of #5915. See #5915 (comment). |
366bdfe
to
ab4985a
Compare
ab4985a
to
f2c37f3
Compare
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.
I'm still not comfortable with that test tbh. But I'm fine merging it after some changes.
bad8621
to
224ec4e
Compare
e92916e
to
dee5100
Compare
dee5100
to
e84c19b
Compare
e84c19b
to
3cd3105
Compare
Summary
This test is required in order to confirm cases like
Result::rowCount()
returning -1.Related to #5915, #4880, #4870.
To-Do