JackieTien97 commented on code in PR #14544:
URL: https://github.com/apache/iotdb/pull/14544#discussion_r1897070509


##########
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:
   what if usingDatabase is null? IOTDB_CLI_PREFIX should be IOTDB instead of 
"IOTDB:"



-- 
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]

Reply via email to