private static void updateSqlDialectAndUsingDatabase(
      String sqlDialectOfConnection, String databaseOfConnection) {
    boolean needUpdateCliPrefix =
        !Objects.equals(sqlDialect, sqlDialectOfConnection)
            || !Objects.equals(usingDatabase, databaseOfConnection);
    sqlDialect = sqlDialectOfConnection;
    usingDatabase = databaseOfConnection;
    if (needUpdateCliPrefix) {
      cliPrefix = IOTDB;
      if (sqlDialect != null && Model.TABLE.name().equals(sqlDialect.toUpperCase())) {
        if (databaseOfConnection != null) {
          cliPrefix += ":" + databaseOfConnection;
        }
      }
    }
  }
Cache all results.

@param resultSet jdbc resultSet
@param maxSizeList the longest result of every column
@param columnCount the number of column
@param resultSetMetaData jdbc resultSetMetaData
@param zoneId your time zone
@return {@literal List<List<String>> result}
@throws SQLException throw exception
iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java