Skip to content

Commit 70cdc62

Browse files
committed
fixed place where constant should be used
1 parent fb18dc8 commit 70cdc62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ protected AbstractBinaryFormatReader(InputStream inputStream, QuerySettings quer
7575
if (timeZone == null) {
7676
throw new ClientException("Time zone is not set. (useServerTimezone:" + useServerTimeZone + ")");
7777
}
78-
boolean jsonAsString = MapUtils.getFlag(querySettings.getAllSettings(), ClientSettings.SERVER_SETTING_PREFIX + "output_format_binary_write_json_as_string", false);
78+
boolean jsonAsString = MapUtils.getFlag(this.settings,
79+
ClientSettings.SERVER_SETTING_PREFIX + ClientSettings.OUTPUT_FORMAT_BINARY_WRITE_JSON_AS_STRING, false);
7980
this.binaryStreamReader = new BinaryStreamReader(inputStream, timeZone, LOG, byteBufferAllocator, jsonAsString);
8081
if (schema != null) {
8182
setSchema(schema);

0 commit comments

Comments
 (0)