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

Oracle SQL syntax parsing failed #34667

Open
TianWanMing opened this issue Feb 14, 2025 · 0 comments
Open

Oracle SQL syntax parsing failed #34667

TianWanMing opened this issue Feb 14, 2025 · 0 comments

Comments

@TianWanMing
Copy link

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

5.5.1

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Expected behavior

Actual behavior

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Parsing the sql

Example codes for reproduce this issue (such as a github link).

String sql = "SELECT B.* FROM (SELECT A.* FROM (SELECT * FROM ACT_DEPLOY_FORM WHERE FORM_KEY= 1) AS A) AS B";
CacheOption cacheOption = new CacheOption(128, 1024L);
SQLParserEngine parserEngine = new SQLParserEngine("Oracle", cacheOption);
ParseASTNode parseASTNode = parserEngine.parse(sql, true);
SQLStatementVisitorEngine sqlVisitorEngine = new SQLStatementVisitorEngine("Oracle");
SQLStatement sqlStatement = sqlVisitorEngine.visit(parseASTNode);

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

No branches or pull requests

1 participant