diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 7af5a7df617e4b304736c6cb73b99785af39be25..1ea960a09bfc0b4f769779aaaf16fa452ffd79de 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1147,10 +1147,10 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) { *((int16_t *)pMsg) = htons(pCol->colId); pMsg += sizeof(pCol->colId); - *((int16_t *)pMsg) += htons(pCol->colIndex); + *((int16_t *)pMsg) = htons(pCol->colIndex); pMsg += sizeof(pCol->colIndex); - *((int16_t *)pMsg) += htons(pCol->flag); + *((int16_t *)pMsg) = htons(pCol->flag); pMsg += sizeof(pCol->flag); memcpy(pMsg, pCol->name, tListLen(pCol->name));