diff --git a/src/client/src/tscAsync.c b/src/client/src/tscAsync.c index 2570f473ed80c98893653f5c862f1a29c8b7933e..df1b98478c2244b15b0170e310565d8a6cddc314 100644 --- a/src/client/src/tscAsync.c +++ b/src/client/src/tscAsync.c @@ -366,7 +366,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { tscAllocPayload(&pSql->cmd, (int)sz + 1); memcpy(tscGetErrorMsgPayload(&pSql->cmd), tscGetErrorMsgPayload(&sub->cmd), sz); } else if (code == TSDB_CODE_MND_INVALID_TABLE_NAME) { - if (pSql->cmd.command == TSDB_SQL_MULTI_META && pSql->cmd.hashedTableNames) { + if (sub->cmd.command == TSDB_SQL_MULTI_META && pSql->cmd.hashedTableNames) { tscClearTableMeta(pSql); taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem); pSql->cmd.hashedTableNames = NULL; @@ -375,7 +375,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { goto _error; } - if (pSql->cmd.command == TSDB_SQL_MULTI_META) { + if (sub->cmd.command == TSDB_SQL_MULTI_META) { if (pSql->cmd.hashedTableNames) { taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem); pSql->cmd.hashedTableNames = NULL;