-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Restore Query::one interface #798
Conversation
darkdef
commented
Jan 21, 2024
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ✔️ |
Breaks BC? | ✔️/❌ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #798 +/- ##
=========================================
Coverage 99.61% 99.61%
Complexity 1372 1372
=========================================
Files 74 74
Lines 3362 3362
=========================================
Hits 3349 3349
Misses 13 13 ☔ View full report in Codecov by Sentry. |
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.
BatchQueryResult::$value
and related methods also should have the type array|object|null
db/src/Query/BatchQueryResult.php
Line 43 in ef81e8b
private mixed $value; |
PR Summary
|
It's maybe incorrect for query with one column as scalar type. |
This should be an array or object ($row) or array of arrays or objects ($rows) or null, but seems this is not related with the PR. db/src/Query/BatchQueryResult.php Line 103 in ef81e8b
db/src/Command/AbstractCommand.php Lines 425 to 429 in ef81e8b
And after custom populate closure db/src/Query/BatchQueryResult.php Lines 108 to 110 in ef81e8b
|
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.
Needs line to changelog
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.
Do we need also fix type of CommandInterface::queryAll()
?
And fill |
Currently it looks excessive and needs refactoring |