应该是VS code内部自动处理了不同的换行符
C++ API,调用conn.run( str ) ,str 是多行字符串,当换行符是WINDOWS系统的CRLF时,报如下错误:
C++ API,conn.run( str )
terminate called after throwing an instance of 'dolphindb::IOException'
what(): 172.29.152.56:38848 Server response: 'Syntax Error: [line #1] Can't recognize token ' script: 'getStreamingStat()'
Aborted
换行符改为UNIX系统的LF时,恢复正常。
在VSCode上,选中多行字符串,Ctrl+E,此时,不管换行符是CRLF还是LF,都运行正常。