diff --git a/src/query/src/qSqlParser.c b/src/query/src/qSqlParser.c index c554652214148eed434557b18c8f2d6370d95c9d..e00e3b80eadd44d4a5842c084d55fb278222c3c9 100644 --- a/src/query/src/qSqlParser.c +++ b/src/query/src/qSqlParser.c @@ -501,7 +501,7 @@ tSqlExpr *tSqlExprCreate(tSqlExpr *pLeft, tSqlExpr *pRight, int32_t optrType) { case TK_OR: { pExpr->tokenId = TK_INTEGER; pExpr->value.nType = TSDB_DATA_TYPE_BIGINT; - pExpr->value.i64 = (left && right) ? 1 : 0; + pExpr->value.i64 = (left || right) ? 1 : 0; break; } }