Skip to content

Commit 18b5962

Browse files
alvherrepull[bot]
authored andcommitted
Fix event trigger example
Commit 2f96613 changed command tags from strings to numbers, but forgot to adjust the code in the event trigger example, which consequently failed to compile. While fixing that, improve the indentation to adhere to pgindent style. Backpatch to v13, where the change was introduced. Author: Laurenz Albe Discussion: https://postgr.es/m/81e36ac17dc80489e74dc5b6914afa6ccdb1a99d.camel@cybertec.at
1 parent f213516 commit 18b5962

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/src/sgml/event-trigger.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,9 @@ noddl(PG_FUNCTION_ARGS)
11941194
trigdata = (EventTriggerData *) fcinfo->context;
11951195

11961196
ereport(ERROR,
1197-
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
1198-
errmsg("command \"%s\" denied", trigdata->tag)));
1197+
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
1198+
errmsg("command \"%s\" denied",
1199+
GetCommandTagName(trigdata->tag))));
11991200

12001201
PG_RETURN_NULL();
12011202
}

0 commit comments

Comments
 (0)