File tree 1 file changed +3
-3
lines changed
clickhouse-jdbc/src/test/java/com/clickhouse/jdbc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
import org .testng .Assert ;
9
9
import org .testng .annotations .Test ;
10
10
11
- import com .clickhouse .client .ClickHouseProtocol ;
12
11
import com .clickhouse .client .config .ClickHouseClientOption ;
13
12
import com .clickhouse .client .config .ClickHouseDefaults ;
14
13
15
14
public class ClickHouseDataSourceTest extends JdbcIntegrationTest {
16
15
@ Test (groups = "integration" )
17
16
public void testGetConnection () throws SQLException {
18
- String url = "jdbc:ch://" + getServerAddress (DEFAULT_PROTOCOL );
19
- String urlWithCredentials = "jdbc:ch://default@" + getServerAddress (ClickHouseProtocol .HTTP );
17
+ String url = "jdbc:ch:" + DEFAULT_PROTOCOL .name () + "://" + getServerAddress (DEFAULT_PROTOCOL );
18
+ String urlWithCredentials = "jdbc:ch:" + DEFAULT_PROTOCOL .name () + "://default@"
19
+ + getServerAddress (DEFAULT_PROTOCOL );
20
20
String clientName = "client1" ;
21
21
int maxExecuteTime = 1234 ;
22
22
boolean continueBatchOnError = true ;
You can’t perform that action at this time.
0 commit comments