-
Notifications
You must be signed in to change notification settings - Fork 521
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
fix possible extra comma before where statement in MySQL backend #1924
Conversation
fix #1923 Change-Id: I095311942c3633a5978930e35fecd9fd47b08796
Change-Id: I6ece79c77dde6f1e514f9a3475f6d4b59c3e0de6
Codecov Report
@@ Coverage Diff @@
## master #1924 +/- ##
============================================
+ Coverage 70.48% 70.49% +0.01%
+ Complexity 976 724 -252
============================================
Files 452 452
Lines 38982 38980 -2
Branches 5554 5554
============================================
+ Hits 27477 27480 +3
+ Misses 8810 8805 -5
Partials 2695 2695
Continue to review full report at Codecov.
|
for (HugeKeys key : entry.columns().keySet()) { | ||
if (idNames.contains(key)) { | ||
size--; |
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.
note: the id key may be the last key
update.append(", "); | ||
} | ||
update.append(formatKey(key)); | ||
update.append("=?"); |
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.
could add a uri example to diff the logic
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.
SQL example:
UPDATE il SET INDEX_TYPE=21, FIELDS='[76]', STATUS=4, USER_DATA='xx', BASE_VALUE=16, NAME='personByAge', BASE_TYPE=1, WHERE ID=1
=>
UPDATE il SET INDEX_TYPE=21, FIELDS='[76]', STATUS=4, USER_DATA='xx', BASE_VALUE=16, NAME='personByAge', BASE_TYPE=1 WHERE ID=1
fix #1923
Change-Id: I095311942c3633a5978930e35fecd9fd47b08796