Skip to content

Commit 616afbc

Browse files
committed
Исправлено подключение к mysql
1 parent e0f52cc commit 616afbc

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/annimon/ownlang/modules/jdbc

1 file changed

+1
-1
lines changed

src/main/java/com/annimon/ownlang/modules/jdbc/jdbc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void init() {
6666
initConstants();
6767
Functions.set("getConnection", getConnectionFunction());
6868
Functions.set("sqlite", getConnectionFunction("jdbc:sqlite:"));
69-
Functions.set("mysql", getConnectionFunction("jdbc:", () -> Class.forName("com.mysql.jdbc.Driver")));
69+
Functions.set("mysql", getConnectionFunction("jdbc:"));
7070
}
7171

7272
private static com.annimon.ownlang.lib.Function getConnectionFunction() {

0 commit comments

Comments
 (0)