summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane2025-05-01 21:36:47 +0000
committerTom Lane2025-05-01 21:36:47 +0000
commit06a2c598e10b0f698b57a6c0be7ebafd19a5d6f1 (patch)
treec584b4c91df544dab55ef893e258fa7f0f8eb6ee /src
parent06bce4d6382b506c436996e1cc9cce606955ab4c (diff)
Add missing newlines to PQescapeInternal() messages pre-v16.
While back-patching 9f45e6a91, 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
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index a2afd6de65a..8630da31a28 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -3410,10 +3410,10 @@ PQescapeStringInternal(PGconn *conn,
{
if (remaining < charlen)
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("incomplete multibyte character"));
+ libpq_gettext("incomplete multibyte character\n"));
else
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("invalid multibyte character"));
+ libpq_gettext("invalid multibyte character\n"));
/* Issue a complaint only once per string */
already_complained = true;
}