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

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

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