Skip to content

Commit 87af12e

Browse files
committed
Add missing newlines to PQescapeInternal() messages pre-v16.
While back-patching 9f45e6a, I neglected that the convention in pre-v16 libpq was to include a trailing newline in error message strings (since then, we add those separately). Add them now. Reported-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/a9c837ad-d507-4607-94e4-c5743a8f49e0@eisentraut.org Backpatch-through: 13-15
1 parent 8b65f71 commit 87af12e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,10 +4040,10 @@ PQescapeStringInternal(PGconn *conn,
40404040
{
40414041
if (remaining < charlen)
40424042
appendPQExpBufferStr(&conn->errorMessage,
4043-
libpq_gettext("incomplete multibyte character"));
4043+
libpq_gettext("incomplete multibyte character\n"));
40444044
else
40454045
appendPQExpBufferStr(&conn->errorMessage,
4046-
libpq_gettext("invalid multibyte character"));
4046+
libpq_gettext("invalid multibyte character\n"));
40474047
/* Issue a complaint only once per string */
40484048
already_complained = true;
40494049
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy