poo0054 commented on issue #18927:
URL: 
https://github.com/apache/shardingsphere/issues/18927#issuecomment-1178616323

   I found that you replaced the Preparedstatement with your 
shardingspherepreparedstatement. The classbasedshardingalgorithm in it is 
stored in the shardingspherepreparedstatement. However, after the 
initialization of classbasedshardingalgorithm, it is stored in the bean of 
spring, and beandefinitionbuilder \genericbeandefinition is used to create 
beandefinitionbuilder. Then register
   I found that you replaced the Preparedstatement with your 
shardingspherepreparedstatement. The classbasedshardingalgorithm in it is 
stored in the shardingspherepreparedstatement. However, after the 
initialization of classbasedshardingalgorithm, it is stored in the bean of 
spring, and beandefinitionbuilder \genericbeandefinition is used to create 
beandefinitionbuilder. Then register. I'm a little curious about why we need to 
register here. Why don't we get the data source directly from beanfactory and 
put classbasedshardingalgorithm into it


-- 
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]

Reply via email to