]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix test_valid_server_encoding helper function.
authorThomas Munro <tmunro@postgresql.org>
Tue, 17 Feb 2026 00:53:32 +0000 (13:53 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 17 Feb 2026 04:02:47 +0000 (17:02 +1300)
commitc33d67fd18edec3000be0e5d12096d983e0eced5
tree45ec6fec13eca259da78983df9817ed8ed5543d3
parent50d361f6223f8f560a7f6e36076ed333e9977a73
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 <zsolt.parragi@percona.com>
src/test/regress/expected/encoding.out
src/test/regress/regress.c
src/test/regress/sql/encoding.sql