mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support EnterpriseDB.
This commit is contained in:
@@ -54,7 +54,7 @@ public class SQLParserUtils {
|
||||
}
|
||||
|
||||
if (JdbcUtils.POSTGRESQL.equals(dbType)
|
||||
|| JdbcUtils.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcUtils.ENTERPRISEDB.equals(dbType)) {
|
||||
return new PGSQLStatementParser(sql);
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SQLParserUtils {
|
||||
}
|
||||
|
||||
if (JdbcUtils.POSTGRESQL.equals(dbType)
|
||||
|| JdbcUtils.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcUtils.ENTERPRISEDB.equals(dbType)) {
|
||||
return new PGExprParser(sql);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ public class SQLParserUtils {
|
||||
}
|
||||
|
||||
if (JdbcUtils.POSTGRESQL.equals(dbType)
|
||||
|| JdbcUtils.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcUtils.ENTERPRISEDB.equals(dbType)) {
|
||||
return new PGLexer(sql);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public final class ExportParameterVisitorUtils {
|
||||
}
|
||||
|
||||
if (JdbcUtils.POSTGRESQL.equals(dbType)
|
||||
|| JdbcUtils.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcUtils.ENTERPRISEDB.equals(dbType)) {
|
||||
return new PGExportParameterVisitor(out);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLLiteralExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLNCharExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLNullExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLNumberExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLVariantRefExpr;
|
||||
import com.alibaba.druid.sql.ast.statement.SQLColumnDefinition;
|
||||
import com.alibaba.druid.sql.ast.statement.SQLSelectOrderByItem;
|
||||
@@ -91,7 +90,7 @@ public class ParameterizedOutputVisitorUtils {
|
||||
}
|
||||
|
||||
if (JdbcUtils.POSTGRESQL.equals(dbType)
|
||||
|| JdbcUtils.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcUtils.ENTERPRISEDB.equals(dbType)) {
|
||||
return new PGOutputVisitor(out, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ public class SQLEvalVisitorUtils {
|
||||
}
|
||||
|
||||
if (JdbcConstants.POSTGRESQL.equals(dbType)
|
||||
|| JdbcConstants.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcConstants.ENTERPRISEDB.equals(dbType)) {
|
||||
return new PGEvalVisitor();
|
||||
}
|
||||
|
||||
|
||||
@@ -89,6 +89,6 @@ public interface JdbcConstants {
|
||||
public static final String PHOENIX = "phoenix";
|
||||
public static final String PHOENIX_DRIVER = "org.apache.phoenix.jdbc.PhoenixDriver";
|
||||
|
||||
public static final String ENTERPRISE_DB = "edb";
|
||||
public static final String ENTERPRISE_DB_DRIVER = "com.edb.Driver";
|
||||
public static final String ENTERPRISEDB = "edb";
|
||||
public static final String ENTERPRISEDB_DRIVER = "com.edb.Driver";
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
} else if (rawUrl.startsWith("jdbc:postgresql:")) {
|
||||
return POSTGRESQL_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:edb:")) {
|
||||
return ENTERPRISE_DB_DRIVER;
|
||||
return ENTERPRISEDB_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:odps:")) {
|
||||
return ODPS_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:hsqldb:")) {
|
||||
@@ -482,7 +482,7 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
} else if (rawUrl.startsWith("jdbc:postgresql:") || rawUrl.startsWith("jdbc:log4jdbc:postgresql:")) {
|
||||
return POSTGRESQL;
|
||||
} else if (rawUrl.startsWith("jdbc:edb:")) {
|
||||
return ENTERPRISE_DB;
|
||||
return ENTERPRISEDB;
|
||||
} else if (rawUrl.startsWith("jdbc:hsqldb:") || rawUrl.startsWith("jdbc:log4jdbc:hsqldb:")) {
|
||||
return HSQL;
|
||||
} else if (rawUrl.startsWith("jdbc:odps:")) {
|
||||
|
||||
@@ -145,7 +145,7 @@ public class WallFilter extends FilterAdapter implements WallFilterMBean {
|
||||
|
||||
provider = new SQLServerWallProvider(config);
|
||||
} else if (JdbcUtils.POSTGRESQL.equals(dbType)
|
||||
|| JdbcUtils.ENTERPRISE_DB.equals(dbType)) {
|
||||
|| JdbcUtils.ENTERPRISEDB.equals(dbType)) {
|
||||
if (config == null) {
|
||||
config = new WallConfig(PGWallProvider.DEFAULT_CONFIG_DIR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user