From: | "Jan Jockusch" <jan(at)jockusch(dot)de> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #2070: Encoding dependent error in comparison operators |
Date: | 2005-11-25 09:36:20 |
Message-ID: | 20051125093620.C12B0F0BBF@svr2.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 2070
Logged by: Jan Jockusch
Email address: jan(at)jockusch(dot)de
PostgreSQL version: 8.1.0
Operating system: Linux
Description: Encoding dependent error in comparison operators
Details:
With terminal encoding Latin-1, client encoding Latin-1
and database encoding LATIN1, I do:
\l
Name | Owner | Encoding
---------------+----------+-----------
encoding_test | postgres | LATIN1
...
encoding_test=# select '' = '';
?column?
----------
t
(1 row)
And although the two values are quite clearly
different, the operator finds them equal.
I hope you see the different umlauts in the query
(also latin-1 encoded).
The comparison operator works OK for 7-bit ASCII values
and finds characters below 128 different from those
above 128. It finds all characters above 128 equal, though.
The bug also applies for ascii strings which are the
same except for a different umlaut at the same
position, e.g. 'Gre' = 'Gre'. This comparison
also renders true in latin-1 scenarios.
The bug does not apply for clean UTF-8 scenarios.
I think this is a serious bug which produces surprising
and very hard to find problems. If I can be of any
assistance in diagnosing or fixing, please contact me.
From | Date | Subject | |
---|---|---|---|
Next Message | Prakash Nair | 2005-11-25 11:55:44 | BUG #2071: ERROR: invalid multibyte character for locale |
Previous Message | Darcy Buskermolen | 2005-11-24 18:16:05 | Re: [BUGS] BUG #2052: Federal Agency Tech Hub Refuses to Accept |