diff --git a/src/common/inc/tdataformat.h b/src/common/inc/tdataformat.h index 34fed5b3baa29ce5c18a63c171d7cad3a9e36d5a..f8cc374eb00e953ce307070f27a585146f5bc6da 100644 --- a/src/common/inc/tdataformat.h +++ b/src/common/inc/tdataformat.h @@ -473,7 +473,7 @@ static FORCE_INLINE int comparTagId(const void *key1, const void *key2) { } static FORCE_INLINE void *tdGetKVRowValOfCol(SKVRow row, int16_t colId) { - void *ret = taosbsearch(&colId, kvRowColIdx(row), p (row), sizeof(SColIdx), comparTagId, TD_EQ); + void *ret = taosbsearch(&colId, kvRowColIdx(row), kvRowNCols(row), sizeof(SColIdx), comparTagId, TD_EQ); if (ret == NULL) return NULL; return kvRowColVal(row, (SColIdx *)ret); }