-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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: fix undo_log id repeat #4985
Conversation
release 0.5.2
Release 0.6.1
release 0.7.1
release 0.8.0
[release] release 1.0.0
release 1.2.0
[release]: release for 1.4.0
Signed-off-by: slievrly <slievrly@163.com>
Signed-off-by: slievrly <slievrly@163.com>
release: release 1.5.0
Signed-off-by: slievrly <slievrly@163.com>
release: release for 1.5.2
@@ -91,6 +91,9 @@ private String buildBeforeImageSQL(TableMeta tableMeta, ArrayList<List<Object>> | |||
suffix.append(" FOR UPDATE"); | |||
StringJoiner selectSQLJoin = new StringJoiner(", ", prefix.toString(), suffix.toString()); | |||
if (ONLY_CARE_UPDATE_COLUMNS) { | |||
for (String updateColumn : updateColumns) { |
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.
Why not handle it in SQLUpdateRecognizer#getUpdateColumns
rm-datasource/src/main/java/io/seata/rm/datasource/exec/BaseTransactionalExecutor.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #4985 +/- ##
=============================================
- Coverage 48.77% 48.58% -0.20%
+ Complexity 4078 4045 -33
=============================================
Files 734 732 -2
Lines 25855 25773 -82
Branches 3190 3173 -17
=============================================
- Hits 12610 12521 -89
- Misses 11901 11916 +15
+ Partials 1344 1336 -8
|
sqlparser/seata-sqlparser-core/src/main/java/io/seata/sqlparser/SQLInsertRecognizer.java
Outdated
Show resolved
Hide resolved
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
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
Ⅰ. Describe what this PR did
fix undo_log id repeat
Ⅱ. Does this pull request fix one issue?
#4949
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews