添加postgresql驱动,待生效

qianming 3 years ago
parent 0eb80fee6e
commit 37cb631080

@ -98,6 +98,7 @@ public class DataSourceServiceImpl implements DataSourceService {
case JdbcConstants.ORACLE:
case JdbcConstants.SQL_SERVER:
case JdbcConstants.JDBC:
case JdbcConstants.POSTGRESQL:
testRelationalDb(dto);
break;
case JdbcConstants.HTTP:
@ -122,6 +123,7 @@ public class DataSourceServiceImpl implements DataSourceService {
case JdbcConstants.ORACLE:
case JdbcConstants.SQL_SERVER:
case JdbcConstants.JDBC:
case JdbcConstants.POSTGRESQL:
return executeRelationalDb(dto);
case JdbcConstants.HTTP:
return executeHttp(dto);

@ -14,7 +14,7 @@ public class JdbcConstants {
public final static String ELASTIC_SEARCH_SQL = "elasticsearch_sql";
public final static String SQL_SERVER = "mssqlserver";
public final static String JDBC = "jdbc";
public final static String POSTGRESQL = "postgresql";
public final static String JTDS = "jtds";
@ -22,7 +22,6 @@ public class JdbcConstants {
public final static String HSQL = "hsql";
public final static String DB2 = "db2";
public final static String DB2_DRIVER = "COM.ibm.db2.jdbc.app.DB2Driver";
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_DRIVER = "com.microsoft.jdbc.sqlserver.SQLServerDriver";

Loading…
Cancel
Save