Skip to content

Commit bdaa09d

Browse files
committed
use default database when users do not set database
1 parent 6354818 commit bdaa09d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3257,6 +3257,10 @@ public void setParamURL(String paramURL) throws IllegalArgumentException {
32573257
}
32583258
}
32593259
}
3260+
// set db as "default" if the user does not assign any database
3261+
if (db == null) {
3262+
db = "default";
3263+
}
32603264

32613265
if (StringUtils.isBlank(db)) {
32623266
throw new IllegalArgumentException(String.format(

0 commit comments

Comments
 (0)