liyuheng55555 commented on code in PR #14544:
URL: https://github.com/apache/iotdb/pull/14544#discussion_r1897077227
##########
iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java:
##########
@@ -881,4 +883,13 @@ static boolean processCommand(CliContext ctx, String s,
IoTDBConnection connecti
}
return true;
}
+
+ private static void updateUsingDatabaseIfNecessary(String database) {
+ if (!Objects.equals(usingDatabase, database)) {
+ usingDatabase = database;
+ if (sqlDialect != null &&
Model.TABLE.name().equals(sqlDialect.toUpperCase())) {
Review Comment:
But still wondering in which case the "usingDatabase" will changed from
not-null to null, seems we don't have "unuse database" statement for now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]