diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 6384a96a96dc766ee1c6e4c801a23672361697b7..36da3817824f1c03dc0bc19492e23d25799945cc 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -289,7 +289,7 @@ static void exprTreeToBinaryImpl(SBufferWriter* bw, tExprNode* expr) { tVariant* pVal = expr->pVal; tbufWriteUint32(bw, pVal->nType); - if (pVal->nType == TSDB_DATA_TYPE_BINARY || Val->nType == TSDB_DATA_TYPE_NCHAR) { + if (pVal->nType == TSDB_DATA_TYPE_BINARY || pVal->nType == TSDB_DATA_TYPE_NCHAR) { tbufWriteInt32(bw, pVal->nLen); tbufWrite(bw, pVal->pz, pVal->nLen); } else {