summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2025-05-01 21:36:47 +0000
committerTom Lane2025-05-01 21:36:47 +0000
commit715241d71fa12a3864ea8c465745025030efdb90 (patch)
tree9a065fefdbcadd75a3e540cd3760d8230862076f
parent1ba9ffa56eb510b8d9ae57431ad61a9e1a396674 (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
-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 14d6743f083..526e51abf63 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -4017,10 +4017,10 @@ PQescapeStringInternal(PGconn *conn,
{
if (remaining < charlen)
appendPQExpBufferStr(&conn->errorMessage,
- libpq_gettext("incomplete multibyte character"));
+ libpq_gettext("incomplete multibyte character\n"));
else
appendPQExpBufferStr(&conn->errorMessage,
- libpq_gettext("invalid multibyte character"));
+ libpq_gettext("invalid multibyte character\n"));
/* Issue a complaint only once per string */
already_complained = true;
}