-
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
optimize:add SQL exception of not supported by AT mode #4336
optimize:add SQL exception of not supported by AT mode #4336
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4336 +/- ##
=============================================
+ Coverage 48.43% 48.75% +0.32%
- Complexity 3862 3903 +41
=============================================
Files 733 733
Lines 24766 24829 +63
Branches 3002 3057 +55
=============================================
+ Hits 11995 12106 +111
+ Misses 11476 11444 -32
+ Partials 1295 1279 -16
|
...uid/src/main/java/io/seata/sqlparser/druid/postgresql/PostgresqlOperateRecognizerHolder.java
Outdated
Show resolved
Hide resolved
...eata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/oracle/BaseOracleRecognizer.java
Outdated
Show resolved
Hide resolved
sqlparser/seata-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/BaseRecognizer.java
Outdated
Show resolved
Hide resolved
https://seata.io/zh-cn/docs/user/sqlreference/sql-restrictions.html 文档里,大佬要不麻烦也给个样例sql。😄 |
...ta-sqlparser-druid/src/test/java/io/seata/sqlparser/druid/DruidSQLRecognizerFactoryTest.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
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
} | ||
|
||
@Override | ||
public boolean visit(SQLSubqueryTableSource x) { |
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.
for update ?
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.
That's right. And the example statement is to illustrate the scope of SQLSubqueryTableSource
Ⅰ. Describe what this PR did
添加AT模式不支持的SQL语句异常提示
Ⅱ. Does this pull request fix one issue?
fixes #4324
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews