You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/06/29 05:41:33 UTC

[GitHub] [shardingsphere] jiangML opened a new issue, #18680: The OracleParserStatementExample in the example executes an error

jiangML opened a new issue, #18680:
URL: https://github.com/apache/shardingsphere/issues/18680

   ## Bug Report
   ### Which version of ShardingSphere did you use?
    master
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
    OracleParserStatementExample in the example 
   ### Expected behavior
   run successfully
   ### Actual behavior
   ```
   Exception in thread "main" org.apache.shardingsphere.sql.parser.exception.SQLParsingException: You have an error in your SQL syntax
   	at org.apache.shardingsphere.sql.parser.core.database.parser.SQLParserExecutor.twoPhaseParse(SQLParserExecutor.java:65)
   	at org.apache.shardingsphere.sql.parser.core.database.parser.SQLParserExecutor.parse(SQLParserExecutor.java:46)
   	at org.apache.shardingsphere.sql.parser.api.SQLParserEngine.parse(SQLParserEngine.java:47)
   	at org.apache.shardingsphere.example.parser.oracle.statement.OracleParserStatementExample.lambda$main$0(OracleParserStatementExample.java:58)
   	at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
   	at org.apache.shardingsphere.example.parser.oracle.statement.OracleParserStatementExample.main(OracleParserStatementExample.java:55)
   ```
   
   ### Reason analyze (If you can)
   Question statement: "SELECT t.id, t.name, t.age FROM table1 AS t ORDER BY t.id DESC;"
   Oracle table alias does not support "AS"
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] terrymanu commented on issue #18680: The OracleParserStatementExample in the example executes an error

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #18680:
URL: https://github.com/apache/shardingsphere/issues/18680#issuecomment-1170647343

   This bug is not for example, but oracle parser.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] terrymanu closed issue #18680: The OracleParserStatementExample in the example executes an error

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #18680: The OracleParserStatementExample in the example executes an error
URL: https://github.com/apache/shardingsphere/issues/18680


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org