Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit715241d

Browse files
committed
Add missing newlines to PQescapeInternal() messages pre-v16.
While back-patching9f45e6a, I neglected that the convention inpre-v16 libpq was to include a trailing newline in error messagestrings (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.orgBackpatch-through: 13-15
1 parent1ba9ffa commit715241d

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
@@ -4017,10 +4017,10 @@ PQescapeStringInternal(PGconn *conn,
40174017
{
40184018
if (remaining<charlen)
40194019
appendPQExpBufferStr(&conn->errorMessage,
4020-
libpq_gettext("incomplete multibyte character"));
4020+
libpq_gettext("incomplete multibyte character\n"));
40214021
else
40224022
appendPQExpBufferStr(&conn->errorMessage,
4023-
libpq_gettext("invalid multibyte character"));
4023+
libpq_gettext("invalid multibyte character\n"));
40244024
/* Issue a complaint only once per string */
40254025
already_complained= true;
40264026
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp