]> 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:22:36 +0000 (16:22 +1300)
commit88fec079f13dae07a252339a74ed070284e94a20
treeed23339f75e1a5945f493c219f45a2f75e8609d9
parenta0769e74d65dba80717255faf78b494692729d6b
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/input/encoding.source
src/test/regress/output/encoding.source
src/test/regress/regress.c