提交 cf6ceba0 编写于 作者: K kailixu

chore: adjust the check condition for wStrPatternComp

上级 ae3e46c8
...@@ -570,7 +570,8 @@ int32_t compareWStrPatternComp(const void* pLeft, const void* pRight) { ...@@ -570,7 +570,8 @@ int32_t compareWStrPatternComp(const void* pLeft, const void* pRight) {
SPatternCompareInfo pInfo = {'%', '_'}; SPatternCompareInfo pInfo = {'%', '_'};
size_t size = varDataLen(pLeft)/TSDB_NCHAR_SIZE; 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 *pattern = calloc(varDataLen(pRight) + TSDB_NCHAR_SIZE, 1);
char *str = calloc(varDataLen(pLeft) + TSDB_NCHAR_SIZE, 1); char *str = calloc(varDataLen(pLeft) + TSDB_NCHAR_SIZE, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册