mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix misuse of PqMsg_Close.
EndCommand() and EndReplicationCommand() should use PqMsg_CommandComplete instead. Oversight in commit f4b54e1ed9. 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
This commit is contained in:
parent
3c662643c4
commit
6475e663b3
@ -176,7 +176,7 @@ EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_o
|
||||
|
||||
len = BuildQueryCompletionString(completionTag, qc,
|
||||
force_undecorated_output);
|
||||
pq_putmessage(PqMsg_Close, completionTag, len + 1);
|
||||
pq_putmessage(PqMsg_CommandComplete, completionTag, len + 1);
|
||||
|
||||
case DestNone:
|
||||
case DestDebug:
|
||||
@ -200,7 +200,7 @@ EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_o
|
||||
void
|
||||
EndReplicationCommand(const char *commandTag)
|
||||
{
|
||||
pq_putmessage(PqMsg_Close, commandTag, strlen(commandTag) + 1);
|
||||
pq_putmessage(PqMsg_CommandComplete, commandTag, strlen(commandTag) + 1);
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user