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 2021/04/08 14:43:02 UTC
[GitHub] [shardingsphere] 307434169 opened a new issue #9996: Bug!!! syntax parser in version 4.1.1
307434169 opened a new issue #9996:
URL: https://github.com/apache/shardingsphere/issues/9996
### environment : sharding-jdbc-spring-boot-starter 4.1.1
### sql: update order_info set order_info.status=? where order_info.orderid=?
Exception in thread "main" org.apache.shardingsphere.underlying.common.exception.ShardingSphereException: Cannot support Multiple-Table for 'org.apache.shardingsphere.sql.parser.sql.statement.dml.UpdateStatement@6c56fff'.
at org.apache.shardingsphere.sharding.route.engine.type.standard.ShardingStandardRoutingEngine.route(ShardingStandardRoutingEngine.java:72)
at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:69)
at org.apache.shardingsphere.sharding.route.engine.ShardingRouteDecorator.decorate(ShardingRouteDecorator.java:53)
at org.apache.shardingsphere.underlying.route.DataNodeRouter.executeRoute(DataNodeRouter.java:91)
at org.apache.shardingsphere.underlying.route.DataNodeRouter.route(DataNodeRouter.java:76)
at org.apache.shardingsphere.underlying.pluggble.prepare.PreparedQueryPrepareEngine.route(PreparedQueryPrepareEngine.java:54)
at org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine.executeRoute(BasePrepareEngine.java:96)
at org.apache.shardingsphere.underlying.pluggble.prepare.BasePrepareEngine.prepare(BasePrepareEngine.java:83)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.prepare(ShardingPreparedStatement.java:183)
at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeUpdate(ShardingPreparedStatement.java:131)
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #9996: Bug!!! syntax parser in version 4.1.1
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #9996:
URL: https://github.com/apache/shardingsphere/issues/9996#issuecomment-815969947
Hi @307434169
Please show your sharding configurationĀ , logic SQL and actual SQL.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu commented on issue #9996: Bug!!! syntax parser in version 4.1.1
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #9996:
URL: https://github.com/apache/shardingsphere/issues/9996#issuecomment-816396940
@strongduanmu Please have a look, this issue seems resolved on 5.x version
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #9996: Bug!!! syntax parser in version 4.1.1
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #9996:
URL: https://github.com/apache/shardingsphere/issues/9996#issuecomment-817257492
@307434169 `Cannot support Multiple-Table` verification logic has been optimized in version 5.0.0-alpha. You can follow what @RaigorJiang said, use `update order_info set status=? where orderid=?` to avoid this exception.
During the investigation, I found an abnormality in the rewriting of the table in the set clause, and I will fix it soon.
```
[INFO ] 14:17:54.500 [ShardingSphere-Command-6] ShardingSphere-SQL - Logic SQL: /* ApplicationName=DataGrip 2021.1 */ UPDATE t_order SET t_order.content = '111111' WHERE t_order.order_id = 1
[INFO ] 14:17:54.500 [ShardingSphere-Command-6] ShardingSphere-SQL - SQLStatement: MySQLUpdateStatement(orderBy=Optional.empty, limit=Optional.empty)
[INFO ] 14:17:54.500 [ShardingSphere-Command-6] ShardingSphere-SQL - Actual SQL: ds_1 ::: /* ApplicationName=DataGrip 2021.1 */ UPDATE t_order_1 SET t_order.content = '111111' WHERE t_order_1.order_id = 1
[ERROR] 14:17:54.502 [ShardingSphere-Command-6] o.a.s.p.f.c.CommandExecutorTask - Exception occur:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 't_order.content' in 'field list'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero closed issue #9996: Bug!!! syntax parser in version 4.1.1
Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #9996:
URL: https://github.com/apache/shardingsphere/issues/9996
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #9996: Bug!!! syntax parser in version 4.1.1
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #9996:
URL: https://github.com/apache/shardingsphere/issues/9996#issuecomment-815971882
Maybe your SQL should be pithy, like:
update order_info set status=? where orderid=?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org