[TD-4506]<fix> return valid msg when no db specified

This commit is contained in:
yihaoDeng 2021-05-31 23:29:59 +08:00
parent 8543ac4e65
commit 9c8507cd7c
1 changed files with 3 additions and 2 deletions

View File

@ -7186,8 +7186,9 @@ static int32_t getTableNameFromSqlNode(SSqlNode* pSqlNode, SArray* tableNameList
}
SName name = {0};
if (tscSetTableFullName(&name, t, pSql) != TSDB_CODE_SUCCESS) {
return invalidOperationMsg(msgBuf, msg1);
int32_t code = tscSetTableFullName(&name, t, pSql);
if (code != TSDB_CODE_SUCCESS) {
return code;
}
taosArrayPush(tableNameList, &name);