fix(query): fix the comparion error.
This commit is contained in:
parent
3e80f57fc7
commit
627429d490
|
@ -788,8 +788,7 @@ static int32_t tsdbReaderCreate(SVnode* pVnode, SQueryTableDataCond* pCond, STsd
|
|||
goto _end;
|
||||
}
|
||||
|
||||
|
||||
if (pReader->suppInfo.colId[0] == PRIMARYKEY_TIMESTAMP_COL_ID) {
|
||||
if (pReader->suppInfo.colId[0] != PRIMARYKEY_TIMESTAMP_COL_ID) {
|
||||
tsdbError("the first column isn't primary timestamp, %d, %s", pReader->suppInfo.colId[0], pReader->idStr);
|
||||
terrno = TSDB_CODE_INVALID_PARA;
|
||||
goto _end;
|
||||
|
|
Loading…
Reference in New Issue