mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor sql parser. sqlite support limit clause. #1556
This commit is contained in:
@@ -405,7 +405,7 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
} else if (rawUrl.startsWith("jdbc:db2:")) {
|
||||
return DB2_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:sqlite:")) {
|
||||
return "org.sqlite.JDBC";
|
||||
return SQLITE_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:ingres:")) {
|
||||
return "com.ingres.jdbc.IngresDriver";
|
||||
} else if (rawUrl.startsWith("jdbc:h2:")) {
|
||||
@@ -490,7 +490,7 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
} else if (rawUrl.startsWith("jdbc:db2:")) {
|
||||
return DB2;
|
||||
} else if (rawUrl.startsWith("jdbc:sqlite:")) {
|
||||
return "sqlite";
|
||||
return SQLITE;
|
||||
} else if (rawUrl.startsWith("jdbc:ingres:")) {
|
||||
return "ingres";
|
||||
} else if (rawUrl.startsWith("jdbc:h2:") || rawUrl.startsWith("jdbc:log4jdbc:h2:")) {
|
||||
|
||||
Reference in New Issue
Block a user