diff --git a/dinky-admin/src/main/java/org/dinky/Dinky.java b/dinky-admin/src/main/java/org/dinky/Dinky.java index 643aea15f3..eda8a91997 100644 --- a/dinky-admin/src/main/java/org/dinky/Dinky.java +++ b/dinky-admin/src/main/java/org/dinky/Dinky.java @@ -25,6 +25,8 @@ import org.springframework.cache.annotation.EnableCaching; import org.springframework.transaction.annotation.EnableTransactionManagement; +import com.alibaba.druid.proxy.DruidDriver; + import lombok.SneakyThrows; /** @@ -43,6 +45,11 @@ public class Dinky { @SneakyThrows public static void main(String[] args) { + // Initialize the JDBC Driver, because the number of packages is very large, so it needs to be executed + // asynchronously and loaded in advance + // chinese: 初始化JDBC Driver,因为包的数量特别庞大,所以这里需要异步执行,并提前加载Driver + new Thread(DruidDriver::getInstance).start(); + SpringApplication app = new SpringApplication(Dinky.class); app.run(args); } diff --git a/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20ExportParameterVisitor.java b/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20ExportParameterVisitor.java index 8c2684c5ea..cab97ed0e2 100644 --- a/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20ExportParameterVisitor.java +++ b/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20ExportParameterVisitor.java @@ -38,7 +38,7 @@ public class Clickhouse20ExportParameterVisitor extends Clickhouse20OutputVisito private final boolean requireParameterizedOutput; public Clickhouse20ExportParameterVisitor( - final List parameters, final Appendable appender, final boolean wantParameterizedOutput) { + final List parameters, final StringBuilder appender, final boolean wantParameterizedOutput) { super(appender, true); this.parameters = parameters; this.requireParameterizedOutput = wantParameterizedOutput; @@ -52,7 +52,7 @@ public Clickhouse20ExportParameterVisitor(final List parameters) { this(parameters, new StringBuilder(), false); } - public Clickhouse20ExportParameterVisitor(final Appendable appender) { + public Clickhouse20ExportParameterVisitor(final StringBuilder appender) { this(new ArrayList(), appender, true); } diff --git a/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20OutputVisitor.java b/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20OutputVisitor.java index 4c16816e5c..70e02ad2d7 100644 --- a/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20OutputVisitor.java +++ b/dinky-metadata/dinky-metadata-clickhouse/src/main/java/org/dinky/metadata/visitor/Clickhouse20OutputVisitor.java @@ -38,15 +38,15 @@ public class Clickhouse20OutputVisitor extends SQLASTOutputVisitor implements Clickhouse20Visitor { - public Clickhouse20OutputVisitor(Appendable appender) { + public Clickhouse20OutputVisitor(StringBuilder appender) { super(appender, DbType.clickhouse); } - public Clickhouse20OutputVisitor(Appendable appender, DbType dbType) { + public Clickhouse20OutputVisitor(StringBuilder appender, DbType dbType) { super(appender, dbType); } - public Clickhouse20OutputVisitor(Appendable appender, boolean parameterized) { + public Clickhouse20OutputVisitor(StringBuilder appender, boolean parameterized) { super(appender, parameterized); } diff --git a/pom.xml b/pom.xml index f9429ac611..97f26fb1d7 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ 3.3.2 1.18 3.2.14 - 1.2.15 + 1.2.23 4.1.0 2.0.41 1.18.1 @@ -69,7 +69,7 @@ 1.3 6.2.0.Final 4.5.13 - 5.8.27 + 5.8.31 2.14.1 2.1.6 1.9.3