Skip to content

Commit a653569

Browse files
committed
Silence compiler warning in Assert()
gcc 6.3 does not whine about this mistake I made in 39808e8 but evidently lots of other compilers do, according to Michael Paquier, Peter Eisentraut, Arthur Zakirov, Tomas Vondra. Discussion: too many to list
1 parent b2f266f commit a653569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/event_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ EventTriggerCollectAlterTableSubcmd(Node *subcmd, ObjectAddress address)
17641764
return;
17651765

17661766
Assert(IsA(subcmd, AlterTableCmd));
1767-
Assert(OidIsValid(currentEventTriggerState->currentCommand));
1767+
Assert(currentEventTriggerState->currentCommand != NULL);
17681768
Assert(OidIsValid(currentEventTriggerState->currentCommand->d.alterTable.objectId));
17691769

17701770
oldcxt = MemoryContextSwitchTo(currentEventTriggerState->cxt);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy