strongduanmu commented on code in PR #20114:
URL: https://github.com/apache/shardingsphere/pull/20114#discussion_r945109983


##########
shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-core/src/main/java/org/apache/shardingsphere/transaction/core/ResourceDataSource.java:
##########
@@ -34,8 +35,10 @@ public final class ResourceDataSource {
     private final DataSource dataSource;
     
     public ResourceDataSource(final String originalName, final DataSource 
dataSource) {
+        final String[] databaseAndDataSourceName = originalName.split("\\.");

Review Comment:
   Please remove final here.



##########
shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-core/src/main/java/org/apache/shardingsphere/transaction/ConnectionTransaction.java:
##########
@@ -46,6 +48,7 @@ public ConnectionTransaction(final String databaseName, final 
TransactionRule ru
     }
     
     public ConnectionTransaction(final String databaseName, final 
TransactionType transactionType, final TransactionRule rule) {
+        this.databaseName = databaseName;

Review Comment:
   Should databaseName be extracted from 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to