postgres.git / summary / log / commit / refs

commit    ceaeac54f75f0117a7b3caa2f8ecba5cfac18ee5
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Sat Nov 07 01:15:58 2020 +0000
First released in: 14.0

    Fix minor issues with new unicode {de,re}composition code
    
    The table generation script would incorrectly complain in the
    recomposition sorting when matching code points.  This would not have
    caused the generation of an incorrect table.  Note that this condition
    is not reachable yet, but could have been reached with future updates.
    
    pg_bswap.h does not need to be included in the frontend.x
    
    Author: John Naylor
    Discussion: https://postgr.es/m/CAFBsxsGWmExpvv=61vtDKCs7+kBbhkwBDL2Ph9CacziFKnV_yw@mail.gmail.com


src/common/unicode/generate-unicode_norm_table.pl | 2 +- src/common/unicode_norm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/unicode/generate-unicode_norm_table.pl b/src/common/unicode/generate-unicode_norm_table.pl index e4d3ccc2346..8213532ab9d 100644 --- a/src/common/unicode/generate-unicode_norm_table.pl +++ b/src/common/unicode/generate-unicode_norm_table.pl @@ -400,7 +400,7 @@ sub recomp_sort my $bcode = hex($b->{code}); return -1 if $acode < $bcode; - return -1 if $acode > $bcode; + return 1 if $acode > $bcode; die "found duplicate entries of recomposeable code pairs"; } diff --git a/src/common/unicode_norm.c b/src/common/unicode_norm.c index abb83cbf985..d46e33d322c 100644 --- a/src/common/unicode_norm.c +++ b/src/common/unicode_norm.c @@ -22,10 +22,10 @@ #ifndef FRONTEND #include "common/unicode_norm_hashfunc.h" #include "common/unicode_normprops_table.h" +#include "port/pg_bswap.h" #else #include "common/unicode_norm_table.h" #endif -#include "port/pg_bswap.h" #ifndef FRONTEND #define ALLOC(size) palloc(size) [parent: 7577dd84807a]