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 2019/09/01 02:14:31 UTC

[GitHub] [incubator-shardingsphere] terrymanu commented on a change in pull request #2949: 4.0.0-RC2 does not support Oracle 12C connection configuration #2911

terrymanu commented on a change in pull request #2949: 4.0.0-RC2 does not support Oracle 12C connection configuration #2911
URL: https://github.com/apache/incubator-shardingsphere/pull/2949#discussion_r319741301
 
 

 ##########
 File path: sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/metadata/datasource/dialect/OracleDataSourceMetaData.java
 ##########
 @@ -40,16 +40,24 @@
     private final int port;
     
     private final String schemaName;
-    
-    private final Pattern pattern = Pattern.compile("jdbc:oracle:(thin|oci|kprb):@(//)?([\\w\\-\\.]+):?([0-9]*)[:/]([\\w\\-]+)", Pattern.CASE_INSENSITIVE);
-    
+    //modify by chenty 20190823  to support oracle 12c config like jdbc:oracle:thin:@127.0.0.1:11521/camp2.xxx.com
+    private final Pattern pattern = Pattern.compile("jdbc:oracle:(thin|oci|kprb):@(//)?([\\w\\-\\.]+):?([0-9]*)[:/]([\\w\\-\\.]+)", Pattern.CASE_INSENSITIVE);
+    //modify by chenty 20190822 to support oracle rac config
     public OracleDataSourceMetaData(final String url) {
         Matcher matcher = pattern.matcher(url);
-        if (!matcher.find()) {
+        if(matcher.find()){
 
 Review comment:
   Please run checkstyle to make sure your codes are format well

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


With regards,
Apache Git Services