fix dead loop issue
This commit is contained in:
parent
4cc087ecb0
commit
b77eb38d42
|
@ -954,6 +954,10 @@ static int32_t tscCheckIfCreateTable(char **sqlstr, SSqlObj *pSql, char** boundC
|
|||
break;
|
||||
}
|
||||
|
||||
if (sToken.n == 0 || sToken.type == TK_SEMI || index == 0) {
|
||||
return tscSQLSyntaxErrMsg(pCmd->payload, "unexpected token", sql);
|
||||
}
|
||||
|
||||
sql += index;
|
||||
++numOfColsAfterTags;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue