public inbox for [email protected]
help / color / mirror / Atom feedFrom: Thomas Munro <[email protected]>
To: [email protected]
Subject: pgsql: Fix test_valid_server_encoding helper function.
Date: Tue, 17 Feb 2026 04:06:38 +0000
Message-ID: <[email protected]> (raw)
Fix test_valid_server_encoding helper function.
Commit c67bef3f325 introduced this test helper function for use by
src/test/regress/sql/encoding.sql, but its logic was incorrect. It
confused an encoding ID for a boolean so it gave the wrong results for
some inputs, and also forgot the usual return macro. The mistake didn't
affect values actually used in the test, so there is no change in
behavior.
Also drop it and another missed function at the end of the test, for
consistency.
Backpatch-through: 14
Author: Zsolt Parragi <[email protected]>
Branch
------
REL_17_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/c33d67fd18edec3000be0e5d12096d983e0eced5
Modified Files
--------------
src/test/regress/expected/encoding.out | 2 ++
src/test/regress/regress.c | 2 +-
src/test/regress/sql/encoding.sql | 2 ++
3 files changed, 5 insertions(+), 1 deletion(-)
view thread (6+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: Fix test_valid_server_encoding helper function.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox