]> 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:12:05 +0000 (16:12 +1300)
commitbd626ef093b2e5f279285a344c8ac53d67cdfd76
treed65a8f24370823a28ae4d6db7d16ae841b3bdf0a
parent8cef93d8a5886b57099fcd32e92f12bc5df7bbd1
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