Skip to content

Commit 06a2c59

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 06bce4d commit 06a2c59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-exec.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3410,10 +3410,10 @@ PQescapeStringInternal(PGconn *conn,
34103410
{
34113411
if (remaining < charlen)
34123412
printfPQExpBuffer(&conn->errorMessage,
3413-
libpq_gettext("incomplete multibyte character"));
3413+
libpq_gettext("incomplete multibyte character\n"));
34143414
else
34153415
printfPQExpBuffer(&conn->errorMessage,
3416-
libpq_gettext("invalid multibyte character"));
3416+
libpq_gettext("invalid multibyte character\n"));
34173417
/* Issue a complaint only once per string */
34183418
already_complained = true;
34193419
}

0 commit comments

Comments
 (0)