diff --git a/src/util/src/tcompare.c b/src/util/src/tcompare.c index 565878f3e151e71a0fcf9b5b3b4b182249f51a79..62c09dbacabd25ff816ab69be1c5212fa5b6d69f 100644 --- a/src/util/src/tcompare.c +++ b/src/util/src/tcompare.c @@ -570,7 +570,8 @@ int32_t compareWStrPatternComp(const void* pLeft, const void* pRight) { SPatternCompareInfo pInfo = {'%', '_'}; size_t size = varDataLen(pLeft)/TSDB_NCHAR_SIZE; - assert(varDataLen(pRight) <= TSDB_MAX_FIELD_LEN * TSDB_NCHAR_SIZE); + // assert(varDataLen(pRight) <= TSDB_MAX_FIELD_LEN * TSDB_NCHAR_SIZE); + ASSERT(varDataTLen(pRight) <= TSDB_MAX_NCHAR_LEN); char *pattern = calloc(varDataLen(pRight) + TSDB_NCHAR_SIZE, 1); char *str = calloc(varDataLen(pLeft) + TSDB_NCHAR_SIZE, 1);