提交 d48e3b35 编写于 作者: G Ganlin Zhao

add null pointer check

上级 d5c73f31
......@@ -1667,7 +1667,7 @@ static int32_t translateForbidSysTableFunc(STranslateContext* pCxt, SFunctionNod
SSelectStmt* pSelect = (SSelectStmt*)pCxt->pCurrStmt;
SRealTableNode* pTable = (SRealTableNode*)pSelect->pFromTable;
if (TSDB_SYSTEM_TABLE == pTable->pMeta->tableType) {
if (NULL != pTable && TSDB_SYSTEM_TABLE == pTable->pMeta->tableType) {
return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYSTABLE_NOT_ALLOWED_FUNC, pFunc->functionName);
}
return TSDB_CODE_SUCCESS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册