mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved support for hive-jdbc
This commit is contained in:
@@ -424,6 +424,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return JdbcConstants.KINGBASE_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:hive:")) {
|
||||
return JdbcConstants.HIVE_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:hive2:")) {
|
||||
return JdbcConstants.HIVE_DRIVER;
|
||||
} else {
|
||||
throw new SQLException("unkow jdbc driver : " + rawUrl);
|
||||
}
|
||||
@@ -501,6 +503,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return LOG4JDBC;
|
||||
} else if (rawUrl.startsWith("jdbc:hive:")) {
|
||||
return HIVE;
|
||||
} else if (rawUrl.startsWith("jdbc:hive2:")) {
|
||||
return HIVE;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user