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

Commitf82d4d6

Browse files
committed
Slightly correct context check for event triggers
The previous check for a "complete query" omitted the newPROCESS_UTILITY_QUERY_NONATOMIC value. This didn't actually make adifference in practice, because only CALL and SET from PL/pgSQL run inthis state, but it's more correct to include it anyway.Discussion:https://www.postgresql.org/message-id/4566041d-2567-74d2-d135-19ff6a20fe51%402ndquadrant.com
1 parentae30786 commitf82d4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/tcop/utility.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ ProcessUtilitySlow(ParseState *pstate,
943943
{
944944
Node*parsetree=pstmt->utilityStmt;
945945
boolisTopLevel= (context==PROCESS_UTILITY_TOPLEVEL);
946-
boolisCompleteQuery= (context<=PROCESS_UTILITY_QUERY);
946+
boolisCompleteQuery= (context!=PROCESS_UTILITY_SUBCOMMAND);
947947
boolneedCleanup;
948948
boolcommandCollected= false;
949949
ObjectAddressaddress;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp