Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6475e66

Browse files
Fix misuse of PqMsg_Close.
EndCommand() and EndReplicationCommand() should use PqMsg_CommandComplete instead. Oversight in commit f4b54e1. Reported-by: Pavel Stehule, Tatsuo Ishii Author: Pavel Stehule Reviewed-by: Aleksander Alekseev, Michael Paquier Discussion: https://postgr.es/m/CAFj8pRAMDCJXjnwiCkCB1yO1f7NPggFY8PwwAJDnugu-Z2G-Cg%40mail.gmail.com
1 parent 3c66264 commit 6475e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/tcop/dest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_o
176176

177177
len = BuildQueryCompletionString(completionTag, qc,
178178
force_undecorated_output);
179-
pq_putmessage(PqMsg_Close, completionTag, len + 1);
179+
pq_putmessage(PqMsg_CommandComplete, completionTag, len + 1);
180180

181181
case DestNone:
182182
case DestDebug:
@@ -200,7 +200,7 @@ EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_o
200200
void
201201
EndReplicationCommand(const char *commandTag)
202202
{
203-
pq_putmessage(PqMsg_Close, commandTag, strlen(commandTag) + 1);
203+
pq_putmessage(PqMsg_CommandComplete, commandTag, strlen(commandTag) + 1);
204204
}
205205

206206
/* ----------------

0 commit comments

Comments
 (0)