lzbjut opened a new issue, #32283:
URL: https://github.com/apache/shardingsphere/issues/32283
## Bug Report
### Which version of ShardingSphere did you use?
5.1.2 and 5.4.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
get the query result
### Actual behavior
get the exception: You have an error in your SQL syntax
### Reason analyze (If you can)
when use reserved words in sql, whether use it directly or after dot
,shardingsphere-jdbc sql parser throw an exception,but the jdbc can support
after dot
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule
configuration, when exception occur etc.
select ruleitem0_.condition as conditio2_21_ from rule_item ruleitem0_ where
ruleitem0_.type=?
throws an exception:
Caused by:
org.apache.shardingsphere.sql.parser.exception.SQLParsingException: You have an
error in your SQL syntax
this is not consistent with the result when using jdbc instead
also this query can be execute on mysql server directly
### 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:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]