-
-
Notifications
You must be signed in to change notification settings - Fork 40
Add ability to pass FROM
clause to UPDATE
command
#1038
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1038 +/- ##
=========================================
Coverage 98.41% 98.41%
- Complexity 1644 1647 +3
=========================================
Files 117 117
Lines 4344 4353 +9
=========================================
+ Hits 4275 4284 +9
Misses 69 69 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
And needs to fix |
Also needs to add tests with execution. Not all DBMS support Copy tests from |
return [$uniqueNames, $insertNames, null]; | ||
} | ||
|
||
protected function prepareFromTables(array|ExpressionInterface|string $from): array |
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.
This method identical to Query::from()
. Can we remove duplicates?
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, we can but we need to refactor a bit.
# Conflicts: # src/Command/AbstractCommand.php
Co-authored-by: Sergei Predvoditelev <[email protected]>
Related PRs
yiisoft/db
changes db-migration#299yiisoft/db
changes active-record#447