[td-6563]set the value to be 0 if the corresponding attributes are missing in query message.
This commit is contained in:
parent
6c1eb1ee92
commit
c90d48a763
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue