fix: error code is overwritten

This commit is contained in:
factosea 2024-01-22 20:54:24 +08:00
parent 6ef1d8b0cb
commit bde8c14b55
1 changed files with 2 additions and 3 deletions

View File

@ -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;
} }