Skip to content

Commit a5b3277

Browse files
committed
used same constant
1 parent 1d5ad3b commit a5b3277

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

client-v2/src/main/java/com/clickhouse/client/api/ClientSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ public static List<String> valuesFromCommaSeparated(String value) {
3535
}
3636

3737
public static final String SESSION_DB_ROLES = "session_db_roles";
38+
39+
public static final String SETTING_LOG_COMMENT = SERVER_SETTING_PREFIX + "log_comment";
3840
}

client-v2/src/main/java/com/clickhouse/client/api/insert/InsertSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public Collection<String> getDBRoles() {
233233
public InsertSettings logComment(String logComment) {
234234
this.logComment = logComment;
235235
if (logComment != null && !logComment.isEmpty()) {
236-
rawSettings.put(ClientSettings.SERVER_SETTING_PREFIX + "log_comment", logComment);
236+
rawSettings.put(ClientSettings.SETTING_LOG_COMMENT, logComment);
237237
}
238238
return this;
239239
}

client-v2/src/main/java/com/clickhouse/client/api/query/QuerySettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public Collection<String> getDBRoles() {
249249
public QuerySettings logComment(String logComment) {
250250
this.logComment = logComment;
251251
if (logComment != null && !logComment.isEmpty()) {
252-
rawSettings.put(ClientSettings.SERVER_SETTING_PREFIX + "log_comment", logComment);
252+
rawSettings.put(ClientSettings.SETTING_LOG_COMMENT, logComment);
253253
}
254254
return this;
255255
}

0 commit comments

Comments
 (0)