]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_unicode_fast: fix final sigma logic.
authorJeff Davis <jdavis@postgresql.org>
Tue, 7 Jul 2026 21:29:21 +0000 (14:29 -0700)
committerJeff Davis <jdavis@postgresql.org>
Tue, 7 Jul 2026 21:29:21 +0000 (14:29 -0700)
commit28d498e28031f026b8416a4c8439ddda62dfb00f
tree8011018d6c94d4d13b0dc28d3ceeff1170fc8de2
parent05da336dd7d32ed4a70efc5f21c355f8ace482e8
pg_unicode_fast: fix final sigma logic.

If the string is preceded only by Case Ignorable characters, don't
consider it to be a final sigma.

In the process, refactor so that the preceding and following
characters are found first, and then the rule is applied, to improve
clarity.

Discussion: https://postgr.es/m/c355354e6c3f4a7aafb047361b73db247260fca0.camel@j-davis.com
Backpatch-through: 18
src/common/unicode_case.c
src/test/regress/expected/collate.utf8.out
src/test/regress/sql/collate.utf8.sql