]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
libpq: Fix grease error message style
authorJacob Champion <jchampion@postgresql.org>
Fri, 29 May 2026 18:34:03 +0000 (11:34 -0700)
committerJacob Champion <jchampion@postgresql.org>
Fri, 29 May 2026 18:34:03 +0000 (11:34 -0700)
Double-quote the protocol extension name, and move it out of line with a
%s specifier, to help with translation. Fixes up 4966bd3ed.

Reported-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Suggested-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/20260528.121622.1662808269492494574.horikyota.ntt%40gmail.com

src/interfaces/libpq/fe-protocol3.c

index 840e018cd18d95a0ef7dd846e8e0ce896bacf7f7..78ffb1025d0445bff94916a0d87a1a0ecf187eed 100644 (file)
@@ -1560,7 +1560,8 @@ pqGetNegotiateProtocolVersion3(PGconn *conn)
         */
        if (expect_test_protocol_negotiation && !found_test_protocol_negotiation)
        {
-               libpq_append_conn_error(conn, "server did not report the unsupported `_pq_.test_protocol_negotiation` parameter in its protocol negotiation message");
+               libpq_append_conn_error(conn, "server did not report the unsupported \"%s\" parameter in its protocol negotiation message",
+                                                               "_pq_.test_protocol_negotiation");
                goto failure;
        }