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 6475e66

Browse filesBrowse 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
Copy full SHA for 6475e66

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎src/backend/tcop/dest.c

Copy file name to clipboardExpand all lines: src/backend/tcop/dest.c
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.