Fix FetchAndValidateInsertVarIfExists

pull/7807/head
naisila 2024-12-25 15:18:17 +03:00 committed by Naisila Puka
parent 0c4c001ad7
commit 977170849a
1 changed files with 2 additions and 1 deletions

View File

@ -1547,7 +1547,8 @@ FetchAndValidateInsertVarIfExists(Oid targetRelationId, Query *query)
}
/* NOT MATCHED can have either INSERT or DO NOTHING */
if (action->commandType == CMD_NOTHING)
/* NOT MATCHED BY SOURCE in PG17 can also have UPDATE */
if (action->commandType == CMD_NOTHING || action->commandType == CMD_UPDATE)
{
return NULL;
}