fix(query): set correct row index.
This commit is contained in:
parent
c54751e7e2
commit
d32a80a872
|
@ -205,9 +205,9 @@ static bool checkDuplicateTimestamps(STimeSliceOperatorInfo* pSliceInfo, SColumn
|
||||||
if (pPkCol != NULL) {
|
if (pPkCol != NULL) {
|
||||||
cur.pks[0].type = pPkCol->info.type;
|
cur.pks[0].type = pPkCol->info.type;
|
||||||
if (IS_VAR_DATA_TYPE(pPkCol->info.type)) {
|
if (IS_VAR_DATA_TYPE(pPkCol->info.type)) {
|
||||||
cur.pks[0].pData = (uint8_t*)colDataGetVarData(pPkCol, rows);
|
cur.pks[0].pData = (uint8_t*)colDataGetVarData(pPkCol, curIndex);
|
||||||
} else {
|
} else {
|
||||||
memcpy(&cur.pks[0].val, colDataGetData(pPkCol, rows), pPkCol->info.bytes);
|
memcpy(&cur.pks[0].val, colDataGetData(pPkCol, curIndex), pPkCol->info.bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue