-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
bugfix: update executor store the actually modified columns but not only the columns in set
condition
#4253
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4253 +/- ##
=============================================
- Coverage 48.33% 48.33% -0.01%
- Complexity 3969 3973 +4
=============================================
Files 734 734
Lines 25279 25300 +21
Branches 3105 3109 +4
=============================================
+ Hits 12218 12228 +10
- Misses 11740 11748 +8
- Partials 1321 1324 +3
|
set
condition
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.
LGTM pr登记一下
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.
Which version of mysql are tested?
这个在驱动层面就是通过 |
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.
LGTM
@@ -115,7 +115,8 @@ private TableMeta resultSetMetaToSchema(ResultSetMetaData rsmd, DatabaseMetaData | |||
*/ | |||
|
|||
try (ResultSet rsColumns = dbmd.getColumns(catalogName, schemaName, tableName, "%"); | |||
ResultSet rsIndex = dbmd.getIndexInfo(catalogName, schemaName, tableName, false, true)) { | |||
ResultSet rsIndex = dbmd.getIndexInfo(catalogName, schemaName, tableName, false, true); | |||
ResultSet onUpdateColumns = dbmd.getVersionColumns(catalogName, schemaName, tableName)) { |
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.
Whether virtual columns are included ?
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
fixes #3822
fixes #3036
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews