-
-
Notifications
You must be signed in to change notification settings - Fork 15
Adapt to db changes #422
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
base: master
Are you sure you want to change the base?
Adapt to db changes #422
Conversation
rustamwin
commented
Aug 20, 2025
Q | A |
---|---|
Is bugfix? | ✔️/❌ |
New feature? | ✔️/❌ |
Breaks BC? | ✔️/❌ |
Fixed issues | yiisoft/db#94 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #422 +/- ##
=========================================
Coverage 98.67% 98.67%
- Complexity 248 250 +2
=========================================
Files 24 24
Lines 753 757 +4
=========================================
+ Hits 743 747 +4
Misses 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
MySQL does not support FROM clause in UPDATE query. It should generate UPDATE table1, table2, ...
query instead
# Conflicts: # tests/Provider/QueryBuilderProvider.php
src/DMLQueryBuilder.php
Outdated
/** | ||
* MySQL does not support UPDATE ... FROM ... | ||
*/ |
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.
It supports using another syntax
UPDATE table_name, table_from SET table_name.field=table_from.field
Added exceptions in Oracle, MySQL, and SQL Server query builders to explicitly throw errors if the FROM clause is used in an UPDATE statement. This ensures clarity and avoids unexpected behavior in unsupported scenarios.