diff --git a/src/client/inc/tsclient.h b/src/client/inc/tsclient.h index 4ead7d41801c9ccf0b1e3c5fe69a439629802bbb..f8d4f3c5dddda4d36f52037a4f989138ea366a80 100644 --- a/src/client/inc/tsclient.h +++ b/src/client/inc/tsclient.h @@ -573,7 +573,7 @@ static FORCE_INLINE void convertToSKVRow(SMemRow dest, SMemRow src, SSchema *pSc SKVRow kvRow = memRowKvBody(dest); memRowSetType(dest, SMEM_ROW_KV); - memRowSetKvVersion(kvRow, dataRowVersion(dataRow)); + memRowSetKvVersion(dest, dataRowVersion(dataRow)); kvRowSetNCols(kvRow, nBoundCols); kvRowSetLen(kvRow, (TDRowLenT)(TD_KV_ROW_HEAD_SIZE + sizeof(SColIdx) * nBoundCols));