Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit7a31033

Browse files
committed
Fix event trigger example
Commit2f96613 changed command tags from strings to numbers, butforgot to adjust the code in the event trigger example, whichconsequently failed to compile.While fixing that, improve the indentation to adhere to pgindent style.Backpatch to v13, where the change was introduced.Author: Laurenz AlbeDiscussion:https://postgr.es/m/81e36ac17dc80489e74dc5b6914afa6ccdb1a99d.camel@cybertec.at
1 parentbbfdf71 commit7a31033

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)

[8]ページ先頭

©2009-2025 Movatter.jp