This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 5fae88dd6a6 feat: disabled history for -e sql (#15389)
5fae88dd6a6 is described below

commit 5fae88dd6a6041733d285c7d2a0759860f9cb9ff
Author: CritasWang <[email protected]>
AuthorDate: Tue Apr 22 17:24:37 2025 +0800

    feat: disabled history for -e sql (#15389)
---
 iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java 
b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java
index 0a9af5a2da7..938df8f5de3 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java
@@ -163,6 +163,7 @@ public class Cli extends AbstractCli {
       password = commandLine.getOptionValue(PW_ARGS);
       constructProperties();
       if (hasExecuteSQL && password != null) {
+        ctx.getLineReader().getVariables().put(LineReader.DISABLE_HISTORY, 
Boolean.TRUE);
         executeSql(ctx);
       }
       if (password == null) {

Reply via email to