You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2024/10/18 08:49:53 UTC
[I] Unknown column in 'on clause' exception occurs when mysql join have duplicate table aliases [shardingsphere]
strongduanmu opened a new issue, #33302:
URL: https://github.com/apache/shardingsphere/issues/33302
## Bug Report
### Which version of ShardingSphere did you use?
022baef
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
All
### Expected behavior
Execute sql successfully
### Actual behavior
<img width="1430" alt="image" src="https://github.com/user-attachments/assets/95ea8498-7466-4d6f-a64f-117650dcbce2">
### Reason analyze (If you can)
When Column Binder is executed, the corresponding columns of the table in tableBinderContexts are retrieved. When multiple tables in one SQL use the same alias, overlap may occur. Therefore, it needs to be transformed into Multimap. When the alias is repeated, it is searched from the value collection.
### 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
Re: [I] Unknown column in 'on clause' exception occurs when mysql join have duplicate table aliases [shardingsphere]
Posted by "FlyingZC (via GitHub)" <gi...@apache.org>.
FlyingZC closed issue #33302: Unknown column in 'on clause' exception occurs when mysql join have duplicate table aliases
URL: https://github.com/apache/shardingsphere/issues/33302
--
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