From abbc1a726256d4990d9f909f1ebd9f5c92ea3c77 Mon Sep 17 00:00:00 2001 From: wpan Date: Mon, 9 Aug 2021 10:01:38 +0800 Subject: [PATCH] fix merge issue --- src/client/src/tscSQLParser.c | 4 ++++ src/client/src/tscServer.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index b0ad6d4a3c..7e31118a90 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4314,6 +4314,10 @@ static bool isValidExpr(tSqlExpr* pLeft, tSqlExpr* pRight, int32_t optr) { return false; } + if (pLeft->tokenId >= TK_BOOL && pLeft->tokenId <= TK_BINARY && (optr == TK_NOTNULL || optr == TK_ISNULL)) { + return false; + } + return true; } diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 107f630f3d..a1415c3ef8 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1054,7 +1054,7 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) { SCond *pCond = tsGetSTableQueryCond(pTagCond, pTableMeta->id.uid); if (pCond != NULL && pCond->cond != NULL) { - pQueryMsg->tagCondLen = htonl(pCond->len); + pQueryMsg->tagCondLen = htons(pCond->len); memcpy(pMsg, pCond->cond, pCond->len); pMsg += pCond->len; -- GitLab