diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 697a3bc6611e4decfdbc3cee917dbf41c54fc13b..2ed8ea94b53955a2061ffe763cb0521daab30fd9 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -2924,7 +2924,9 @@ int32_t getMultiTableMetaFromMnode(SSqlObj *pSql, SArray* pNameList, SArray* pVg } int32_t tscGetTableMetaImpl(SSqlObj* pSql, STableMetaInfo *pTableMetaInfo, bool autocreate, bool onlyLocal) { - assert(tIsValidName(&pTableMetaInfo->name)); + if (!tIsValidName(&pTableMetaInfo->name)) { + return TSDB_CODE_TSC_APP_ERROR; + } char name[TSDB_TABLE_FNAME_LEN] = {0}; tNameExtractFullName(&pTableMetaInfo->name, name);