From cf6ceba00f7241a47da63c5ba457c5bef9dd3bb6 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 21 Nov 2022 23:36:05 +0800 Subject: [PATCH] chore: adjust the check condition for wStrPatternComp --- src/util/src/tcompare.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/src/tcompare.c b/src/util/src/tcompare.c index 565878f3e1..62c09dbaca 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); -- GitLab