fix illegal sql issue

This commit is contained in:
wpan 2021-08-19 09:36:09 +08:00
parent 4e8f3b5de3
commit 27dab670f4
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ static int normalStmtPrepare(STscStmt* stmt) {
return code;
}
start = i + token.n;
} else if (token.type == TK_ILLEGAL) {
return invalidOperationMsg(tscGetErrorMsgPayload(&stmt->pSql->cmd), "invalid sql");
}
i += token.n;