Skip to content

Commit a7bb44e

Browse files
author
anton
committed
fix driver
1 parent 91fc347 commit a7bb44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application-sql/src/main/java/ru/art/sql/module/SqlModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public static SqlModuleState sqlModuleState() {
6868
public void onLoad() {
6969
DataSource dataSource = null;
7070
try {
71+
forName(sqlModule().getDbProvider().getDriverClassName());
7172
switch (sqlModule().getConnectionPoolType()) {
7273
case HIKARI:
7374
HikariDataSource hikariDataSource = new HikariDataSource(sqlModule().getHikariPoolConfig());
@@ -88,7 +89,6 @@ public void onLoad() {
8889
}
8990
break;
9091
}
91-
forName(sqlModule().getDbProvider().getDriverClassName());
9292
sqlModule().getJooqConfiguration().set(dataSource).set(sqlModule().getJooqSettings());
9393
} catch (Exception throwable) {
9494
throw new SqlModuleException(throwable);

0 commit comments

Comments
 (0)