]> 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 03:36:59 +0000 (16:36 +1300)
commitccc9be800dddf1662aa25aa4ee27aa71965b3fa9
treecaed349490fa4a3964391c78900cdd51fceab485
parentd04b34d685a2b002d5c1577cbd9f046e827535c7
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