Skip to content

Commit 03303ce

Browse files
committed
Remove property from DriverProperties
1 parent 97afdd4 commit 03303ce

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/DriverProperties.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ public enum DriverProperties {
2222
* query settings to be passed along with query operation.
2323
* {@see com.clickhouse.client.api.query.QuerySettings}
2424
*/
25-
DEFAULT_QUERY_SETTINGS("default_query_settings", null),
26-
BEARER_TOKEN("jdbc_bearer_token", null);
25+
DEFAULT_QUERY_SETTINGS("default_query_settings", null);
2726
private final String key;
2827

2928
private final String defaultValue;

jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public JdbcConfiguration(String url, Properties info) throws SQLException {
5858

5959
// after initializing all properties - set final connection URL
6060
boolean useSSL = Boolean.parseBoolean(info.getProperty(DriverProperties.SECURE_CONNECTION.getKey(), "false"));
61-
String bearerToken = info.getProperty(DriverProperties.BEARER_TOKEN.getKey(), null);
61+
String bearerToken = info.getProperty(ClientConfigProperties.BEARERTOKEN_AUTH.getKey(), null);
6262
if (bearerToken != null) {
6363
clientProperties.put(ClientConfigProperties.BEARERTOKEN_AUTH.getKey(), bearerToken);
6464
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public void testBearerTokenAuth() throws Exception {
504504
"{ \"read_bytes\": \"10\", \"read_rows\": \"1\"}")).build());
505505

506506
Properties properties = new Properties();
507-
properties.put(DriverProperties.BEARER_TOKEN.getKey(), jwtToken1);
507+
properties.put(ClientConfigProperties.BEARERTOKEN_AUTH.getKey(), jwtToken1);
508508
properties.put("compress", "false");
509509
String jdbcUrl = "jdbc:clickhouse://" + "localhost" + ":" + mockServer.port();
510510
try (Connection conn = new ConnectionImpl(jdbcUrl, properties);

0 commit comments

Comments
 (0)