提交 581f04a1 编写于 作者: D dapan1121

fix: empty table name for tbname issue

上级 3f4e8261
...@@ -2013,7 +2013,7 @@ static EDealRes collectFuncs(SNode* pNode, void* pContext) { ...@@ -2013,7 +2013,7 @@ static EDealRes collectFuncs(SNode* pNode, void* pContext) {
SFunctionNode* pFunc = (SFunctionNode*)pNode; SFunctionNode* pFunc = (SFunctionNode*)pNode;
if (FUNCTION_TYPE_TBNAME == pFunc->funcType && pCxt->tableAlias) { if (FUNCTION_TYPE_TBNAME == pFunc->funcType && pCxt->tableAlias) {
SValueNode* pVal = (SValueNode*)nodesListGetNode(pFunc->pParameterList, 0); SValueNode* pVal = (SValueNode*)nodesListGetNode(pFunc->pParameterList, 0);
if (strcmp(pVal->literal, pCxt->tableAlias)) { if (pVal && strcmp(pVal->literal, pCxt->tableAlias)) {
return DEAL_RES_CONTINUE; return DEAL_RES_CONTINUE;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册