]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix varstr_cmp's special case for UTF8 encoding on Windows so that strings
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Mar 2008 18:32:02 +0000 (18:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Mar 2008 18:32:02 +0000 (18:32 +0000)
commit96e420a6ec4d593740a02a4f5ad6654d9429a8ff
tree8948c527518d97d54b67f5965644ba873bfb669e
parent8efc13140e80f51f1033d9fa22b302409edad06c
Fix varstr_cmp's special case for UTF8 encoding on Windows so that strings
that are reported as "equal" by wcscoll() are checked to see if they really
are bitwise equal, and are sorted per strcmp() if not.  We made this happen
a couple of years ago in the regular code path, but it unaccountably got
left out of the Windows/UTF8 case (probably brain fade on my part at the
time).  As in the prior set of changes, affected users may need to reindex
indexes on textual columns.

Backpatch as far as 8.2, which is the oldest release we are still supporting
on Windows.
src/backend/utils/adt/varlena.c