fix: error code is overwritten
This commit is contained in:
parent
6ef1d8b0cb
commit
bde8c14b55
|
@ -4030,9 +4030,8 @@ static int32_t translateWindow(STranslateContext* pCxt, SSelectStmt* pSelect) {
|
||||||
if (TSDB_CODE_SUCCESS == code) {
|
if (TSDB_CODE_SUCCESS == code) {
|
||||||
code = translateSpecificWindow(pCxt, pSelect);
|
code = translateSpecificWindow(pCxt, pSelect);
|
||||||
}
|
}
|
||||||
code = checkWindowsConditonValid(pSelect->pWindow);
|
if (TSDB_CODE_SUCCESS == code) {
|
||||||
if (TSDB_CODE_SUCCESS != code) {
|
code = checkWindowsConditonValid(pSelect->pWindow);
|
||||||
return code;
|
|
||||||
}
|
}
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue