From 27b02e3b8a7ab3a0ee113a1a2abcd62240e06116 Mon Sep 17 00:00:00 2001 From: loy Date: Tue, 6 Feb 2018 16:18:35 +0800 Subject: [PATCH] =?UTF-8?q?druid=E4=B8=ADhsql=E9=A9=B1=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/third/alibaba/druid/util/JdbcUtils.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fine-druid/src/com/fr/third/alibaba/druid/util/JdbcUtils.java b/fine-druid/src/com/fr/third/alibaba/druid/util/JdbcUtils.java index 4de1f1fa9..43a2755fa 100644 --- a/fine-druid/src/com/fr/third/alibaba/druid/util/JdbcUtils.java +++ b/fine-druid/src/com/fr/third/alibaba/druid/util/JdbcUtils.java @@ -407,6 +407,13 @@ public final class JdbcUtils implements JdbcConstants { } catch (Throwable ignore) { return "org.hsqldb.jdbcDriver"; } + } else if (rawUrl.startsWith("emb:jdbc:hsqldb:")) { + try { + Class.forName("com.fr.third.org.hsqldb.jdbcDriver"); + return "com.fr.third.org.hsqldb.jdbcDriver"; + } catch (Throwable ignore) { + return "org.hsqldb.jdbcDriver"; + } } else if (rawUrl.startsWith("jdbc:db2:")) { return DB2_DRIVER; } else if (rawUrl.startsWith("jdbc:sqlite:")) {