[TD-6054]<fix>: Filtered by tag with nchar value not as expected
This commit is contained in:
parent
be09ee1411
commit
d22530a7f2
|
@ -161,7 +161,7 @@ int32_t compareLenPrefixedWStr(const void *pLeft, const void *pRight) {
|
|||
memcpy(pLeftTerm, varDataVal(pLeft), len1);
|
||||
memcpy(pRightTerm, varDataVal(pRight), len2);
|
||||
|
||||
int32_t ret = wcsncmp((void *)pLeftTerm, (void *)pRightTerm, len1/TSDB_NCHAR_SIZE);
|
||||
int32_t ret = wcsncmp((wchar_t*) pLeftTerm, (wchar_t*) pRightTerm, len1/TSDB_NCHAR_SIZE);
|
||||
|
||||
tfree(pLeftTerm);
|
||||
tfree(pRightTerm);
|
||||
|
|
Loading…
Reference in New Issue