Skip to content

Commit 0a04501

Browse files
committed
fix jdbc tests
1 parent 87b8204 commit 0a04501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,15 +1404,15 @@ public void testJSONWritingAsString() throws SQLException {
14041404
double key1 = rand.nextDouble();
14051405
int key2 = rand.nextInt();
14061406
final String json = "{\"key1\": \"" + key1 + "\", \"key2\": " + key2 + ", \"key3\": [1000, \"value3\", 400000]}";
1407-
final String serverJson = "{\"key1\":\"" + key1 + "\",\"key2\":" + key2 + ",\"key3\":[\"1000\",\"value3\",\"400000\"]}";
1407+
final String serverJson = "{\"key1\":\"" + key1 + "\",\"key2\":\"" + key2 + "\",\"key3\":[\"1000\",\"value3\",\"400000\"]}";
14081408
insertData(String.format("INSERT INTO test_json VALUES ( 1, '%s' )", json));
14091409

14101410
// Check the results
14111411
Properties props = new Properties();
14121412
props.setProperty(
14131413
ClientConfigProperties.serverSetting(ServerSettings.OUTPUT_FORMAT_BINARY_WRITE_JSON_AS_STRING),
14141414
"1");
1415-
props.setProperty(ClientConfigProperties.serverSetting("output_format_json_quote_64bit_integers"), "0");
1415+
props.setProperty(ClientConfigProperties.serverSetting("output_format_json_quote_64bit_integers"), "1");
14161416
try (Connection conn = getJdbcConnection(props)) {
14171417
try (Statement stmt = conn.createStatement()) {
14181418
try (ResultSet rs = stmt.executeQuery("SELECT * FROM test_json ORDER BY order")) {

0 commit comments

Comments
 (0)