fix: empty tbname param issue

This commit is contained in:
dapan1121 2023-08-18 15:06:30 +08:00
parent 581f04a18b
commit 6d00f5dd39
1 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,10 @@ static void setColumnInfo(SFunctionNode* pFunc, SColumnNode* pCol, bool isPartit
case FUNCTION_TYPE_TBNAME:
pCol->colType = COLUMN_TYPE_TBNAME;
SValueNode* pVal = (SValueNode*)nodesListGetNode(pFunc->pParameterList, 0);
strcpy(pCol->tableName, pVal->literal);
strcpy(pCol->tableAlias, pVal->literal);
if (pVal) {
strcpy(pCol->tableName, pVal->literal);
strcpy(pCol->tableAlias, pVal->literal);
}
break;
case FUNCTION_TYPE_WSTART:
if (!isPartitionBy) {