Skip to content
Snippets Groups Projects
Commit a653569c authored by Alvaro Herrera's avatar Alvaro Herrera
Browse files

Silence compiler warning in Assert()

gcc 6.3 does not whine about this mistake I made in 39808e88 but
evidently lots of other compilers do, according to Michael Paquier,
Peter Eisentraut, Arthur Zakirov, Tomas Vondra.

Discussion: too many to list
parent b2f266f5
No related branches found
Tags
No related merge requests found
......@@ -1764,7 +1764,7 @@ EventTriggerCollectAlterTableSubcmd(Node *subcmd, ObjectAddress address)
return;
Assert(IsA(subcmd, AlterTableCmd));
Assert(OidIsValid(currentEventTriggerState->currentCommand));
Assert(currentEventTriggerState->currentCommand != NULL);
Assert(OidIsValid(currentEventTriggerState->currentCommand->d.alterTable.objectId));
oldcxt = MemoryContextSwitchTo(currentEventTriggerState->cxt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment