Skip to content

Commit 2dd1787

Browse files
author
Paultagoras
committed
Update DataTypeTests.java
1 parent e692396 commit 2dd1787

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jdbc-v2/src/test/java/com/clickhouse/jdbc/DataTypeTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ public void setUp() throws SQLException {
3333
}
3434

3535
private Connection getConnection() throws SQLException {
36-
return DriverManager.getConnection(getEndpointString(isCloud()));
36+
try {
37+
return DriverManager.getConnection(getEndpointString(isCloud()));
38+
} catch (SQLException e) {
39+
Driver.load();
40+
return DriverManager.getConnection(getEndpointString(isCloud()));
41+
}
3742
}
3843

3944
private int insertData(String sql) throws SQLException {

0 commit comments

Comments
 (0)