@ -52,8 +52,8 @@ public class JDBCDefPane extends JPanel {
public static final String DRIVER_TYPE = "driver_type" ;
public static final String DRIVER_TYPE = "driver_type" ;
public static final String USER_NAME = "user_name" ;
public static final String USER_NAME = "user_name" ;
private static final String OTHER_DB = "Others" ;
private static final String OTHER_DB = "Others" ;
private static final Pattern ORACLE_URL = Pattern . compile ( "^jdbc:oracle:thin:@[/]*([-0-9a-zA-Z_\\.]+)(:([0-9]+|port))?([:/](.*))?.*" , Pattern . CASE_INSENSITIVE ) ;
private static final Pattern ORACLE_URL = Pattern . compile ( "^jdbc:oracle:thin:@[/]*([-0-9a-zA-Z_\\.\\\\ ]+)(:([0-9]+|port))?([:/](.*))?.*" , Pattern . CASE_INSENSITIVE ) ;
private static final Pattern GENERAL_URL = Pattern . compile ( "^jdbc:(mysql|sqlserver|db2|derby|postgresql|inceptor|inceptor2|hive2)://([-0-9a-zA-Z_\\.]+)(:([0-9]+|port))?((/|;DatabaseName=)(.*))?.*" , Pattern . CASE_INSENSITIVE ) ;
private static final Pattern GENERAL_URL = Pattern . compile ( "^jdbc:(mysql|sqlserver|db2|derby|postgresql|inceptor|inceptor2|hive2)://([-0-9a-zA-Z_\\.\\\\ ]+)(:([0-9]+|port))?((/|;DatabaseName=)(.*))?.*" , Pattern . CASE_INSENSITIVE ) ;
private static final Pattern PORT = Pattern . compile ( "^0$|^[1-9][\\d]*[\\d]*$" ) ;
private static final Pattern PORT = Pattern . compile ( "^0$|^[1-9][\\d]*[\\d]*$" ) ;
private static final Pattern CHAR_NEED_ESCAPE = Pattern . compile ( "[?|$^*\\\\\\[\\](){}.+]" ) ;
private static final Pattern CHAR_NEED_ESCAPE = Pattern . compile ( "[?|$^*\\\\\\[\\](){}.+]" ) ;
// 编码转换.
// 编码转换.