-
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: support where condition exists for Oracle #1914
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1914 +/- ##
============================================
- Coverage 55.33% 55.3% -0.03%
+ Complexity 2405 2402 -3
============================================
Files 428 428
Lines 14361 14347 -14
Branches 1694 1688 -6
============================================
- Hits 7947 7935 -12
Misses 5697 5697
+ Partials 717 715 -2
|
@@ -50,6 +57,20 @@ public BaseRecognizer(String originalSQL) { | |||
|
|||
} | |||
|
|||
public void excuteVisit(SQLExpr where, SQLASTVisitor visitor) { |
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.
Please change the name to executeVisit()
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.
fixed
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. Test passed.
Test Case
update account_tbl a set money = money - ?
where exists ( select 1 from order_tbl o where a.user_id = o.user_id and o.user = ?)
update account_tbl a set money = money - ?
where not exists ( select 1 from order_tbl o where a.user_id = o.user_id and o.user = ?)
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
support where condition exists for Oracle
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews