Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eee01d6

Browse filesBrowse 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 634b4b7 commit eee01d6
Copy full SHA for eee01d6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/commands/event_trigger.c

Copy file name to clipboardExpand all lines: src/backend/commands/event_trigger.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ EventTriggerCollectAlterTableSubcmd(Node *subcmd, ObjectAddress address)
17611761
return;
17621762

17631763
Assert(IsA(subcmd, AlterTableCmd));
1764-
Assert(OidIsValid(currentEventTriggerState->currentCommand));
1764+
Assert(currentEventTriggerState->currentCommand != NULL);
17651765
Assert(OidIsValid(currentEventTriggerState->currentCommand->d.alterTable.objectId));
17661766

17671767
oldcxt = MemoryContextSwitchTo(currentEventTriggerState->cxt);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.