Applies review notes

pull/7443/head
gurkanindibay 2024-02-21 11:43:04 +03:00
parent 6b12e2504a
commit dbad6ffd02
1 changed files with 5 additions and 4 deletions

View File

@ -1720,12 +1720,13 @@ IsStatementSupportedFromNonMainDb(Node *parsetree)
for (int i = 0; i < sizeof(NonMainDbSupportedStatements) / for (int i = 0; i < sizeof(NonMainDbSupportedStatements) /
sizeof(NonMainDbSupportedStatements[0]); i++) sizeof(NonMainDbSupportedStatements[0]); i++)
{ {
if (type == NonMainDbSupportedStatements[i].statementType && if (type != NonMainDbSupportedStatements[i].statementType)
(!NonMainDbSupportedStatements[i].checkSupportedObjectTypes ||
NonMainDbSupportedStatements[i].checkSupportedObjectTypes(parsetree)))
{ {
return true; continue;
} }
return !NonMainDbSupportedStatements[i].checkSupportedObjectTypes ||
NonMainDbSupportedStatements[i].checkSupportedObjectTypes(parsetree);
} }
return false; return false;