Skip to content

Commit

Permalink
[IOTDB-1275] Fix backgroup exec for cli -e function causes an infinit…
Browse files Browse the repository at this point in the history
…e loop in writing output file (#3932)
  • Loading branch information
HTHou committed Sep 9, 2021
1 parent 2f279dd commit d5ebc3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ static String[] processExecuteArgs(String[] args) {

execute = executeCommand.toString();
hasExecuteSQL = true;
// When execute sql in CLI with -e mode, we should print all results by setting continuePrint
// is true.
continuePrint = true;
args = Arrays.copyOfRange(args, 0, index);
return args;
}
Expand Down

0 comments on commit d5ebc3c

Please sign in to comment.