refactor
This commit is contained in:
parent
782566ad08
commit
80621e14eb
|
@ -2577,12 +2577,13 @@ static int32_t translateTable(STranslateContext* pCxt, SNode* pTable) {
|
||||||
if (TSDB_SUPER_TABLE == pRealTable->pMeta->tableType) {
|
if (TSDB_SUPER_TABLE == pRealTable->pMeta->tableType) {
|
||||||
pCxt->stableQuery = true;
|
pCxt->stableQuery = true;
|
||||||
}
|
}
|
||||||
if (TSDB_SYSTEM_TABLE == pRealTable->pMeta->tableType && isSelectStmt(pCxt->pCurrStmt)) {
|
if (TSDB_SYSTEM_TABLE == pRealTable->pMeta->tableType) {
|
||||||
((SSelectStmt*)pCxt->pCurrStmt)->isTimeLineResult = false;
|
if (isSelectStmt(pCxt->pCurrStmt)) {
|
||||||
}
|
((SSelectStmt*)pCxt->pCurrStmt)->isTimeLineResult = false;
|
||||||
if (TSDB_SYSTEM_TABLE == pRealTable->pMeta->tableType && isDeleteStmt(pCxt->pCurrStmt)) {
|
} else if (isDeleteStmt(pCxt->pCurrStmt)) {
|
||||||
code = TSDB_CODE_TSC_INVALID_OPERATION;
|
code = TSDB_CODE_TSC_INVALID_OPERATION;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
code = addNamespace(pCxt, pRealTable);
|
code = addNamespace(pCxt, pRealTable);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue