You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "任宇华 (Jira)" <ji...@apache.org> on 2022/10/28 09:51:00 UTC

[jira] [Created] (IOTDB-4792) export-csv.bat uses like syntax exception

任宇华 created IOTDB-4792:
--------------------------

             Summary: export-csv.bat uses like syntax exception
                 Key: IOTDB-4792
                 URL: https://issues.apache.org/jira/browse/IOTDB-4792
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: 任宇华


./tools/export-csv.bat -h 127.0.0.1 -p 6667 -u root -pw root -td ./ -q "SELECT * FROM root.ws.ln where t_txt like '%cd%';"

 

在使用like语法时,会将  %cd%  转换为当前系统路径传递给iotdb,sql就会被转换为

 

SELECT * FROM root.ws.ln where t_txt like 'H:\environment\\iotdb\\apache-iotdb-0.14.0-SNAPSHOT-all-bin'; 

 

导致失败,同时在bat的语法中,还有很多环境变量也是这样



--
This message was sent by Atlassian Jira
(v8.20.10#820010)