提交 1260d097 编写于 作者: wmmhello's avatar wmmhello

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

上级 07db0733
......@@ -223,7 +223,7 @@ char *paGetToken(char *string, char **token, int32_t *tokenLen) {
char quote = 0;
while (*string != 0) {
if (isspace(*string)) {
if (*string == ' ' || *string == '\t') {
++string;
} else {
break;
......@@ -244,12 +244,12 @@ char *paGetToken(char *string, char **token, int32_t *tokenLen) {
break;
}
if (*string == '#' || isspace(*string)) {
if (*string == '#' || *string == '\n' || *string == '\r') {
*string = 0;
break;
}
if (isspace(*string) && !quote) {
if ((*string == ' ' || *string == '\t') && !quote) {
break;
} else {
++string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册