Исправлено подключение к mysql

This commit is contained in:
Victor 2019-03-27 18:24:01 +02:00
parent e0f52cc3e3
commit 616afbc8c0

View File

@ -66,7 +66,7 @@ public final class jdbc implements Module {
initConstants();
Functions.set("getConnection", getConnectionFunction());
Functions.set("sqlite", getConnectionFunction("jdbc:sqlite:"));
Functions.set("mysql", getConnectionFunction("jdbc:", () -> Class.forName("com.mysql.jdbc.Driver")));
Functions.set("mysql", getConnectionFunction("jdbc:"));
}
private static com.annimon.ownlang.lib.Function getConnectionFunction() {