[td-6563]set the value to be 0 if the corresponding attributes are missing in query message.

This commit is contained in:
Haojun Liao 2021-09-11 15:45:01 +08:00
parent 6c1eb1ee92
commit c90d48a763
1 changed files with 3 additions and 0 deletions

View File

@ -1067,6 +1067,8 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
pMsg += pCond->len; pMsg += pCond->len;
} }
} else {
pQueryMsg->tagCondLen = 0;
} }
if (pQueryInfo->bufLen > 0) { if (pQueryInfo->bufLen > 0) {
@ -1138,6 +1140,7 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
} }
} else { } else {
pQueryMsg->udfContentOffset = 0; pQueryMsg->udfContentOffset = 0;
pQueryMsg->udfContentLen = 0;
} }
memcpy(pMsg, pSql->sqlstr, sqlLen); memcpy(pMsg, pSql->sqlstr, sqlLen);