Skip to content

Conversation

rustamwin
Copy link
Member

Q A
Is bugfix? ✔️/❌
New feature? ✔️/❌
Breaks BC? ✔️/❌
Fixed issues yiisoft/db#94

Copy link

codecov bot commented Aug 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.67%. Comparing base (f2d31b3) to head (dd20ff1).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Tigrov Tigrov left a 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

Comment on lines 72 to 74
/**
* MySQL does not support UPDATE ... FROM ...
*/
Copy link
Member

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants