diff --git a/report-core/lib/postgresql/postgresql-9.4.1212.jre7.jar b/report-core/lib/postgresql/postgresql-9.4.1212.jre7.jar new file mode 100644 index 00000000..36c01b55 Binary files /dev/null and b/report-core/lib/postgresql/postgresql-9.4.1212.jre7.jar differ diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/service/impl/DataSourceServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/service/impl/DataSourceServiceImpl.java index 5ce0ae78..48c7d80f 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/service/impl/DataSourceServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/service/impl/DataSourceServiceImpl.java @@ -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); diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/util/JdbcConstants.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/util/JdbcConstants.java index 94e945ec..0d2febe5 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/util/JdbcConstants.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/util/JdbcConstants.java @@ -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";