fix: empty tbname param issue
This commit is contained in:
parent
581f04a18b
commit
6d00f5dd39
|
@ -45,8 +45,10 @@ static void setColumnInfo(SFunctionNode* pFunc, SColumnNode* pCol, bool isPartit
|
||||||
case FUNCTION_TYPE_TBNAME:
|
case FUNCTION_TYPE_TBNAME:
|
||||||
pCol->colType = COLUMN_TYPE_TBNAME;
|
pCol->colType = COLUMN_TYPE_TBNAME;
|
||||||
SValueNode* pVal = (SValueNode*)nodesListGetNode(pFunc->pParameterList, 0);
|
SValueNode* pVal = (SValueNode*)nodesListGetNode(pFunc->pParameterList, 0);
|
||||||
strcpy(pCol->tableName, pVal->literal);
|
if (pVal) {
|
||||||
strcpy(pCol->tableAlias, pVal->literal);
|
strcpy(pCol->tableName, pVal->literal);
|
||||||
|
strcpy(pCol->tableAlias, pVal->literal);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case FUNCTION_TYPE_WSTART:
|
case FUNCTION_TYPE_WSTART:
|
||||||
if (!isPartitionBy) {
|
if (!isPartitionBy) {
|
||||||
|
|
Loading…
Reference in New Issue