fix dead loop issue

This commit is contained in:
wpan 2021-07-05 13:27:00 +08:00
parent 4cc087ecb0
commit b77eb38d42
1 changed files with 4 additions and 0 deletions

View File

@ -954,6 +954,10 @@ static int32_t tscCheckIfCreateTable(char **sqlstr, SSqlObj *pSql, char** boundC
break; break;
} }
if (sToken.n == 0 || sToken.type == TK_SEMI || index == 0) {
return tscSQLSyntaxErrMsg(pCmd->payload, "unexpected token", sql);
}
sql += index; sql += index;
++numOfColsAfterTags; ++numOfColsAfterTags;
} }