提交 991f406d 编写于 作者: wmmhello's avatar wmmhello

[TS-165]<fix> fix space error when parse sql

上级 1260d097
......@@ -2684,7 +2684,7 @@ void tscDequoteAndTrimToken(SStrToken* pToken) {
// trim leading spaces
while (first < last) {
char c = pToken->z[first];
if (isspace(c)) {
if (c != ' ' && c != '\t') {
break;
}
first++;
......@@ -2693,7 +2693,7 @@ void tscDequoteAndTrimToken(SStrToken* pToken) {
// trim ending spaces
while (first < last) {
char c = pToken->z[last - 1];
if (isspace(c)) {
if (c != ' ' && c != '\t') {
break;
}
last--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册