You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2022/02/09 11:52:14 UTC

[shardingsphere] branch master updated: Fix : fix the SingleSpaceSeparator (#15323)

This is an automated email from the ASF dual-hosted git repository.

duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new eab388f  Fix : fix the SingleSpaceSeparator (#15323)
eab388f is described below

commit eab388fc4296ff177f1212b2a13038bdac3dbbe9
Author: 孙念君 Sun Nianjun <su...@sphere-ex.com>
AuthorDate: Wed Feb 9 19:51:12 2022 +0800

    Fix : fix the SingleSpaceSeparator (#15323)
---
 .../xa/narayana/config/NarayanaConfigurationFileGenerator.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-type/shardingsphere-transaction-xa/shardingsphere-transaction-xa-provider/shardingsphere-transaction-xa-narayana/src/main/java/org/apache/shardingsphere/transaction/xa/narayana/config/NarayanaConfigurationFileGenerator.java b/shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-type/shardingsphere-transaction-xa/shardingsphere-transaction-xa-provider/shardingsphere-transaction-x [...]
index 89b7a8e..6f6a864 100644
--- a/shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-type/shardingsphere-transaction-xa/shardingsphere-transaction-xa-provider/shardingsphere-transaction-xa-narayana/src/main/java/org/apache/shardingsphere/transaction/xa/narayana/config/NarayanaConfigurationFileGenerator.java
+++ b/shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-type/shardingsphere-transaction-xa/shardingsphere-transaction-xa-provider/shardingsphere-transaction-xa-narayana/src/main/java/org/apache/shardingsphere/transaction/xa/narayana/config/NarayanaConfigurationFileGenerator.java
@@ -101,7 +101,7 @@ public final class NarayanaConfigurationFileGenerator implements TransactionConf
         String password = transactionRule.getProps().getProperty("password");
         String databaseName = transactionRule.getProps().getProperty("databaseName");
         if (null != host && null != port && null != user && null != password && null != databaseName) {
-            String jdbcAccessPatten =  DynamicDataSourceJDBCAccess.class.getName() + "ClassName=com.mysql.cj.jdbc.MysqlDataSource;URL=jdbc:mysql://%s:%d/%s;User=%s;Password=%s";
+            String jdbcAccessPatten = DynamicDataSourceJDBCAccess.class.getName() + "ClassName=com.mysql.cj.jdbc.MysqlDataSource;URL=jdbc:mysql://%s:%d/%s;User=%s;Password=%s";
             String jdbcAccess = String.format(jdbcAccessPatten, host, port, databaseName, user, password);
             config.put("ObjectStoreEnvironmentBean.objectStoreType", JDBCStore.class.getName());
             config.put("ObjectStoreEnvironmentBean.jdbcAccess", jdbcAccess);