Merge pull request #653 from zhoujh/master

WallFilter增加支持cobar driver
This commit is contained in:
高铁
2014-09-19 00:13:29 +08:00
@@ -360,8 +360,7 @@ public final class JdbcUtils implements JdbcConstants {
} else if (rawUrl.startsWith("jdbc:mariadb:")) {
return MARIADB_DRIVER;
} else if (rawUrl.startsWith("jdbc:oracle:") //
|| rawUrl.startsWith("JDBC:oracle:")
) {
|| rawUrl.startsWith("JDBC:oracle:")) {
return ORACLE_DRIVER;
} else if (rawUrl.startsWith("jdbc:alibaba:oracle:")) {
return ALI_ORACLE_DRIVER;
@@ -425,7 +424,7 @@ public final class JdbcUtils implements JdbcConstants {
if (rawUrl.startsWith("jdbc:derby:")) {
return DERBY;
} else if (rawUrl.startsWith("jdbc:mysql:")) {
} else if (rawUrl.startsWith("jdbc:mysql:") || rawUrl.startsWith("jdbc:cobar:")) {
return MYSQL;
} else if (rawUrl.startsWith("jdbc:log4jdbc:")) {
return LOG4JDBC;