Skip to content

Commit b59646d

Browse files
committed
Enable JDBC-specific configuration and disable wrapper object by default
1 parent e353f0c commit b59646d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/JdbcConfig.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class JdbcConfig {
2020
private static final String DEFAULT_FETCH_SIZE = "0";
2121
private static final String DEFAULT_JDBC_COMPLIANT = BOOLEAN_TRUE;
2222
private static final String DEFAULT_NAMED_PARAM = BOOLEAN_FALSE;
23-
private static final String DEFAULT_WRAPPER_OBJ = BOOLEAN_TRUE;
23+
private static final String DEFAULT_WRAPPER_OBJ = BOOLEAN_FALSE;
2424

2525
static boolean extractBooleanValue(Properties props, String key, String defaultValue) {
2626
if (props == null || props.isEmpty() || key == null || key.isEmpty()) {
@@ -45,21 +45,26 @@ public static List<DriverPropertyInfo> getDriverProperties() {
4545
DriverPropertyInfo info = new DriverPropertyInfo(PROP_AUTO_COMMIT, DEFAULT_AUTO_COMMIT);
4646
info.choices = new String[] { BOOLEAN_TRUE, BOOLEAN_FALSE };
4747
info.description = "Whether to enable auto commit when connection is created.";
48+
list.add(info);
4849

4950
info = new DriverPropertyInfo(PROP_FETCH_SIZE, DEFAULT_FETCH_SIZE);
5051
info.description = "Default fetch size, negative or zero means no preferred option.";
52+
list.add(info);
5153

5254
info = new DriverPropertyInfo(PROP_JDBC_COMPLIANT, DEFAULT_JDBC_COMPLIANT);
5355
info.choices = new String[] { BOOLEAN_TRUE, BOOLEAN_FALSE };
5456
info.description = "Whether to enable JDBC-compliant features like fake transaction and standard UPDATE and DELETE statements.";
57+
list.add(info);
5558

5659
info = new DriverPropertyInfo(PROP_NAMED_PARAM, DEFAULT_NAMED_PARAM);
5760
info.choices = new String[] { BOOLEAN_TRUE, BOOLEAN_FALSE };
5861
info.description = "Whether to use named parameter(e.g. :ts(DateTime64(6)) or :value etc.) instead of standard JDBC question mark placeholder.";
62+
list.add(info);
5963

6064
info = new DriverPropertyInfo(PROP_WRAPPER_OBJ, DEFAULT_WRAPPER_OBJ);
6165
info.choices = new String[] { BOOLEAN_TRUE, BOOLEAN_FALSE };
6266
info.description = "Whether to return wrapper object like Array or Struct in ResultSet.getObject method.";
67+
list.add(info);
6368

6469
return Collections.unmodifiableList(list);
6570
}

0 commit comments

Comments
 (0)