diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index 36b1ab59931851c2f2e1fc4a5f9bea89d3b1767a..56f0b5099d8de845d4a8c1e1192383fbf8d9b199 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -779,6 +779,7 @@ static int32_t tscCheckIfCreateTable(char **sqlstr, SSqlObj *pSql) { STagData *pTag = (STagData *)pCmd->payload; memset(pTag, 0, sizeof(STagData)); + pCmd->payloadLen = sizeof(STagData); /* * the source super table is moved to the secondary position of the pTableMetaInfo list