Skip to content
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

feature: support for undo full data columns on update operate #2509

Merged
merged 8 commits into from
May 3, 2020
Merged

feature: support for undo full data columns on update operate #2509

merged 8 commits into from
May 3, 2020

Conversation

slievrly
Copy link
Member

@slievrly slievrly commented Apr 3, 2020

Signed-off-by: slievrly slievrly@163.com

Ⅰ. Describe what this PR did

bugfix: fix update only care about update columns

Ⅱ. Does this pull request fix one issue?

fix #2502 #2541

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: slievrly <slievrly@163.com>
for (String updateColumn : updateColumns) {
selectSQLJoin.add(updateColumn);
for (String column : tableMeta.getAllColumns().keySet()) {
selectSQLJoin.add(column);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Columns from tableMeta, need to deal with keyword

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great found, fixed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solve update times cloumn

@slievrly
Copy link
Member Author

slievrly commented Apr 7, 2020

image

Signed-off-by: slievrly <slievrly@163.com>
@codecov-io
Copy link

codecov-io commented Apr 7, 2020

Codecov Report

Merging #2509 into develop will decrease coverage by 0.03%.
The diff coverage is 53.06%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2509      +/-   ##
=============================================
- Coverage      51.24%   51.20%   -0.04%     
  Complexity      2819     2819              
=============================================
  Files            556      556              
  Lines          17807    17829      +22     
  Branches        2102     2109       +7     
=============================================
+ Hits            9125     9130       +5     
- Misses          7820     7833      +13     
- Partials         862      866       +4     
Impacted Files Coverage Δ Complexity Δ
...ava/io/seata/core/constants/ConfigurationKeys.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...in/java/io/seata/core/constants/DefaultValues.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...utoconfigure/properties/client/UndoProperties.java 47.05% <25.00%> (-6.79%) 4.00 <0.00> (ø)
.../seata/rm/datasource/exec/MultiUpdateExecutor.java 76.92% <50.00%> (-8.38%) 13.00 <1.00> (+1.00) ⬇️
...va/io/seata/rm/datasource/exec/UpdateExecutor.java 82.45% <60.00%> (-13.10%) 12.00 <1.00> (+1.00) ⬇️
...o/seata/server/coordinator/DefaultCoordinator.java 54.63% <0.00%> (-0.52%) 28.00% <0.00%> (-1.00%)
...in/java/io/seata/server/session/GlobalSession.java 83.71% <0.00%> (-0.46%) 71.00% <0.00%> (-1.00%)
.../io/seata/common/loader/EnhancedServiceLoader.java 66.84% <0.00%> (ø) 8.00% <0.00%> (ø%)
...a/sqlparser/druid/mysql/MySQLDeleteRecognizer.java 100.00% <0.00%> (+21.05%) 6.00% <0.00%> (ø%)

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjinlei zjinlei added this to the 1.2.0 milestone Apr 10, 2020
@slievrly slievrly modified the milestones: 1.2.0, 1.3.0 Apr 12, 2020
@jsbxyyx
Copy link
Member

jsbxyyx commented Apr 17, 2020

Whether to add the enable the function flag?

@slievrly slievrly changed the title bugfix: fix update only care about update columns feature: support for undo full data columns on update operate Apr 27, 2020
Signed-off-by: slievrly <slievrly@163.com>
Copy link
Member

@jsbxyyx jsbxyyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjinlei zjinlei merged commit e373700 into apache:develop May 3, 2020
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.

get before image not correctly when column is on update current_timestamp
6 participants