提交 15915d5a 编写于 作者: C Cary Xu

bug fix

上级 1f802325
...@@ -2936,13 +2936,15 @@ void tscDequoteAndTrimToken(SStrToken* pToken) { ...@@ -2936,13 +2936,15 @@ void tscDequoteAndTrimToken(SStrToken* pToken) {
} }
// there are still at least two characters // there are still at least two characters
if (first < last - 1) { while (first < last - 1) {
char c = pToken->z[first]; char c = pToken->z[first];
// dequote // dequote
if ((c == '\'' || c == '"') && c == pToken->z[last - 1]) { if ((c == '\'' || c == '"') && c == pToken->z[last - 1]) {
first++; first++;
last--; last--;
continue;
} }
break;
} }
// left shift the string and pad spaces // left shift the string and pad spaces
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册