diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index b9edc52e9b..c951f24ae9 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1037,7 +1037,7 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) { SCond *pCond = tsGetSTableQueryCond(pTagCond, pTableMeta->id.uid); if (pCond != NULL && pCond->cond != NULL) { - pQueryMsg->tagCondLen = htons(pCond->len); + pQueryMsg->tagCondLen = htonl(pCond->len); memcpy(pMsg, pCond->cond, pCond->len); pMsg += pCond->len;