add SQL_SERVER 以及JDBC通用类型

Raod 3 years ago
parent adafb47b09
commit 82f9e0bcab

@ -96,6 +96,8 @@ public class DataSourceServiceImpl implements DataSourceService {
case JdbcConstants.MYSQL:
case JdbcConstants.KUDU_IMAPLA:
case JdbcConstants.ORACLE:
case JdbcConstants.SQL_SERVER:
case JdbcConstants.JDBC:
testRelationalDb(dto);
break;
case JdbcConstants.HTTP:
@ -118,6 +120,8 @@ public class DataSourceServiceImpl implements DataSourceService {
case JdbcConstants.MYSQL:
case JdbcConstants.KUDU_IMAPLA:
case JdbcConstants.ORACLE:
case JdbcConstants.SQL_SERVER:
case JdbcConstants.JDBC:
return executeRelationalDb(dto);
case JdbcConstants.HTTP:
return executeHttp(dto);

@ -12,8 +12,8 @@ public class JdbcConstants {
public final static String MYSQL = "mysql";
public final static String ORACLE = "oracle";
public final static String ELASTIC_SEARCH_SQL = "elasticsearch_sql";
public final static String SQL_SERVER = "mssqlserver";
public final static String JDBC = "jdbc";
@ -25,7 +25,6 @@ public class JdbcConstants {
public final static String POSTGRESQL = "postgresql";
public final static String POSTGRESQL_DRIVER = "org.postgresql.Driver";
public final static String SYBASE = "sybase";
public final static String SQL_SERVER = "sqlserver";
public final static String SQL_SERVER_DRIVER = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
public final static String SQL_SERVER_DRIVER_SQLJDBC4 = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
public final static String SQL_SERVER_DRIVER_JTDS = "net.sourceforge.jtds.jdbc.Driver";

Loading…
Cancel
Save