We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 056ed84 commit 12073f0Copy full SHA for 12073f0
src/main/java/com/alipay/oceanbase/rpc/bolt/transport/ObTableConnection.java
@@ -149,7 +149,9 @@ private void login() throws Exception {
149
request.setTenantName(obTable.getTenantName());
150
request.setUserName(obTable.getUserName());
151
request.setDatabaseName(obTable.getDatabase());
152
- if (loginWithConfigs) {
+ // When the caller doesn't provide any parameters, configsMap is empty.
153
+ // In this case, we don't generate any JSON to avoid creating an empty object.
154
+ if (loginWithConfigs && !obTable.getConfigs().isEmpty()) {
155
JSONObject json = new JSONObject(obTable.getConfigs());
156
request.setConfigsStr(json.toJSONString());
157
loginWithConfigs = false;
0 commit comments